Documentation

Build LLM-powered agents
with production-ready TypeScript

DSPy for TypeScript. Working with LLMs is complex—they don't always do what you want. DSPy makes it easier to build amazing things with LLMs. Just define your inputs and outputs (signature) and an efficient prompt is auto-generated and used. Connect together various signatures to build complex systems and workflows using LLMs.

15+ LLM Providers
End-to-end Streaming
Auto Prompt Tuning

axGetFormatCompatibility

function axGetFormatCompatibility(providers: AxAIService<unknown, unknown, string>[], mediaType: "audio" | "images" | "files"): object;

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/ai/capabilities.ts#L604

Analyzes format compatibility across providers for a specific media type.

Example

const compatibility = axGetFormatCompatibility(allProviders, 'images');
console.log('JPEG support:', compatibility['image/jpeg']?.map(p => p.getName()));
console.log('PNG support:', compatibility['image/png']?.map(p => p.getName()));

Parameters

ParameterTypeDescription
providersAxAIService<unknown, unknown, string>[]Array of AI service providers to analyze
mediaType"audio" | "images" | "files"The media type to check format support for

Returns

object

Object mapping each supported format to the providers that support it