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
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
pgns_agent_openai-0.2.0.tar.gz
(14.6 kB
view details)
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220ecd5ca107d9fa0a7cc292099280989f6c35ae5843a3b1e46b71614fb0c444
|
|
| MD5 |
47f06e56cf28d7a9e3c6468844f40ad8
|
|
| BLAKE2b-256 |
6ebb0cc7499f1278042d19ebd5d3783da8fcb5faaae0b9306ec95e5b5bce25ab
|
File details
Details for the file pgns_agent_openai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pgns_agent_openai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.2 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 |
e55eed0f66a58ffc0d8617e5ae055e66f7386872803d28a6853ce6b90d6c13c5
|
|
| MD5 |
5bc77b0c788ee1e65b974cc92f0a3b63
|
|
| BLAKE2b-256 |
772fd348283f9b508c711f044d0ce10a2545f3375b4f0ff263e8be147f989686
|