Skip to content

checkCostLimit

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/agent-core/src/benchmark/agent-hardening.ts

Check if a task has exceeded its cost budget.

Pattern from SWE-agent: $3/task default limit. When exceeded, autosubmit whatever patch exists.

Signature

ts
function checkCostLimit(currentCost: number, limit: number | undefined): boolean

Parameters

NameType
currentCostnumber
limit`number

Returns: boolean

Was this page helpful?

Download as PDF