ax
The pretty much "official" DSPy framework for Typescript
Ax generates JSON Schema from signatures for structured LLM output using declarative field definitions and validation constraints. Learn how Ax delivers precise structured data.
How to Leverage Thinking or Reasoning Tokens within Ax: A Complete Guide to Chain-of-Thought AIUnlock chain-of-thought reasoning in Ax LLM. Configure thinking token budgets for enhanced AI responses. Supports OpenAI, Gemini, and Anthropic.
How Context Caching Works with Different LLM Providers in AxLearn how Ax enables provider-agnostic context caching for LLMs. Discover how to use the .cache() modifier to serialize reusable prompt segments for efficient LLM interactions.
How to Configure Rate Limiting for API Calls Made by AxEasily configure rate limiting for API calls made by Ax. Ax's token-based rate limiter tracks usage and delays requests to manage your token budget effectively.
Migration Strategies for Updating Ax Projects: From v13 Factory Functions to v15Update Ax projects from v13 to v15 seamlessly. Learn strategies to replace factory functions, adopt new classes, and ensure type safety for future compatibility.
How to Debug Ax Applications and Trace Operations with OpenTelemetryDebug Ax applications and trace AI operations with OpenTelemetry. Configure the Node SDK to monitor prompts to responses and control payload visibility for effective troubleshooting.
How to Write Unit and Integration Tests for Ax Code: Vitest Patterns and ExamplesLearn to write unit and integration tests for Ax code using Vitest patterns. Discover deterministic LLM mocks with AxMockAIService for efficient testing, reducing API dependencies.
How to Configure the AxJSRuntime for Secure JavaScript Sandboxing in AxSecure your Ax applications by configuring AxJSRuntime for robust JavaScript sandboxing. Block dangerous globals and grant selective permissions to enhance security.
How to Add a Custom LLM Provider to Ax: A Complete Implementation GuideImplement a custom LLM provider for Ax by extending AxAIService and wrapping it with AxAIProvider. Integrate any language model seamlessly with the Ax SDK for full compatibility. Get the complete guide.
How to Use the Memory System in Ax for Context ManagementMaster Ax memory for context management. Learn to track interactions, rewind with tags, and integrate persistence using AxMemory and MCP servers.
How to Handle Multi-Modal Inputs (Images, Audio) in Ax ApplicationsLearn to handle multi-modal inputs like images and audio in Ax applications. Discover how AxChatRequest processes various media or uses fallback strategies for seamless integration.
How Streaming Output Works in Ax: Implementation and Handling GuideLearn how Ax implements streaming output with an asynchronous generator for real-time LLM response consumption. Explore the streamingForward() method and handle incremental deltas efficiently.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →