Skip to content

@oona/vlo / agent / decision

Function: decision() ​

decision<I>(name, options): Activity<output<I>, Decision>

Defined in: sdk/ts/sdk/src/agent/decision.ts:36

@oona/vlo/agent — the agent layer, built on the authoring surface of @oona/vlo.

An agent is the reducer model in its purest form: state is memory plus budget, the event is an observation, the command is the next tool call. Nothing here does I/O; agentLoop returns a WorkflowDef you hand to defineWorkflow.

Type Parameters ​

I ​

I extends ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

Parameters ​

name ​

string

options ​

DecisionOptions<I>

Returns ​

Activity<output<I>, Decision>