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.3.tar.gz (2.4 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.3-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file praisonai_plugins-0.0.3.tar.gz.

File metadata

  • Download URL: praisonai_plugins-0.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for praisonai_plugins-0.0.3.tar.gz
Algorithm Hash digest
SHA256 115d7ebbb138f31fdf5632f52742fe535c74c2467f0453d1ed967769e1164cab
MD5 173004770a8819808cce9182c15a2f49
BLAKE2b-256 f60f5b0a9e969af0652c05760c417a4006aadd52d52af4e21a198c9728a0eb5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for praisonai_plugins-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7172549f453fcceb222a379d25193dca3dcf8fc80b48f0d4401b4e9a2da74758
MD5 8b1493aeaa1c83fdccf0cea514fe8fc9
BLAKE2b-256 8042cf108b8992c79785699ad4449dcefb9d636e3b90a13eda98bf010b03df0a

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