Skip to main content

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

  1. Create your plugin class extending praisonaiagents.plugins.plugin.Plugin.
  2. Implement your desired hooks (before_agent, after_tool, etc.).
  3. Add an entry to the [project.entry-points."praisonai.plugins"] section in pyproject.toml.
  4. Run pip install -e . to register your new entry point during testing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

praisonai_plugins-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

praisonai_plugins-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for praisonai_plugins-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7038f151f6c6c81034f3b0deabc12f1042c438bb4937a3e63471c86f7e83d6b8
MD5 d68d4fc73355f4a2237f45af1048dde5
BLAKE2b-256 78d83da77ab65c04ed93b406851a41c26eae06d465d6cc4f6ed7792316f7a261

See more details on using hashes here.

File details

Details for the file praisonai_plugins-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for praisonai_plugins-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0eb0e4a58ea5dc2c90239501c76827388a87600b3c548ef109a65dcaddd81738
MD5 2d6a2599fda8717d4d7502b947c6eadd
BLAKE2b-256 eee02650974a5e4bae44e1a70310cea99d898b57796b3097a876ce74d594e8ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page