Skip to content
providerkit
GitHub

HostedWire

Defined in: core/src/hosted/types.ts:204

What one adapter, at one endpoint, can send.

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.


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.

Parameter Type
tool HostedTool

string | undefined


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.