Skip to main content

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


Download files

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

Source Distribution

pgns_agent_crewai-0.2.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

pgns_agent_crewai-0.2.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pgns_agent_crewai-0.2.0.tar.gz.

File metadata

  • Download URL: pgns_agent_crewai-0.2.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pgns_agent_crewai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c5389a7663d5ffbbc43d321f2f148726ca1a10cbaa965baa65f13546e171515a
MD5 3aa7e86baf6ef350f96e7ec73f5eb350
BLAKE2b-256 264405fd7168ead9fd0d138175da29f3c6e0908fda11e1a7a0d35f26b01b5243

See more details on using hashes here.

File details

Details for the file pgns_agent_crewai-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pgns_agent_crewai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2551f777c9d1998e5ed4caa2704656271df00e7e8d91685a8e34318537819db0
MD5 8951c5f4566b80b58f4c1333b15999ca
BLAKE2b-256 440bb6ffd0bfce8ba0b839e54f40b32cb7256fe51b58bb7784f88efe64c361a0

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