HostedToolCallItem
type HostedToolCallItem = object;
Type declaration
Section titled “Type declaration”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
output?
Section titled “output?”optional output: string;
The primary output of the tool call. Additional output might be in the providerData
field.
providerData?
Section titled “providerData?”optional providerData: Record<string, any>;
Additional optional provider specific data. Used for custom functionality or model provider specific fields.
status?
Section titled “status?”optional status: string;
The status of the tool call.
type: "hosted_tool_call";