Skip to main content
The OpenAI provider wraps Composio tools in the format expected by OpenAI’s function calling API.

Installation

Quick Start

Usage

Get Tools

Complete Example

Tool Format

The OpenAI provider wraps tools in this format:

Streaming

Use OpenAI’s streaming API with tools:

Parallel Tool Calls

OpenAI supports parallel tool execution:

Strict Mode

Use OpenAI’s strict mode for structured outputs:

Best Practices

  1. Tool Selection: Limit tools to only what’s needed
  2. Error Handling: Wrap tool execution in try-catch
  3. Rate Limits: Handle OpenAI rate limits
  4. Token Usage: Monitor token consumption
  5. Timeouts: Set appropriate timeouts

TypeScript Types

Next Steps

OpenAI Agents

Use OpenAI Agents SDK (Swarm)

Tools API

Learn about tools

Connected Accounts

Set up user authentication

Examples

View example code