Expand description
Plugin system — lifecycle hooks with control-flow capabilities.
Plugins are a superset of middleware: they can observe AND control agent
execution. A plugin can deny a tool call, short-circuit with a custom
response, or simply continue. The PluginManager runs plugins in order
and respects the first non-Continue result.
Structs§
- Allow
AllPolicy - A policy engine that allows all tool calls.
- Context
Filter Plugin - Plugin that filters or transforms conversation context before model calls.
- Deny
List Policy - A simple policy engine that blocks specific tool names.
- Global
Instruction Plugin - Plugin that injects global instructions into every LLM request.
- Logging
Plugin - Plugin that logs agent and tool lifecycle events.
- Plugin
Manager - Manages an ordered list of plugins, running them in sequence.
- Reflect
Retry Tool Plugin - Plugin that handles tool failures by reflecting on errors.
- Security
Plugin - Plugin that enforces tool call policies via a
PolicyEngine.
Enums§
- Plugin
Result - The result of a plugin hook — controls whether execution continues.
- Policy
Outcome - The outcome of a policy evaluation.
Traits§
- Plugin
- Plugin trait — lifecycle hooks with control-flow capabilities.
- Policy
Engine - Trait for evaluating tool call policies.