Skip to content

AgentHooks

Defined in: agent/hooks.ts:669

Clean hooks system with three distinct categories:

  • Observers: Read-only, for logging and metrics
  • Interceptors: Synchronous transformations with immediate effect
  • Controllers: Async lifecycle control with short-circuit capability

optional controllers: Controllers

Defined in: agent/hooks.ts:677

Async lifecycle control hooks


optional interceptors: Interceptors

Defined in: agent/hooks.ts:674

Synchronous transformation hooks that affect current execution


optional observers: Observers

Defined in: agent/hooks.ts:671

Read-only observation hooks for logging, metrics, etc.