Skip to main content

Module hooks

Module hooks 

Source
Expand description

Points where the session steers the loop.

Structs§

AfterToolCall
A tool call that ran.
BeforeToolCall
A tool call about to run.
Block
Blocks a tool call.
ResultPatch
Replacement fields for a tool result. None keeps the original.
TurnDecision
What the session decides as a turn ends (pi’s AgentTurnDecision).

Traits§

AgentHooks
Hooks into the agent loop. Every method has a no-op default.