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
Metadata
Release files for composio-openai-agents 0.28.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.28.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| composio_openai_agents-0.28.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / composio_openai_agents-0.28.0.tar.gz
| Download URL | composio_openai_agents-0.28.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f7e8cd6c4b0f9f70d760eeca7370537d32d390e2ffcd0c7318cda72c7c36bc6
|
|
BLAKE2b-256 checksum How to use checksums |
599aa41eb28991380a269fc9834d4072df95ef08db94c82459763776d975b082
|
| 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.28.0-py3-none-any.whl
| Download URL | composio_openai_agents-0.28.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dc2b59ab0a49b3a663aaf04aaf10d1971b2413c7a38822fd73a77be1436293a
|
|
BLAKE2b-256 checksum How to use checksums |
d9f2f9d92456947d62c115424867c2969dfb0379d964f56d1edcf42f1a06d63f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|