Quick Start
arun() call. They register hooks on the agent’s pipeline phases.
Built-in Plugins
LoggingPlugin
Logs pipeline phase transitions and run lifecycle events.before:* and after:* hooks on all pipeline phases.
MetricsPlugin
Collects per-run timing metrics: phase durations, tool call count, total duration.CachingPlugin
LRU cache for identical prompts. Cache key is SHA-256 of system prompt + user messages.Creating Custom Plugins
SubclassPlugin and implement name and on_load:
Plugin Properties
Plugin Registry
Manage plugins programmatically:Dependencies and Conflicts
Plugins declare dependencies withrequires and conflicts with conflicts:
ValueError.
Two plugins with overlapping
modifies sets generate a warning but load successfully. Only conflicts blocks loading.