Skip to content

HostedTool

type HostedTool = object;

A built-in hosted tool that will be executed directly by the model during the request and won’t result in local code executions. Examples of these are web_search_call or file_search_call.

The context of the tool

The result of the tool

name: string;

A unique name for the tool.


optional providerData: Record<string, any>;

Additional configuration data that gets passed to the tool


type: "hosted_tool";