ax-llm

Build typed LLM applications with Ax in TypeScript.

2.9k|186|Updated Feb 23, 2023
One-click install
npx skills add https://github.com/ax-llm/ax --skill ax-llm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ax-llm
Source: https://github.com/ax-llm/ax/tree/main/website/static/typescript/.well-known/agent-skills/ax-llm
Command: npx skills add https://github.com/ax-llm/ax --skill ax-llm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers build LLM applications with a single TypeScript-first model for typed generation, provider abstraction, agents, flows, and optimization workflows.

Core Features & Use Cases

  • Typed signatures and generators for structured outputs using string DSLs, fluent builders, or Standard Schema validators like Zod, Valibot, and ArkType.
  • Multi-provider AI access across OpenAI-compatible endpoints, Anthropic, Gemini, Grok/xAI, Mistral, Cohere, Reka, DeepSeek, Azure OpenAI, audio, and realtime streams.
  • Agents and flows for tool use, runtime execution, checkpoints, memory, delegation, branching, loops, and parallel orchestration.
  • Optimization and evaluation for few-shot bootstrapping, GEPA, portable optimizer artifacts, and apply/evaluate workflows.
  • Use Case: A team can define one typed Ax program in TypeScript and deploy the same semantic workflow across Python, Java, C++, Go, and Rust builds.

Quick Start

Ask for a concise TypeScript example that shows how to create an Ax generator, agent, or flow with @ax-llm/ax and explains the required imports and provider setup.

Frequently Asked Questions about ax-llm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build typed LLM applications in TypeScript with structured generation?

To build typed LLM applications in TypeScript, use Ax generators with string DSLs, fluent builders, or Standard Schema validators like Zod and Valibot to enforce structured outputs. This provides reliable type safety for your structured generation workflows.

Can I use multiple AI providers like Anthropic, Gemini, and OpenAI in one TypeScript project?

Yes, you can integrate multiple AI providers like Anthropic, Gemini, OpenAI, Grok, and Mistral in one TypeScript project. Ax provides a multi-provider abstraction layer, allowing you to access OpenAI-compatible endpoints, Azure OpenAI, and others through a unified interface.

What is the best way to orchestrate LLM agents and workflows in TypeScript?

The best way to orchestrate LLM agents and workflows in TypeScript is using Ax flows. Flows support tool use, runtime execution, checkpoints, memory, delegation, branching, loops, and parallel orchestration, enabling complex workflow orchestration for multi-agent systems.

Does Ax support cross-language runtime generation from a single TypeScript definition?

Yes, Ax supports cross-language runtime generation. You can define one typed Ax program in TypeScript and deploy the same semantic workflow across Python, Java, C++, Go, and Rust builds, ensuring consistent application logic across diverse runtime environments.

How do I optimize few-shot prompts and evaluate LLM workflows in TypeScript?

You optimize few-shot prompts and evaluate LLM workflows in TypeScript using Ax's optimization and evaluation features. This includes few-shot bootstrapping, GEPA, portable optimizer artifacts, and apply/evaluate workflows to refine and assess your LLM application performance.