The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { FunctionCallOutputItem } from "@openrouter/sdk/models";
let value: FunctionCallOutputItem = {
callId: "call-abc123",
output: "{\"temperature\":72,\"conditions\":\"sunny\"}",
type: "function_call_output",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
callId | string | :heavy_check_mark: | N/A | |
id | string | :heavy_minus_sign: | N/A | |
output | models.FunctionCallOutputItemOutputUnion2 | :heavy_check_mark: | N/A | |
status | models.FunctionCallOutputItemStatus | :heavy_minus_sign: | N/A | completed |
type | models.FunctionCallOutputItemTypeFunctionCallOutput | :heavy_check_mark: | N/A |