Skip to main content

Python Bindings

Repository: https://github.com/liquidos-ai/AutoAgents

The Python bindings exist to make it easy to explore new ideas quickly without giving up the Rust core that powers AutoAgents.

Python stays focused on agent definition, orchestration, experimentation, and callback glue. Rust owns the runtime, scheduling, streaming, concurrency, and core execution model.

Stable vs Experimental

The production path is:

  • Rust-owned executors (BasicAgent, ReActAgent)
  • Rust-owned memory (SlidingWindowMemory and future Rust-backed providers)
  • Python tools
  • Python hooks

Explicit extension paths live under autoagents.experimental:

  • ExperimentalAgentBuilder
  • CustomExecutor
  • Python-backed memory adapters

Those extension APIs are experimental in the Python bindings specifically because they rely on Python-native execution or Python-native memory behavior. That boundary exists to keep production runtime ownership in Rust rather than re-centering the architecture on Python callbacks.

The same categories of capability are production-grade in the Rust-native implementation. What is experimental here is the Python extension path, not the underlying AutoAgents model when implemented natively in Rust.

Why This Matters

  • Rapid iteration in Python is useful when you are prototyping agent flows, hooks, memory adapters, and pipeline layers.
  • Performance-sensitive and safety-critical behavior still comes from the Rust implementation underneath.
  • Moving a successful prototype to production Rust is easier because the Python layer is orchestration-oriented rather than a separate runtime.

Practical Outcome

You can prototype in Python with:

  • the same LLMProvider model
  • the same pipeline composition model
  • the same agent builder structure
  • the same runtime concepts used by the Rust crates

When you decide to harden something for production, the path to Rust is much smaller because the architecture is already aligned.

Installation from PyPI

Install the base package:

pip install autoagents-py

Install with a local backend or guardrails using extras:

pip install "autoagents-py[llamacpp]"           # llama.cpp CPU
pip install "autoagents-py[llamacpp-cuda]"      # llama.cpp CUDA
pip install "autoagents-py[llamacpp-metal]"     # llama.cpp Metal (macOS)
pip install "autoagents-py[llamacpp-vulkan]"    # llama.cpp Vulkan
pip install "autoagents-py[mistralrs]"          # mistral-rs CPU
pip install "autoagents-py[mistralrs-cuda]"     # mistral-rs CUDA
pip install "autoagents-py[mistralrs-metal]"    # mistral-rs Metal (macOS)
pip install "autoagents-py[guardrails]"         # Guardrails
pip install "autoagents-py[llamacpp-cuda,guardrails]"  # Multiple extras

Local Development

From the repository root:

uv venv --python=3.12
source .venv/bin/activate
uv pip install -U pip "maturin>=1.13.3,<2" pytest pytest-asyncio pytest-cov

make python-bindings-build

For local backend work:

make python-bindings-build-llamacpp-only
make python-bindings-build-mistralrs-only

Backend-specific distributables now live in dedicated package directories under bindings/python/ such as autoagents-llamacpp-cuda and autoagents-mistralrs-metal, so local builds and release builds use the same checked-in package metadata.

For full setup and usage details, see:

  • README.md
  • docs/src/getting-started/python-bindings.md

Release files for autoagents-mistral-rs-py 0.4.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 autoagents-mistral-rs-py 0.4.0
File Size Uploaded
autoagents_mistral_rs_py-0.4.0.tar.gz 501.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for autoagents-mistral-rs-py 0.4.0
File Interpreter ABI Platform
autoagents_mistral_rs_py-0.4.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details
autoagents_mistral_rs_py-0.4.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details
autoagents_mistral_rs_py-0.4.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 68.9 MB

Release files / autoagents_mistral_rs_py-0.4.0.tar.gz

Download URL autoagents_mistral_rs_py-0.4.0.tar.gz
Size 501.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a8cba160518bf4037028c5b85ad8f8f749fb8f49c053c7fc9c870e18c8da8070
BLAKE2b-256 checksum
How to use checksums
4a4d99bf07c416235cbaca643a2fe85158f09608325b26fe158b18d3ad23cd09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 8, 2026.

Transparency log

Release files / autoagents_mistral_rs_py-0.4.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL autoagents_mistral_rs_py-0.4.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 23.9 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
59f7adcdbce2ede632e66499d5222b6174cbd5e0c243b05c4b8786f8a1a913cd
BLAKE2b-256 checksum
How to use checksums
3a914bb0ce894b5ef6c341318930fd81c87477cd586abc31fd087a000e15650e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 8, 2026.

Transparency log

Release files / autoagents_mistral_rs_py-0.4.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL autoagents_mistral_rs_py-0.4.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 23.0 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
b89d640958f5a16b496c92f20276dd19004c180fd39ac059e2acfe3585b1f02e
BLAKE2b-256 checksum
How to use checksums
94db89b27411e2983317a696faa619d19a13cdae615757039623aa2e0473e868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 8, 2026.

Transparency log

Release files / autoagents_mistral_rs_py-0.4.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL autoagents_mistral_rs_py-0.4.0-cp39-abi3-macosx_11_0_arm64.whl
Size 21.6 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cd7418b922d4ecb4f3ca7ccb8bb9be067b75827a31fbd32683bab6a3f2b435cc
BLAKE2b-256 checksum
How to use checksums
7d0e3d7ed898bcfb2c4128697bdfc20a533b0434f8dc78646a733a1d012f0d08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

4 release files

0.3.7

4 release files

0.3.6

4 release files

0.0.1

2 release files

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