Skip to content

HostedToolCallItem

type HostedToolCallItem = object;
optional id: string;

An ID to identify the item. This is optional by default. If a model provider absolutely requires this field, it will be validated on the model level.

name: string;

The name of the hosted tool. For example web_search_call or file_search_call

optional output: string;

The primary output of the tool call. Additional output might be in the providerData field.

optional providerData: Record<string, any>;

Additional optional provider specific data. Used for custom functionality or model provider specific fields.

optional status: string;

The status of the tool call.

type: "hosted_tool_call";