SDK for building LLM-powered agents and workflows, based on DSPy
Top 25.3% on sourcepulse
Ax is a TypeScript framework for building LLM-powered agents and workflows, inspired by the DSPy paper. It offers end-to-end streaming, multi-modal support, and automatic prompt generation from type-safe signatures, aiming to simplify LLM development and reduce token usage. The framework is designed for developers building complex LLM applications, from simple text summarization to multi-agent systems.
How It Works
Ax leverages "prompt signatures" which define inputs and outputs with specific types (string, number, boolean, class, arrays, etc.). These signatures are used to auto-generate prompts, enabling type-safe and efficient LLM interactions. The framework handles parsing, validation, error correction, and function calling natively during streaming, providing a robust and performant experience. It supports a wide array of LLMs and integrates features like RAG, vector databases, and prompt optimization.
Quick Start & Requirements
npm install @ax-llm/ax
or yarn add @ax-llm/ax
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
23 hours ago
1 day