FunctionCallOutputItem - TypeScript SDK

FunctionCallOutputItem type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

The output from a function call execution

Example Usage

1import { FunctionCallOutputItem } from "@openrouter/sdk/models";
2
3let value: FunctionCallOutputItem = {
4 callId: "call-abc123",
5 output: "{\"temperature\":72,\"conditions\":\"sunny\"}",
6 type: "function_call_output",
7};

Fields

FieldTypeRequiredDescriptionExample
callIdstring✔️N/A
idstringN/A
outputmodels.FunctionCallOutputItemOutputUnion2✔️N/A
statusmodels.FunctionCallOutputItemStatusN/Acompleted
typemodels.FunctionCallOutputItemTypeFunctionCallOutput✔️N/A