Skip to main content

Interface: SpendBudgetCall

Defined in: packages/agentos/src/api/runtime/spendBudget.ts:98

A provider call a budget checks, and reserves for on a budget with a meter, before it is sent.

Properties​

modelId​

modelId: string

Defined in: packages/agentos/src/api/runtime/spendBudget.ts:102

The model the call names.


operationId​

operationId: string

Defined in: packages/agentos/src/api/runtime/spendBudget.ts:109

The host's durable id for the call, which SpendBudgetSettlement.operationId names again after it. One id holds one reservation: a second call under it while it is held, or after it counted, is refused.


providerId​

providerId: string

Defined in: packages/agentos/src/api/runtime/spendBudget.ts:100

The provider the call goes to.


request​

request: MaxCostRequest

Defined in: packages/agentos/src/api/runtime/spendBudget.ts:104

What the call sends, which bounds what it can cost (estimateMaxCallCostUSD).