Skip to main content

Distributed toolsets for pantheon-agents, provide service via magique message transfer server.

Project description

Pantheon Toolsets

Distributed toolsets for Pantheon Agents.

Build Status Install with PyPi MIT license

Work in progress

Toolsets

  • Python Interpreter
  • R Interpreter
  • Web browse
    • Duckduckgo search
    • Crawl4ai
  • ScraperAPI
    • Google search
    • Web crawl
  • Shell
  • Convert toolset to MCP(Model Context Protocol)
  • File editor/Filesystem access
  • File transfer
  • RAG system
  • LaTeX compiler
  • Browser-use

Installation

git clone https://github.com/aristoteleo/magique-ai.git
cd magique-ai
pip install -e ".[dev]"

Usage

Built-in toolsets:

Toolset Package path Description
Python Interpreter pantheon.toolsets.python Run Python code in an interpreter.
R Interpreter pantheon.toolsets.r Run R code in an interpreter.
Shell pantheon.toolsets.shell Run shell commands.
Web browse pantheon.toolsets.web_browse Search the web and return the contents of the pages.
ScraperAPI pantheon.toolsets.scraper Use ScraperAPI to perform google search and web crawl.
File editor/Filesystem access pantheon.toolsets.file_manager Edit files and access the filesystem.
Vector RAG pantheon.toolsets.vector_rag Query a vector based RAG database.

Start a toolset, for example, the python interpreter from the command line:

python -m pantheon.toolsets.python

See help with:

python -m pantheon.toolsets.python -- --help
NAME
    __main__.py

SYNOPSIS
    __main__.py <flags>

FLAGS
    -s, --service_name=SERVICE_NAME
        Type: str
        Default: 'python-interpreter'
    --mcp=MCP
        Type: bool
        Default: False
    --mcp_kwargs=MCP_KWARGS
        Type: dict
        Default: {}
    -t, --toolset_kwargs=TOOLSET_KWARGS
        Type: dict
        Default: {}

Development

Project structure:

  1. Built-in Toolsets

Test the package

Please start a magique message transfer server first.

python -m magique.server

Then export the server url and run the test:

export MAGIQUE_SERVER_URL=ws://localhost:8765/ws
pytest -s tests/

Environment configration

Firstly, you need docker and buildx installed. See docker docs and buildx docs for installation.

Magique-ai's built-in environments are stored in the environments folder. And all environments could be managed by the environment/build_images.py script:

$ python environment/build_images.py -h
usage: build_images.py [-h] [-a] [-l] [-b TARGET] [--registry REGISTRY_PATH] [--push]

Docker image build automation

options:
  -h, --help            show this help message and exit
  -a, --all             Build all detected images
  -l, --list            List available Docker configurations
  -b TARGET, --build TARGET
                        Build specific image by target name
  --registry REGISTRY_PATH
                        Specify Docker registry path (e.g., ghcr.io/username)
  --push                Push the image(s) to the specified registry after building

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pantheon_toolsets-0.5.0-py3-none-any.whl (45.5 kB view details)

Uploaded Python 3

File details

Details for the file pantheon_toolsets-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pantheon_toolsets-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad359a012c6891744a8078449ec784d62b1383de8b7dff49c8bc5b6e4af186c1
MD5 83829a6827ec275493a7473daa7af344
BLAKE2b-256 f86aefe95441c088c20ec4784d098e0669bf24f9c2f8e97d732b59b50ab47d35

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