composio-openai-agents-1.0.0rc9


توضیحات

Use Composio to get array of strongly typed tools for OpenAI Agents
ویژگی مقدار
سیستم عامل OS Independent
نام فایل composio-openai-agents-1.0.0rc9
نام composio-openai-agents
نسخه کتابخانه 1.0.0rc9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Composio
ایمیل نویسنده Composio <tech@composio.dev>
آدرس صفحه اصلی https://github.com/ComposioHQ/composio
آدرس اینترنتی https://pypi.org/project/composio-openai-agents/
مجوز -
# Composio Integration for OpenAI Agents This package integrates the OpenAI Agents framework with Composio, allowing you to use Composio's rich set of tools with the OpenAI Agents framework. ## Installation ```bash pip install composio_openai_agents ``` ## Usage ```python import asyncio import dotenv from agents import Agent, Runner from composio_openai_agents import Action, ComposioToolSet # Load environment variables from .env dotenv.load_dotenv() # Initialize Composio toolset composio_toolset = ComposioToolSet() # Get all the tools tools = composio_toolset.get_tools(actions=[Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER]) # Create an agent with the tools agent = Agent( name="GitHub Agent", instructions="You are a helpful assistant that helps users with GitHub tasks.", tools=tools, ) # Run the agent async def main(): result = await Runner.run(agent, "Star the repository composiohq/composio on GitHub") print(result.final_output) asyncio.run(main()) ``` ## Features - Seamlessly integrate Composio's tools with OpenAI Agents - Access hundreds of pre-built API integrations - Maintain consistent schema formats between frameworks - Error handling for validation issues - Proper type annotations that work with mypy and pylance ## Requirements - Python 3.9+ - OpenAI Agents framework - Composio (with valid API key) ## License Apache 2.0


نیازمندی

مقدار نام
- openai-agents>=0.0.3
- composio


زبان مورد نیاز

مقدار نام
<4,>=3.9 Python


نحوه نصب


نصب پکیج whl composio-openai-agents-1.0.0rc9:

    pip install composio-openai-agents-1.0.0rc9.whl


نصب پکیج tar.gz composio-openai-agents-1.0.0rc9:

    pip install composio-openai-agents-1.0.0rc9.tar.gz