Skip to main content

Interface: CostGuardConfig

Defined in: packages/agentos/src/core/safety/CostGuard.ts:10

Properties

maxDailyCostUsd

maxDailyCostUsd: number

Defined in: packages/agentos/src/core/safety/CostGuard.ts:14

Maximum USD spend per agent per day.

Default

5.00

maxSessionCostUsd

maxSessionCostUsd: number

Defined in: packages/agentos/src/core/safety/CostGuard.ts:12

Maximum USD spend per agent session.

Default

1.00

maxSingleOperationCostUsd

maxSingleOperationCostUsd: number

Defined in: packages/agentos/src/core/safety/CostGuard.ts:16

Maximum USD spend per single operation.

Default

0.50

onCapReached()?

optional onCapReached: (agentId, capType, currentCost, limit) => void

Defined in: packages/agentos/src/core/safety/CostGuard.ts:18

Callback when a cap is hit.

Parameters

agentId

string

capType

CostCapType

currentCost

number

limit

number

Returns

void