FunctionCallItem - TypeScript SDK

FunctionCallItem type definition

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

A function call initiated by the model

Example Usage

1import { FunctionCallItem } from "@openrouter/sdk/models";
2
3let value: FunctionCallItem = {
4 arguments: "{\"location\":\"San Francisco\"}",
5 callId: "call-abc123",
6 id: "call-abc123",
7 name: "get_weather",
8 type: "function_call",
9};

Fields

FieldTypeRequiredDescriptionExample
argumentsstring✔️N/A
callIdstring✔️N/A
idstring✔️N/A
namestring✔️N/A
namespacestringNamespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
statusmodels.ToolCallStatusN/Acompleted
typemodels.FunctionCallItemType✔️N/A