Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rust implementation status

AGL 0.6 is implemented by the native Rust compiler, checker, runtime, CLI, adapters, and embedding API. Rust is the sole language implementation.

Implemented surface

AreaStatus
Lexer, parser, source spans, diagnosticsComplete
AGL 0.2–0.6 language versionsComplete
Types, records, unions, Result, exhaustive matchingComplete
Workflows and pipeline loweringComplete
Effects, idempotency, retries, budgetsComplete
Provider-neutral deployment bindings and policyComplete
Parallel, parallel map, race, cancellationComplete
Durable SQLite-backed events, replay, approvalsComplete
Evaluations, distributions, baselines, replayComplete
Modules, visibility, package locks, API comparisonComplete
Formatter, JSON-lines protocol, LSP, completionsComplete
OpenAI and Anthropic adapters plus native toolsComplete
Rust handler/tool/adapter extension traitsComplete

Extension boundary

Rust accepts the checked-in .agent examples and is the implementation used by the conformance and regression suites. Applications extend it through Registry, ToolRegistry, and the extension traits in agl::extension.

Embedding

use agl::{check_program, execute_pipeline, parse_program, Registry};
use agl::context::ExecutionContext;
use std::collections::BTreeMap;

let program = parse_program(source)?;
check_program(&program)?;
let registry = Registry::default();
let value = execute_pipeline(
    &program,
    "pipeline_name",
    BTreeMap::new(),
    &registry,
    &ExecutionContext::default(),
)?;

Validation

cargo fmt --all -- --check
cargo clippy --all-targets --all-features --offline -- -D warnings
cargo test --locked --offline
cargo package --locked --offline

The live-provider tests are intentionally ignored in ordinary runs because they require credentials and make billable network calls. Run them manually or through .github/workflows/live-smoke.yml before a provider release.