Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

composio_openai_agents-0.20.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

composio_openai_agents-0.20.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file composio_openai_agents-0.20.0.tar.gz.

File metadata

  • Download URL: composio_openai_agents-0.20.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for composio_openai_agents-0.20.0.tar.gz
Algorithm Hash digest
SHA256 f9eabfe1ee43b1cefc68a80a09fa40f099b436d107c938ce0c55fe7546c5ee8e
MD5 9aa2dd8f157c859c51966f3e4608cad2
BLAKE2b-256 e879a349ddbcdf7ec3354a45330a22a72427721663aa467187a1a6c7b857a019

See more details on using hashes here.

File details

Details for the file composio_openai_agents-0.20.0-py3-none-any.whl.

File metadata

File hashes

Hashes for composio_openai_agents-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67ac1f084eead30ad78df4aceb16c16215daf4b7822d7737389015ded577fbc5
MD5 5da5b77b231de14424d15fd8b834bb6c
BLAKE2b-256 2f5740daf15678fafc9dc749c3072ccdf51cbc33dad744ab16f3467ebe1c65c1

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page