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.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentsml_impl-0.3.1.tar.gz | 255.0 kB | Without provenance | Details for agentsml_impl-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentsml_impl-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for agentsml_impl-0.3.1-py3-none-any.whl |
Total release size: 563.3 kB
Release files / agentsml_impl-0.3.1.tar.gz
| Download URL | agentsml_impl-0.3.1.tar.gz |
|---|---|
| Size | 255.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33757b64ba99e5116b56c53c88e28b61b06300b3e6c0d3c2b5cc3e36370cbad9
|
|
BLAKE2b-256 checksum How to use checksums |
928d82c5848b1fa7b22f446cdff114188d21978996e95df7ecab2879973d401d
|
| 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.3.1-py3-none-any.whl
| Download URL | agentsml_impl-0.3.1-py3-none-any.whl |
|---|---|
| Size | 308.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
214e28eff20268a9d3f96fa9ef50e698b29abf14b829cf1bd7abcdffb77a2a27
|
|
BLAKE2b-256 checksum How to use checksums |
5646e9d1009ad0838cba610c8871bb78c775adb6240d786f8844616e878ffee1
|
| 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.3.1
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.