Protocol-driven plugins for PraisonAI Agents
Project description
PraisonAI Plugins
Protocol-driven plugins for PraisonAI Agents. This repository contains officially supported plugins that hook into the core agent lifecycle events.
Installation
pip install praisonai-plugins
If you are developing plugins locally:
git clone https://github.com/MervinPraison/PraisonAI-Plugins.git
cd PraisonAI-Plugins
pip install -e .
How It Works
PraisonAI's core SDK introduces a discover_entry_points() mechanism in its PluginManager.
When you install praisonai-plugins, the entry points declared in pyproject.toml are registered in your Python environment under the praisonai.plugins group.
To load them in your agent:
from praisonaiagents.plugins.manager import get_plugin_manager
manager = get_plugin_manager()
manager.discover_entry_points()
# Your agent will now use the installed plugins!
from praisonaiagents import Agent
agent = Agent(name="Assistant", instructions="Be helpful.")
agent.start("Hello!")
Adding New Plugins
- Create your plugin class extending
praisonaiagents.plugins.plugin.Plugin. - Implement your desired hooks (
before_agent,after_tool, etc.). - Add an entry to the
[project.entry-points."praisonai.plugins"]section inpyproject.toml. - Run
pip install -e .to register your new entry point during testing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file praisonai_plugins-0.0.2.tar.gz.
File metadata
- Download URL: praisonai_plugins-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7038f151f6c6c81034f3b0deabc12f1042c438bb4937a3e63471c86f7e83d6b8
|
|
| MD5 |
d68d4fc73355f4a2237f45af1048dde5
|
|
| BLAKE2b-256 |
78d83da77ab65c04ed93b406851a41c26eae06d465d6cc4f6ed7792316f7a261
|
File details
Details for the file praisonai_plugins-0.0.2-py3-none-any.whl.
File metadata
- Download URL: praisonai_plugins-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eb0e4a58ea5dc2c90239501c76827388a87600b3c548ef109a65dcaddd81738
|
|
| MD5 |
2d6a2599fda8717d4d7502b947c6eadd
|
|
| BLAKE2b-256 |
eee02650974a5e4bae44e1a70310cea99d898b57796b3097a876ce74d594e8ba
|