Skip to content
providerkit
GitHub

InterruptedModelAttempt

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

Last measured usage, not a final bill. An interrupted call may have cost more.

attemptId: string;

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

InterruptedAttempt.attemptId


optional costUsd?: number;

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

The host’s price for that usage, kept from the attempt. Never priced again.


optional retriedAfterOutput?: true;

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

True when this attempt failed transiently after chunks arrived and was retried in place under retryAfterOutput. Keeps crash-recovery counts separate from live retries.


usage: TokenUsage;

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