Skip to content
providerkit
GitHub

ToolCost

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

USD one attempt of a tool call reported, the sum of its reportCost calls. Kept apart from the call’s own record, so a retry, a restart or a request never drops a charge.

attemptId: string;

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


costUsd: number;

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


operationId: string;

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

The call’s operation id, or a code program’s inner call id.