AgentBudgetResolver
AgentBudgetResolver = (
ctx) =>Partial<AgentRunBudgets> |Promise<Partial<AgentRunBudgets>>
Defined in: packages/engine/src/lib/agent-session/agent-config.ts:48
Picks the budgets for one Agent Run. Called once per run before the run
starts. Returned fields replace the Engine defaults, and omitted fields
keep them. The same validation as static budgets applies, so an unknown
field ends the run with an error. A throw or rejection also ends the run
with an error, as does a resolver still pending after the default
maxElapsedMs of 120,000 ms. The resolver caps a single run, not
total spend.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Partial<AgentRunBudgets> | Promise<Partial<AgentRunBudgets>>