HostedWire
Defined in: core/src/hosted/types.ts:204
What one adapter, at one endpoint, can send.
Properties
Section titled “Properties”fields
Section titled “fields”fields: Partial<Record<HostedToolType, readonly string[]>>;Defined in: core/src/hosted/types.ts:211
The fields this wire applies, for each type it sends. Any other field set on a tool is one the wire would silently leave out.
name: string;Defined in: core/src/hosted/types.ts:206
The adapter’s name in a refusal: Anthropic, Responses, Gemini, OpenAI chat.
refuse?
Section titled “refuse?”optional refuse?: (tool) => string | undefined;Defined in: core/src/hosted/types.ts:213
This wire’s own reason to refuse a tool, beyond the two above.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
tool |
HostedTool |
Returns
Section titled “Returns”string | undefined
serves
Section titled “serves”serves: readonly ( | "web_search" | "web_fetch" | "code_execution" | "file_search" | "image_generation")[];Defined in: core/src/hosted/types.ts:208
The types this endpoint runs.