Hooks
Lifecycle interceptors that fire at seven well-defined points in the agent loop (BeforeInvocation, BeforeModelCall, AfterModelCall, MessageAdded, BeforeToolCall, AfterToolCall, AfterInvocation), enabling cross-cutting concerns like logging, rate-limiting, and guardrails without modifying agent logic.