Skip to content
providerkit
GitHub

HostedItems

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

The vendor’s own record of a hosted turn, in the order it sent it: search results, fetched pages, code output. Opaque, provider-owned, and replayed only to the provider that made it, like reasoningItems. Never echo it to a browser, and drop it from history a browser hands back.

Answer text is stored as { length } and function calls as { call: i }, so replay cuts the text from content and pairs the calls that repairHistory may have renamed. When the lengths no longer sum to content.length, or the calls no longer match, the message goes back as plain text instead.

optional container?: string;

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

The code execution container the turn ran in, which the next request in the same turn has to name.


items: unknown[];

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


provider: string;

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