Skip to main content
Extend your agents with powerful plugins that add tools, hooks, and custom functionality.

Quick Start

1

Create a Plugin

2

Register with Manager


Plugin Types

Tool Plugin

Hook Plugin

Agent Plugin

LLM Plugin


Plugin Hooks


Plugin Manager


Discovery & Loading


Function Plugin

Create simple function-based plugins:

API Reference

PluginManager

Plugin manager class

Plugin

Plugin base class

Best Practices

Choose ToolPlugin for adding capabilities, HookPlugin for intercepting events, AgentPlugin for modifying behavior.
Always wrap plugin logic in try-catch blocks to prevent breaking the agent pipeline.
Plugins run in the hot path - avoid heavy computations or blocking operations.
Use semantic versioning to track plugin compatibility with SDK versions.

Hooks

Hook system for event handling

Tools

Create custom tools