@oona/vlo / agent / AgentLoopOptions
Interface: AgentLoopOptions
Defined in: sdk/ts/sdk/src/agent/loop.ts:44
Properties
approval?
optionalapproval?:ApprovalOptions
Defined in: sdk/ts/sdk/src/agent/loop.ts:59
Tools that wait for a person's yes before they run. A rejected call becomes an observation and the decider chooses again. See ApprovalOptions.
budget
budget:
Budget
Defined in: sdk/ts/sdk/src/agent/loop.ts:53
decide
decide:
Activity
Defined in: sdk/ts/sdk/src/agent/loop.ts:46
Picks the next tool. Build it with decision(...), or hand-roll the same output shape.
evaluate?
optionalevaluate?:Activity<unknown,unknown>
Defined in: sdk/ts/sdk/src/agent/loop.ts:50
Scores the candidate a tool produced. Its output is number or { score: number }.
maxIterations?
optionalmaxIterations?:number
Defined in: sdk/ts/sdk/src/agent/loop.ts:60
memoryLimit?
optionalmemoryLimit?:number
Defined in: sdk/ts/sdk/src/agent/loop.ts:62
Observations kept in state; older ones are dropped so the checkpoint stays bounded.
threshold?
optionalthreshold?:number
Defined in: sdk/ts/sdk/src/agent/loop.ts:52
Score at or above which the run completes. Without one, only decide can finish.
tools
tools:
Record<string,Activity>
Defined in: sdk/ts/sdk/src/agent/loop.ts:48
Dispatchable tools, keyed by the name decide returns.
topup?
optionaltopup?:SignalDef<BudgetTopup>
Defined in: sdk/ts/sdk/src/agent/loop.ts:54