Use Composio to get array of strongly typed tools for OpenAI Agents
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file composio_openai_agents-0.18.1.tar.gz.
File metadata
- Download URL: composio_openai_agents-0.18.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a865a184797927c80204c197faadcec759dd113f2487f2873a36d199053960
|
|
| MD5 |
5e69feff0ba1276c412f7363b3088d8d
|
|
| BLAKE2b-256 |
8303e85613f685391e92a33343feb966f905450a7c2181ad21619ab009610146
|
File details
Details for the file composio_openai_agents-0.18.1-py3-none-any.whl.
File metadata
- Download URL: composio_openai_agents-0.18.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
714287b8db41429b66fc46095bd1c1256749965711306c917185638c61876d69
|
|
| MD5 |
e6a71fbe7c29c96f33407856189d7dbc
|
|
| BLAKE2b-256 |
97d46ce7224fbf6f2c5ca99ad583a2fea43881c9765e141b6c3ddf33fefa7ebd
|