Skip to main content

Archytas: A Tools Interface for AI Agents

Implementation of the ReAct (Reason & Action) framework for Large Language Model (LLM) agents. Extensible to a variety of LLMs and LLM providers.

Easily create tools from simple python functions or classes with the @tool decorator. A tools list can then be passed to the ReActAgent which will automagically generate a prompt for the LLM containing usage instructions for each tool, as well as manage the ReAct decision loop while the LLM performs its task.

Tools can be anything from internet searches to custom interpreters for your domain. Archytas provides a few built-in demo tools e.g. datetime, fibonacci numbers, and a simple calculator.

Demos

Short demo of using the PythonTool to download a COVID-19 dataset, and perform some basic processing/visualization/analysis/etc.

Watch the video
click to watch original video on youtube

MCP Demos

# Install with MCP support (includes langchain-mcp-adapters + fastmcp)
uv pip install -e ".[mcp]"

# Vision demo with local MCP server
python demos/demo_mcp_vision.py

# External MCP server (DuckDuckGo search via npx)
python demos/demo_mcp_duckduckgo.py

# HTTP MCP server (Context7 - requires API key)
export CONTEXT7_API_KEY="your-api-key"
python demos/demo_mcp_context7.py

To use mcp tools with archytas, you will need to install the optional deps uv pip install -e ".[mcp]"

Read the mcp quick start doc for more info

Quickstart

# clone and install
git clone git@github.com:jataware/archytas.git
cd archytas
uv pip install -e .

# make sure OPENAI_API_KEY var is set
# or pass it in as an argument to the agent
export OPENAI_API_KEY="sk-..."

# run demo
uv run chat-repl

Simple Usage

Import pre-made tools from the tools module

from archytas.react import ReActAgent, FailedTaskError
from archytas.tools import PythonTool

from easyrepl import REPL

# create the agent with the tools list or a `custom_prelude` (if desired)
some_tools = [PythonTool, ..., etc.]
agent = ReActAgent(tools=some_tools, verbose=True)

# REPL to interact with agent
for query in REPL():
    try:
        answer = agent.react(query)
        print(answer)
    except FailedTaskError as e:
        print(f"Error: {e}")

Each agent supports one active react() or react_async() run at a time. Overlapping calls raise RuntimeError before changing conversation history. Await the active run, or cancel and await it, before starting another turn. Applications must also coordinate access when multiple agent instances or workers share a conversation, and avoid direct history changes or calls to query() or execute() while a ReAct run is active.

Documentation

See model providers and families for model configuration and family overrides, and the wiki docs for more details.

Metadata

Release files for archytas 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for archytas 2.1.0
File Size Uploaded Provenance Actions
archytas-2.1.0.tar.gz 92.7 kB With provenance Details for archytas-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for archytas 2.1.0
File Interpreter ABI Platform Actions
archytas-2.1.0-py3-none-any.whl Python 3 none any Details for archytas-2.1.0-py3-none-any.whl

Total release size: 205.3 kB

Release files / archytas-2.1.0.tar.gz

Download URL archytas-2.1.0.tar.gz
Size 92.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e354d36d271cd5801b7a36edd29ec97ea8a87513dadcf3aff5df1722e793a40f
BLAKE2b-256 checksum
How to use checksums
3077f8329acfec6e3a54f67968e407e678e9b2a52213d892c4dad294e9d5779d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / archytas-2.1.0-py3-none-any.whl

Download URL archytas-2.1.0-py3-none-any.whl
Size 112.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b318d89eb18a61619a23c59cc62bc313b5c2210063a356a4c2a291a8460fd2a8
BLAKE2b-256 checksum
How to use checksums
fb5809cbb56245e85b52ef25458f2d58881253b9924f10044e0db9ffa4b46e86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for archytas 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for archytas-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page