Overview of Ax for Python capabilities
mainAx for Python allows you to build reliable AI applications using a shared compiler contract with other languages. Key features include:
- Signatures and schemas: Define inputs/outputs once for reuse in prompts, tools, and validation.
- AxGen: Structured generation with retries, tool calls, field processors, assertions, and provider-backed parsing.
- AxAI: Unified provider boundary for OpenAI-compatible APIs, Gemini, Anthropic, Azure OpenAI, DeepSeek, Mistral, Reka, Cohere, and Grok.
- Audio and realtime: Support for
.chat()withinput_audio,transcribe()/speak()for batch processing, andrealtime_chat()for streaming audio over WebSockets. - AxAgent and RLM: Agentic planning and execution using an RLM executor loop that manages state, logs, and traces.
- AxFlow: Composition of AxGen, AxAgent, and nested flows into portable program graphs.
- Optimizers: Lifecycle management (save, load, apply, evaluate) for optimizer artifacts like the GEPA engine.