ax-rust-ai

Generate Rust AxAI provider client code for axllm workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write Rust code against the generated Ax package axllm for provider clients, model selection, and multi-provider LLM integrations without drifting into TypeScript-only APIs.

Core Features & Use Cases

  • Provider Client Setup: Create OpenAI-compatible, Responses, Gemini, and Anthropic clients in Rust.
  • Routing and Balancing: Configure routers and balancers for multi-service model selection and request distribution.
  • Deterministic Examples: Use no-key scripted transports for safe local validation, or provider-api examples when real credentials are available.

Quick Start

Use this skill to draft the Rust axllm code needed to create an AI client for the provider and behavior I specify.

Frequently Asked Questions about ax-rust-ai

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

FAQPage Schema
How do I write Rust code for OpenAI-compatible provider clients?

To write Rust code for OpenAI-compatible provider clients, you generate implementations using the axllm package API, supplying package examples and manifest-backed patterns to ensure accurate setup. This prevents drifting into TypeScript-only APIs.

What's the best way to configure multi-provider LLM routers and balancers in Rust?

Configuring multi-provider LLM routers and balancers in Rust involves using the axllm package to define request distribution and model selection logic. You supply provider API examples to generate accurate multi-service routing code.

Can I set up Anthropic and Gemini clients in Rust without real API keys?

Yes, you can set up Anthropic and Gemini clients without real API keys by using no-key scripted transports for safe local validation. This allows deterministic testing of provider setup before applying real credentials.

Does the axllm Rust integration support OpenAI Responses endpoints?

Yes, the axllm Rust integration explicitly supports OpenAI Responses endpoints alongside standard OpenAI-compatible, Gemini, and Anthropic client configurations. You provide the generated Rust package API and examples to produce accurate endpoint setup.

Why does my Rust LLM integration code keep drifting into TypeScript APIs?

Rust LLM integration code drifts into TypeScript APIs when lacking accurate package examples and manifest-backed patterns. Using this Skill enforces the correct axllm Rust package API, ensuring generated provider clients and routers match valid Rust implementations.