Skip to main content
framework: openai_agents runs your agents YAML through the official OpenAI Agents SDK, with handoffs and task chaining from a single install.
Need a framework that isn’t listed here? See Framework Adapter Plugins to register your own via Python entry points.

Quick Start

1

Install

2

Create agents.yaml

3

Run

Pass --framework openai_agents on the CLI or set framework: openai_agents in your YAML — either alone is enough.

How OpenAI Agents Works

Every result begins with the sentinel prefix ### OpenAI Agents Output ###. Downstream parsers can split on this to extract only the run output.

Sequential Context (Task Chaining)

Tasks reference outputs of earlier tasks with context: [task_name]:
The context: semantics match other framework wrappers (CrewAI, LangGraph, Google ADK). The OpenAI Agents adapter wires the dependency list into the SDK task graph.

Agent Handoffs via YAML

framework: openai_agents is one of three runtimes with first-class handoff support (alongside praisonai and autogen_v4 — confirmed by praisonai doctor).
handoff.to lists target agents by their role: value (here "English Agent"), not the YAML role key. Spaced role names such as Triage Agent are sanitised for internal task references, so human-readable labels stay in YAML.
See Agent Handoffs for the delegation model and Handoff Tool Policy for the tool-intersection rule applied on top of the SDK handoff mechanism.
framework: openai_agents is only valid in agents YAML with a roles: block. Using it in Workflow YAML (steps-style) raises ValueError: framework='openai_agents' in workflow YAML is not supported for workflow execution at load time.

Verify Installation

When praisonai[openai-agents] is installed, the runtime table includes OpenAI Agents SDK with capabilities such as agent_creation, tool_execution, and optional handoff_support.
The probe checks, in order: the openai-agents distribution is installed, the agents import namespace exists, and from agents import Runner succeeds.

Pip Extras

The YAML/CLI key is openai_agents (underscore). Install hints use openai-agents (hyphen) to match PyPI normalisation.

Advanced — Direct Adapter Use

Most users should use the CLI/YAML flow above. To call the adapter directly:

Troubleshooting


Best Practices

Use the roles: agents.yaml shape. The native Workflow YAML engine supports only framework: praisonai.
Declare dependencies with context: [prior_task] instead of imperative wiring — the adapter builds the SDK task graph for you.
Choose this framework when you want the official OpenAI Agents SDK semantics, especially SDK-native handoffs, rather than PraisonAI-native orchestration.
Split results on ### OpenAI Agents Output ### when you need only the model text in downstream automation.

AutoGen

AutoGen family wrapper

CrewAI

CrewAI wrapper

PraisonAI Agents

Native PraisonAI runtime

Agent Handoffs

Delegation model and Python API

Handoff Tool Policy

Tool intersection on handoff

Framework Availability

Probe API and install hints