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.1.1.tar.gz (12.1 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.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

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

Hashes for pgns_agent_crewai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 243feecda16d811e9586dee9ff13039d4e529b74454066eec25f79c2508d69c7
MD5 d1e82e04ef5e47f9ae09718cf7492054
BLAKE2b-256 4ce2ab2920e99b3335b996060c8449185f0a2b1db4db77a2afb6c5e59707b898

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pgns_agent_crewai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e109eef73da84df26c0941a559cb1388cf048aafdcdc63dd0b1e37ed6add9da
MD5 40a8e4d8ad3abbadfffe97068abc4dda
BLAKE2b-256 b18ee850d1f0bbb41ace40b5440cc220e7261095a48340b6db43fd6f1b0424a3

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