Skip to content

@oona/vlo / agent / AgentLoopOptions

Interface: AgentLoopOptions ​

Defined in: sdk/ts/sdk/src/agent/loop.ts:44

Properties ​

approval? ​

optional approval?: 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? ​

optional evaluate?: 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? ​

optional maxIterations?: number

Defined in: sdk/ts/sdk/src/agent/loop.ts:60


memoryLimit? ​

optional memoryLimit?: 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? ​

optional threshold?: 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? ​

optional topup?: SignalDef<BudgetTopup>

Defined in: sdk/ts/sdk/src/agent/loop.ts:54