Function: spendExceeds()
spendExceeds(
maxUsd,options?):SpendCondition
Defined in: packages/core/src/utils/spend.ts:118
Stop the tool loop once spend reaches maxUsd. Combine with other
conditions (combine(spendExceeds(5), hasToolResult('done'))).
One condition per request: it remembers which models it could not price, and what it has seen spent.
Parameters
maxUsd
number
options?
SpendExceedsOptions = {}