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

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.0.0' --with 'anthropic>=0.30.0' --with 'llama-index-core>=0.11.0' --with 'llama-index-llms-openai>=0.1.0' --with 'agno>=1.0.0' --with 'ag2==1.3.1' --with 'uvicorn>=0.30' --with 'strands-agents==1.65.0' --with 'semantic-kernel==1.47.0' --with 'protobuf' 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

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.

License

MIT. See LICENSE.

Metadata

Release files for agentsml-impl 0.2.2

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.2.2
File Size Uploaded Provenance Actions
agentsml_impl-0.2.2.tar.gz 161.8 kB Without provenance Details for agentsml_impl-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 377.8 kB

Release files / agentsml_impl-0.2.2.tar.gz

Download URL agentsml_impl-0.2.2.tar.gz
Size 161.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6329c8519ea3de09b8513eb3b9a4747a3923561adf2df54369c7875a27cccc00
BLAKE2b-256 checksum
How to use checksums
3048a1328880975e4bb8e362a43444e9bb3dbe9b10338c9ee13c289599130b55
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.2.2-py3-none-any.whl

Download URL agentsml_impl-0.2.2-py3-none-any.whl
Size 216.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42c176e3d705c7467f660bee0e6e3df3200d4bfbae19c8aab0dd4f3dca20b50e
BLAKE2b-256 checksum
How to use checksums
d7123ec331e48b708d3819e83b68d9de44eac1c85cbc01f50f220ccca735a53b
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.2.2

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