Skip to main content

Arcade Integration for OpenAI Agents

Project description

Arcade Integration for OpenAI Agents

License PyPI

Arcade DocumentationToolkitsArcade Python ClientOpenAI Agents

agents-arcade

agents-arcade provides an integration between Arcade and the OpenAI Agents Library. This allows you to enhance your AI agents with Arcade's extensive toolkit ecosystem, including tools that reqwuire authorization like Google Mail, Linkedin, X, and more.

Installation

pip install agents-arcade

Basic Usage

from agents import Agent, RunConfig, Runner
from arcadepy import AsyncArcade

from agents_arcade import get_arcade_tools


async def main():
    client = AsyncArcade()
    tools = await get_arcade_tools(client, ["google"])

    google_agent = Agent(
        name="Google agent",
        instructions="You are a helpful assistant that can assist with Google API calls.",
        model="gpt-4o-mini",
        tools=tools,
    )

    result = await Runner.run(
        starting_agent=google_agent,
        input="What are my latest emails?",
        context={"user_id": "user@example.com"},
    )
    print("Final output:\n\n", result.final_output)


if __name__ == "__main__":
    import asyncio

    asyncio.run(main())

Key Features

  • Easy Integration: Simple API (one function) to connect Arcade tools with OpenAI Agents
  • Extensive Toolkit Support: Access to all Arcade toolkits including Gmail, Google Drive, Search, and more
  • Asynchronous Support: Built with async/await for compatibility with OpenAI's Agent framework
  • Authentication Handling: Manages authorization for tools requiring user permissions like Google, LinkedIn, etc

Available Toolkits

Arcade provides many toolkits including:

  • Google: Gmail, Google Drive, Google Calendar
  • Search: Google search, Bing search
  • Web: Crawling, scraping, etc
  • Github: Repository operations
  • Slack: Sending messages to Slack
  • LinkedIn: Posting to LinkedIn
  • X: Posting and reading tweets on X
  • And many more

For a complete list, see the Arcade Toolkits documentation.

Authentication

Many Arcade tools require user authentication. The authentication flow is managed by Arcade and can be triggered by providing a user_id in the context when running your agent. Refer to the Arcade documentation for more details on managing tool authentication.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

agents_arcade-0.0.2.tar.gz (79.4 kB view details)

Uploaded Source

Built Distribution

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

agents_arcade-0.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file agents_arcade-0.0.2.tar.gz.

File metadata

  • Download URL: agents_arcade-0.0.2.tar.gz
  • Upload date:
  • Size: 79.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for agents_arcade-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4a1242205427c8f8b6c1d2779065eb642e5a343cfa8ffa44f778f325c206fec2
MD5 8571cad16bc9025af0dabbc8b1d236c4
BLAKE2b-256 6ca324183394d9826627a17564949760d94b7134032a5c978832ad595527edad

See more details on using hashes here.

File details

Details for the file agents_arcade-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for agents_arcade-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4b1724f64de44918afd78bbd9d9adadad09d1f56f358cb7811e1ddc028596d91
MD5 ac67940d1916320c881d0ddf5bb8e468
BLAKE2b-256 531724733a382465383164085b121038cef1bf96a3f8d5feee96de005e15eb1a

See more details on using hashes here.

Supported by

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