composio-openai-agents
Adapts Composio tools to the OpenAI Agents framework's native tool format, so your agents can take action across 1000+ apps.
Installation
pip install composio composio-openai-agents openai-agents
Set COMPOSIO_API_KEY (from the dashboard) and OPENAI_API_KEY in your environment.
Quickstart
from composio import Composio
from composio_openai_agents import OpenAIAgentsProvider
from agents import Agent, Runner
composio = Composio(provider=OpenAIAgentsProvider())
# Each session is scoped to one of your users
session = composio.create(user_id="user_123")
tools = session.tools()
agent = Agent(
name="Personal Assistant",
instructions="You are a helpful assistant. Use Composio tools to take action.",
tools=tools,
)
result = Runner.run_sync(starting_agent=agent, input="Summarize my emails from today")
print(result.final_output)
By default a session gets meta tools that discover, authenticate, and execute app tools at runtime. For multi-turn use, store session.session_id and reuse it with composio.use(session_id) instead of calling create() again.
Links
Release files for composio-openai-agents 0.23.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| composio_openai_agents-0.23.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| composio_openai_agents-0.23.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / composio_openai_agents-0.23.0.tar.gz
| Download URL | composio_openai_agents-0.23.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71dc9f4d9ee0ae4c54b995506aca2d4f849b3db3b88a98c1f21b2774f49b54df
|
|
BLAKE2b-256 checksum How to use checksums |
74846fe4a6565de65c8e7f43b62422de72028b88fe27e757dd4bceb2955498dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / composio_openai_agents-0.23.0-py3-none-any.whl
| Download URL | composio_openai_agents-0.23.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c3b6f2fb92ff685ddbddb3d302bb7532f1e80e3c82295b97ce9c0dc69dbd690
|
|
BLAKE2b-256 checksum How to use checksums |
71df8b06ecb690f12408744b5e4bb6393cbaa357e7e00dc8635444becd87446f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|