Skip to main content

OpenAI Agents SDK adapter for pgns-agent

Project description

pgns-agent-openai

OpenAI Agents SDK adapter for pgns-agent. Wrap any OpenAI agent in a production-ready A2A server with three lines of code.

Installation

pip install pgns-agent-openai

Quick Start

from agents import Agent
from pgns_agent import AgentServer
from pgns_agent_openai import OpenAIAgentsAdapter

openai_agent = Agent(name="helper", instructions="You are a helpful assistant.")

server = AgentServer("my-agent", "An agent powered by OpenAI Agents SDK")
server.use(OpenAIAgentsAdapter(openai_agent))
server.listen(3000)

Streaming

server.use(OpenAIAgentsAdapter(openai_agent, stream=True))

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_openai-0.2.0.tar.gz (14.6 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_openai-0.2.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pgns_agent_openai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 220ecd5ca107d9fa0a7cc292099280989f6c35ae5843a3b1e46b71614fb0c444
MD5 47f06e56cf28d7a9e3c6468844f40ad8
BLAKE2b-256 6ebb0cc7499f1278042d19ebd5d3783da8fcb5faaae0b9306ec95e5b5bce25ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pgns_agent_openai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e55eed0f66a58ffc0d8617e5ae055e66f7386872803d28a6853ce6b90d6c13c5
MD5 5bc77b0c788ee1e65b974cc92f0a3b63
BLAKE2b-256 772fd348283f9b508c711f044d0ce10a2545f3375b4f0ff263e8be147f989686

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