ModelExecution
type ModelExecution = object & | { attemptId: string; id: string; status: "running"; usage: TokenUsage;} | { attemptId: string; id: string; status: "completed"; tools: ToolExecution[]; turn: Turn; usage: TokenUsage;};Defined in: agents/src/types.ts:990
Type Declaration
Section titled “Type Declaration”billing
Section titled “billing”billing: "unknown" | "reported";costUsd?
Section titled “costUsd?”optional costUsd?: number;What host.priceModelCall returned for this attempt’s usage when it arrived. Absent
without a price function or before any usage.
finish?
Section titled “finish?”optional finish?: SalvageReason;Set on the finish turn, saved before it is sent: what would have ended the run.
interrupted
Section titled “interrupted”interrupted: InterruptedModelAttempt[];