Skip to content
providerkit
GitHub

HostedCall

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

One hosted run, assembled. Display data, with the sensitivity of content: an excerpt can quote the caller’s own documents.

A failed call is data (status: "failed", error the vendor’s code, such as max_uses_exceeded) and the turn goes on, as a failing function tool’s does (invariant 7). A call the vendor never finished fails with no_result.

at: number;

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

Where in content the call ran: the text’s length when it started.


optional error?: string;

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


id: string;

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


optional input?: HostedInput;

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


optional output?: HostedOutput;

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


status: "running" | "completed" | "failed";

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


type:
| "web_search"
| "web_fetch"
| "code_execution"
| "file_search"
| "image_generation";

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