Skip to content
providerkit
GitHub

RunContext

Defined in: agents/src/types.ts:237

Available while resolving a new run, never reconstructed from a snapshot. The history and input are frozen copies. context keeps host services by reference, like tool context.

readonly agentId: string;

Defined in: agents/src/types.ts:238


readonly context: ToolContext;

Defined in: agents/src/types.ts:243


readonly history: readonly AgentMessage[];

Defined in: agents/src/types.ts:241


readonly input: UserContent;

Defined in: agents/src/types.ts:242


readonly runId: string;

Defined in: agents/src/types.ts:240


readonly signal: AbortSignal;

Defined in: agents/src/types.ts:244


readonly version: string;

Defined in: agents/src/types.ts:239