Ax (ax-llm)
Native TypeSafe client and Ax provider for Boolean, Choice, Score, and raw Jev questions, with answer validation and examples.
# Ax — DSPy for TypeScript / Python / Java / C++ / Go / Rust and more One programming model for building with LLMs across TypeScript, Python, Java, C++, Go, and Rust. Ax is TypeScript-first and ships today as `@ax-llm/ax`. The same signatures, provider mappings, agents, flows, runtime contracts, and optimizers are also compiled into verified generated Python, Java, C++, Go, and Rust libraries. [](https://www.npmjs.com/package/@ax-llm/ax) [](https://pypi.org/project/axllm/) [](https://crates.io/crates/axllm) [](https://central.sonatype.com/artifact/dev.axllm/ax) [](https://discord.gg/DSHg3dU7dW) [](https://x.com/intent/follow?screen_name=dosco) > 💬 **Follow [@dosco](https://x.com/intent/follow?screen_name=dosco) on X** for new releases and to chat about the project. ## What Ax is - **Signatures** for typed structured generation: string DSL, fluent `f()` builder, or any **Standard Schema v1** validator — Zod, Valibot, ArkType. - **Named deployment profiles** across native APIs, routers, hosted inference, configurable runtimes, audio, and realtime event streams. The deployment name selects wire behavior; the model ID is resolved only inside it. - **Agents** with runtime execution, context budgets, checkpoints, action-log replay, discovery, memory, skills, and delegation. - **Flows** as typed program graphs with branches, loops, feedback, cache behavior, parallel execution, and `.returns(...)` projection. - **Optimizers** including GEPA, few-shot bootstrapping, portable optimizer artifacts, and evaluation/apply flows. - **One semantic core** compiled into TypeScript, Python, Java, C++, Go, and Rust library shapes, so the same Ax program model can move across runtime stacks. ## Language Matrix | Ecosystem | Package / import | Status | |---|---|---| |