DocsPlugin System
Plugins
Plugins are reusable event handlers. Package capabilities and reuse them across agents.
Quick Start
main.py
What is a Plugin?
A plugin is a list of event handlers:
main.py
Plugin vs on_events
main.py
Built-in Plugins
| Plugin | Purpose | Docs |
|---|---|---|
| re_act | Planning + reflection (ReAct pattern) | docs |
| eval | Task evaluation for debugging | docs |
| image_result_formatter | Format images for vision models | docs |
| shell_approval | Approve shell commands before execution | docs |
main.py
Writing Custom Plugins
Simple example - log each tool execution:
main.py
For more complex plugins, see Events for available event hooks.
Reusing Plugins
main.py
