CrewAI adapter for pgns-agent
Project description
pgns-agent-crewai
CrewAI adapter for pgns-agent. Run CrewAI crews as pgns agents with automatic correlation ID propagation and signed webhook delivery.
Quick Start
from crewai import Agent, Crew, Task
from pgns_agent import AgentServer
from pgns_agent_crewai import CrewAIAdapter
# Define your CrewAI crew
researcher = Agent(role="Researcher", goal="Find key facts about a topic")
task = Task(description="Research {topic}", agent=researcher)
crew = Crew(agents=[researcher], tasks=[task])
# Wrap it in a pgns agent
server = AgentServer("my-crew", "A CrewAI-powered research agent")
server.use(CrewAIAdapter(crew))
server.listen(3000)
How It Works
The adapter calls crew.kickoff(inputs=task_input) with the incoming task payload as input variables. The CrewOutput is normalized into a pgns-agent result dict with:
output— the crew's raw output string (or structured Pydantic model)metadata.tasks— per-task results (description, agent, raw output)metadata.token_usage— aggregate token usage when available
Installation
pip install pgns-agent-crewai
License
Apache-2.0
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 pgns_agent_crewai-0.1.1.tar.gz.
File metadata
- Download URL: pgns_agent_crewai-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
243feecda16d811e9586dee9ff13039d4e529b74454066eec25f79c2508d69c7
|
|
| MD5 |
d1e82e04ef5e47f9ae09718cf7492054
|
|
| BLAKE2b-256 |
4ce2ab2920e99b3335b996060c8449185f0a2b1db4db77a2afb6c5e59707b898
|
File details
Details for the file pgns_agent_crewai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pgns_agent_crewai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e109eef73da84df26c0941a559cb1388cf048aafdcdc63dd0b1e37ed6add9da
|
|
| MD5 |
40a8e4d8ad3abbadfffe97068abc4dda
|
|
| BLAKE2b-256 |
b18ee850d1f0bbb41ace40b5440cc220e7261095a48340b6db43fd6f1b0424a3
|