OpenAI Providers
The OpenAI Provider is the default provider for the Composio SDK. It transforms Composio tools into a format compatible with OpenAI’s function calling capabilities through both the Responses and Chat Completion APIs.
Setup
By default, the OpenAI Provider is installed when you install the Composio SDK. You can also install it manually:
Responses API
The Responses API is the recommended way to build more agentic flows with the OpenAI API. Read more about it in the OpenAI documentation
Before executing any tools that require authentication (like Gmail), you’ll need to:
- Create an Auth Configuration for your integration
- Set up a Connected Account for the user.
Chat Completion API
The Chat Completion API generates a model response from a list of messages. Read more about it in the OpenAI documentation. The OpenAI Chat Provider is the default provider used by Composio SDK, but you can also explicitly initialise it.
Before executing any tools that require authentication (like Gmail), you’ll need to:
- Create an Auth Configuration for your integration
- Set up a Connected Account for the user.
Modifiers
Modifiers are functions that can be used to intercept and optionally modify the schema, the tool call request and the response from the tool call.
OpenAI provider modifiers are the standard framework modifiers. Read more here: Modifying tool schemas