Skip to main content
The OpenAI Agents provider integrates Composio tools with OpenAI’s Agents SDK (formerly Swarm), enabling multi-agent workflows with tool access.

Installation

Quick Start

Multi-Agent Workflows

Agent Handoffs

Context Variables

Share context between agents:

Streaming

Error Handling

Best Practices

  1. Agent Specialization: Create focused agents for specific domains
  2. Clear Instructions: Write explicit agent instructions
  3. Tool Scoping: Limit tools to what each agent needs
  4. Context Management: Use context variables for shared state
  5. Error Recovery: Implement error handling in agents

TypeScript Types

Differences from OpenAI Provider

Next Steps

OpenAI Provider

Standard OpenAI integration

Tools API

Learn about tools

Connected Accounts

Set up user authentication

Examples

View example code