AroundTurn
Interface: AroundTurn
Defined in: src/core/agent/aroundTurn/types.ts:70
Work that must wrap a whole turn: awaited preparation before it, an
AsyncLocalStorage held around it, cleanup after it. Declared with
.aroundTurn() on the builder.
Properties
name
readonlyname:string
Defined in: src/core/agent/aroundTurn/types.ts:72
Named on every refusal and on agentfootprint.agent.around_turn_failed.
Methods
around()
around(
turn,proceed):void|Promise<void>
Defined in: src/core/agent/aroundTurn/types.ts:74
Do the work and call proceed once. Its return value is ignored.
Parameters
turn
proceed
Returns
void | Promise<void>
