What is supported
openai-agents 0.21 and later. Onecortex recognises an Agent and runs it with the SDK’s Runner, streamed. You do not call Runner yourself.
A complete agent
agent.yml
requirements.txt
agent.py
OPENAI_API_KEY as a secret on the agent’s Config tab, then deploy. Any model works: this one is an example. See Configuration and secrets.
A complete OpenAI Agents SDK example
travel-concierge: A triage agent handing off to a booking agent with a flight search tool, on the oldest supported release. It runs with no model key.The prompt and the reply
The prompt is the run’s input. The reply is the run’s final output, streamed as it is written.Events it reports
See Streaming and events.
The caller’s fields
In the run context, which the SDK hands to every tool asctx.context:
sessionId reaches the same running instance; keep conversation memory yourself if you need it. See Sessions.
Known limits
- The SDK’s own sessions are not connected to Onecortex sessions.
Troubleshooting
More on Troubleshooting and Errors.