Plugin Module In ZERDA
On this page
The plugins module (import path: zerda.plugins) gives you a
single, coherent module for building, discovering, securing, and orchestrating plugins that an LLM
agent can call as tools — retrievers, external APIs, mutating actions, and data-processing steps.
from zerda.plugins import PluginManager, PluginMetadata, SchemaProperty
from zerda.plugins import RetrievalPlugin, ToolPlugin
manager = PluginManager(plugin_dirs=["./my_plugins"])
await manager.startup()
# Execute a plugin directly
result = await manager.execute("web_search", {"query": "RAG 2025"}, context)
# Let the AI selector pick the best plugin
plugin = manager.select_one("find recent papers on LLMs")
result = await manager.execute(plugin.name, {"query": "..."}, context)
# Get LLM tool descriptors
tools = manager.tool_descriptors() # OpenAI format
tools = manager.anthropic_tools() # Anthropic format
This example is reproduced verbatim from the package docstring in
plugins/__init__.
What's in the box
Where to go next
- New to the library? Start with Installation and the Quickstart.
- Want the big picture first? Read Architecture and Core Concepts.
- Building your own plugin? Go straight to the Plugin Development tutorial.
- Looking for a specific class or function? Use the API Overview.