Skip to main content

agentsml-impl

agentsml-impl is the reference compiler and implementation surface for AgentsML. It ingests AgentsML definitions (YAML or JSON) and compiles them into functioning code, export artifacts, and standard configurations for various target AI agent runtimes and protocols.

This repository is distinct from the core spec repository. While agentsml/ contains the standard definitions and schemas, agentsml-impl/ brings them to life via a Design 2 IR-first compilation approach.

Supported Targets

See Target Support Matrix for the current registry coverage, grouped by target category and maturity. The registry lists 31 targets: 22 runnable generators, 9 export generators, and 0 scaffolds. Certification: 15 external-runtime, 16 offline-behavioral, 0 structural. Registry level is retained for compatibility but does not imply runtime maturity.

Quickstart

Getting started: the AgentsML quickstart walks through writing, validating, and compiling a first agent, and the tutorial compiles one spec to five frameworks.

Installation

# Clone the repository
git clone https://github.com/indoos/agentsml-impl.git
cd agentsml-impl

# Install locally
pip install -e .

Usage

The CLI is available as both agentsml and agentsml-impl.

1. Validate an AgentsML document:

agentsml validate path/to/agent.yaml

2. Compile to a Target Framework:

agentsml generate path/to/agent.yaml --target pydantic-ai --out my_project

3. Run Diagnostic Checks:

agentsml doctor path/to/agent.yaml --target crewai

4. Compile (alias of generate):

agentsml compile path/to/agent.yaml -t langgraph -o my_project

5. Render the execution graph:

agentsml graph path/to/agent.yaml --format mermaid

6. List registered targets with maturity and certification:

agentsml list-targets

Development & Testing

Run the complete structural, golden, conformance, and behavioral suite:

pip install -e ".[dev]"
pytest

Run offline behavioral and external-runtime certification:

python scripts/run_certification.py
uv run --python 3.12 --with pytest --with 'pydantic-ai==1.107.0' --with 'langchain>=1.0,<2' --with 'langgraph==1.2.20' --with 'langchain-openai==1.7.4' --with 'google-adk==2.14.0' --with 'a2a-sdk[http-server]>=1.3.0' --with 'openai-agents==0.24.0' --with 'smolagents[openai]==1.26.0' --with 'anthropic>=2.10.0' --with 'llama-index-core==0.14.26' --with 'llama-index-llms-openai==0.9.0' --with 'agno==3.2.1' --with 'ag2[openai,anthropic,gemini]==1.3.1' --with 'uvicorn>=0.30' --with 'strands-agents[openai,anthropic]==1.65.0' --with boto3 --with 'semantic-kernel==1.47.0' --with 'protobuf' --with 'langchain-anthropic==1.7.10' --with 'llama-index-llms-anthropic==0.13.0' --with 'llama-index-llms-google-genai==0.12.0' python scripts/run_external_certification.py --suite a
uv run --python 3.12 --with pytest --with 'crewai==1.15.41' python scripts/run_external_certification.py --suite b

Optional live end-to-end tests run generated projects against a real model (MiniMax) and are skipped unless AGENTSML_LIVE=1 and MINIMAX_API_KEY are set: AGENTSML_LIVE=1 MINIMAX_API_KEY="$(cat <keyfile>)" uv run --frozen pytest tests/live -q, after installing the target SDKs. See tests/live/README.md for the exact install command, endpoints and what each test asserts; a manual live-models GitHub workflow runs them with the MINIMAX_API_KEY secret.

Structural tests prove artifact shape and syntax. Offline behavioral tests execute generated helpers or validate generated protocol artifacts against semantic contracts. External-runtime tests install and exercise the real target SDK or runtime against deterministic fixtures. Fifteen targets are external-runtime certified and the remaining sixteen are offline-behavioral certified; see the support matrix for per-target evidence. The mastra target is certified against the real @mastra/core 1.83.0 (installed with npm in tests/external_runtime/test_mastra_real_sdk_runtime.py, run with a fake AI SDK model and type-checked with tsc --noEmit); it needs Node 22+ and npm, or AGENTSML_SKIP_NPM=1 to skip.

Changelog

See CHANGELOG.md.

Adding a Target

Please refer to the Adapter Authoring Guide for instructions on creating a new target generator.

Contributing: see CONTRIBUTING.md. Step-by-step target guide: docs/adding-a-target.md.

License

MIT. See LICENSE.

Metadata

Release files for agentsml-impl 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 agentsml-impl 0.4.0
File Size Uploaded Provenance Actions
agentsml_impl-0.4.0.tar.gz 326.3 kB Without provenance Details for agentsml_impl-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentsml-impl 0.4.0
File Interpreter ABI Platform Actions
agentsml_impl-0.4.0-py3-none-any.whl Python 3 none any Details for agentsml_impl-0.4.0-py3-none-any.whl

Total release size: 710.5 kB

Release files / agentsml_impl-0.4.0.tar.gz

Download URL agentsml_impl-0.4.0.tar.gz
Size 326.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3da66536bfe43ea9a32fef27b186aa8dc1004400d6f6988b67d8226435a1eb0b
BLAKE2b-256 checksum
How to use checksums
541731e123ffaf848a6ee3ee24e0f065bf6b810c1e967a27b6f0b5c236b87311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / agentsml_impl-0.4.0-py3-none-any.whl

Download URL agentsml_impl-0.4.0-py3-none-any.whl
Size 384.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8cf9426e3d04f6c2f0e53eb3ce304c2767c9ba1c18ee31fba2b40751b6da3b79
BLAKE2b-256 checksum
How to use checksums
bde5e6b8ae19c70325acc1f25f80ec949097e3ed7f4dedfc7dd6258792d3ad9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for agentsml-impl 0.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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