ActOptions

Interface: ActOptions

Defined in: src/core/agent/act.ts:45

The whole steering wheel: one key per moment of the loop, each optional.

The declaration order below is the order the loop reaches them.

Properties

afterTool?

readonly optional afterTool?: readonly ToolMiddleware[]

Defined in: src/core/agent/act.ts:52

Every tool result, after the tool ran and before the model reads it.


beforeTool?

readonly optional beforeTool?: readonly ToolMiddleware[]

Defined in: src/core/agent/act.ts:50

Every tool call, before it is dispatched.


input?

readonly optional input?: readonly MessageMiddleware[]

Defined in: src/core/agent/act.ts:48

The user's message, before the run commits it. Input-only rules do not withhold provider draft streaming.


output?

readonly optional output?: readonly MessageMiddleware[]

Defined in: src/core/agent/act.ts:58

The answer before final capture. A nonempty output chain withholds provider drafts and releases the captured answer once after acceptance; refusal stops delivery and final memory writes. Not audit erasure.


window?

readonly optional window?: WindowStrategy

Defined in: src/core/agent/act.ts:54

What the live context window keeps, at each iteration boundary.

On this page