Skip to main content

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

Metadata

Release files for pgns-agent-crewai 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pgns-agent-crewai 0.2.0
File Size Uploaded
pgns_agent_crewai-0.2.0.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pgns-agent-crewai 0.2.0
File Interpreter ABI Platform
pgns_agent_crewai-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / pgns_agent_crewai-0.2.0.tar.gz

Download URL pgns_agent_crewai-0.2.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c5389a7663d5ffbbc43d321f2f148726ca1a10cbaa965baa65f13546e171515a
BLAKE2b-256 checksum
How to use checksums
264405fd7168ead9fd0d138175da29f3c6e0908fda11e1a7a0d35f26b01b5243
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pgns_agent_crewai-0.2.0-py3-none-any.whl

Download URL pgns_agent_crewai-0.2.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2551f777c9d1998e5ed4caa2704656271df00e7e8d91685a8e34318537819db0
BLAKE2b-256 checksum
How to use checksums
440bb6ffd0bfce8ba0b839e54f40b32cb7256fe51b58bb7784f88efe64c361a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page