MCP Server Framework and Tool Development library for building custom capabilities into agents.
Find a file
Nate Barbettini 739cc957f1
Fix CI: config errors, Python 3.11 union type errors (#45)
Fixes 2 issues that were causing CI to fail:
- Loading `config` in `eval.py` breaks because no API key can be found
in CI
- Python 3.11+ changed `Union` to `UnionType`
2024-09-19 12:07:28 -07:00
.github Deploy Actor Image (#34) 2024-09-10 10:07:31 -07:00
.vscode Add New Gmail Tools To The Google Toolkit (#41) 2024-09-19 10:18:49 -07:00
arcade Fix CI: config errors, Python 3.11 union type errors (#45) 2024-09-19 12:07:28 -07:00
docker Add New Gmail Tools To The Google Toolkit (#41) 2024-09-19 10:18:49 -07:00
examples Add New Gmail Tools To The Google Toolkit (#41) 2024-09-19 10:18:49 -07:00
schemas/preview Update requires_authorization and other naming (#39) 2024-09-19 09:51:28 -07:00
toolkits Add New Gmail Tools To The Google Toolkit (#41) 2024-09-19 10:18:49 -07:00
.editorconfig MyPy Compliant (#5) 2024-07-16 17:01:38 -07:00
.gitignore Add minor changes found during onboarding (#37) 2024-09-12 16:52:36 -07:00
.pre-commit-config.yaml MyPy Compliant (#5) 2024-07-16 17:01:38 -07:00
.prettierrc.toml MyPy Compliant (#5) 2024-07-16 17:01:38 -07:00
CONTRIBUTING.md MyPy Compliant (#5) 2024-07-16 17:01:38 -07:00
cspell.config.yaml Refactor into library approach (#7) 2024-07-23 16:26:54 -07:00
LICENSE Tool SDK, Schemas (#2) 2024-07-14 23:37:46 -07:00
Makefile Add New Gmail Tools To The Google Toolkit (#41) 2024-09-19 10:18:49 -07:00
README.md Cleanup examples and README (#8) 2024-07-24 09:10:31 -07:00

Release Build status codecov Commit activity License

Arcade AI

Arcade AI is the developer platform for building tools designed to be used with language models. With Arcade, developers can create, deploy, and easily integrate new tools with language models to enhance their capabilities.

arcade-ai

The arcade-ai package contains:

  • arcade CLI
  • arcade.sdk Tool SDK
  • arcade.actor serving tools with FastAPI, Flask, or Django

Installation

To install the Arcade AI package, execute the following command:

pip install arcade-ai

or install from source:

git clone https://github.com/arcadeai/arcade-ai.git
cd arcade-ai
pip install poetry
poetry install

First steps

Follow these steps if you've cloned the repo and installed the package from source:

cd examples/websearch
poetry install

arcade show arcade_websearch

This will show an output that looks like

┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┓ ┃ Name ┃ Description ┃ Toolkit ┃ Version ┃ ┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━┩ │ SearchGoogle │ Search Google using SerpAPI and return organic search results. │ websearch │ 0.1.0 │ └──────────────┴────────────────────────────────────────────────────────────────┴───────────┴─────────┘

Predict the parameters with a model and run the tool with the predicted parameters. Arcade adds the execute choice to the tool, which allows you to run the tool with the predicted parameters in a single request.

> arcade run arcade_websearch "who is Sam Partee?" --choice "execute"
Running tool: SearchGoogle with params: {'query': 'Sam Partee'}

[{"position": 1, "title": "Sam Partee (@SamPartee) / X", "link": "https://twitter.com/sampartee", "redirect_link":
"https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://twitter.com/sampartee&ved=2ahUKEwjBwKiz3b6HAxV1VTABHXL8BZQQFnoECAYQAQ",
"displayed_link": "1.5K+ followers", "thumbnail":
.....
.. (truncated)

Arcade also adds the predict choice to the tool, which allows you to predict the parameters with a model.

> arcade run arcade_websearch "who is Sam Partee?" --choice "predict" # also the default
Running tool: SearchGoogle with params: {'query': 'Sam Partee'}

Sam Partee is a CTO, Co-founder of Arcade AI and former Machine Learning Engineer at companies like RedisInc and HPE_Cray. They have
expertise in AI/ML, vector search, Python, HPC, and are a sports fan.