ai() API Provider, model, routing, media, and embedding APIs. typescript api api/ai build/apidocs api ai() API

ai() API

LLM provider, model, media, routing, and embedding APIs.

Most Used

ai

Factory function for creating AI service instances with full type safety.

FieldValue
Kindfunction
Formai
ReturnsAxAI<InferTModelKey<T>> A configured AI service instance ready for chat completions and embeddings
Sourcesource

Call Shape

TypeScript
function ai<T>(options: T): AxAI<InferTModelKey<T>>;

Arguments And Options

NameTypeDescription
optionsTProvider-specific configuration. Must include name to identify the provider.

Examples

TypeScript
const ai = ai({
  name: 'openai',
  apiKey: process.env.OPENAI_API_KEY
});
TypeScript
const ai = ai({
  name: 'anthropic',
  apiKey: process.env.ANTHROPIC_API_KEY,
  config: {
    model: 'claude-sonnet-4-20250514',
    maxTokens: 4096,
    temperature: 0.7
  }
});

Full reference

AxAI

TypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.

FieldValue
Kindclass
FormAxAI
Sourcesource

Call Shape

TypeScript
chat(req: Readonly<AxChatRequest<TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<
  | AxChatResponse
| ReadableStream<AxChatResponse>>;

Full reference

AxAIAnthropic

TypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.

FieldValue
Kindclass
FormAxAIAnthropic
Sourcesource

Call Shape

TypeScript
new AxAIAnthropic<TModelKey>(__namedParameters: Readonly<Omit<AxAIAnthropicArgs<TModelKey>, "name">>): AxAIAnthropic<TModelKey>;

Full reference

AxAIGoogleGemini

TypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.

FieldValue
Kindclass
FormAxAIGoogleGemini
Sourcesource

Call Shape

TypeScript
new AxAIGoogleGemini<TModelKey>(__namedParameters: Readonly<Omit<AxAIGoogleGeminiArgs<TModelKey>, "name">>): AxAIGoogleGemini<TModelKey>;

Full reference

Advanced / internals / full reference

AxAgentStateExecutorModelState

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAgentStateExecutorModelState
Sourcesource

Call Shape

TypeScript
type AxAgentStateExecutorModelState = object;

Full reference

AxAIAnthropicArgs

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicArgs
Sourcesource

Full reference

AxAIAnthropicChatError

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicChatError
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicChatError = object;

Full reference

AxAIAnthropicChatRequest

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicChatRequest
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicChatRequest = object;

Full reference

AxAIAnthropicChatRequestCacheParam

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicChatRequestCacheParam
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicChatRequestCacheParam = object;

Full reference

AxAIAnthropicChatResponse

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicChatResponse
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicChatResponse = object;

Full reference

AxAIAnthropicChatResponseDelta

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicChatResponseDelta
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicChatResponseDelta = 
  | AxAIAnthropicMessageStartEvent
  | AxAIAnthropicContentBlockStartEvent
  | AxAIAnthropicContentBlockDeltaEvent
  | AxAIAnthropicContentBlockStopEvent
  | AxAIAnthropicMessageDeltaEvent
  | AxAIAnthropicMessageStopEvent
  | AxAIAnthropicPingEvent
  | AxAIAnthropicErrorEvent;

Full reference

AxAIAnthropicConfig

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicConfig
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicConfig = AxModelConfig & object;

Full reference

AxAIAnthropicContentBlockDeltaEvent

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicContentBlockDeltaEvent
Sourcesource

Full reference

AxAIAnthropicContentBlockStartEvent

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicContentBlockStartEvent
Sourcesource

Full reference

AxAIAnthropicContentBlockStopEvent

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicContentBlockStopEvent
Sourcesource

Full reference

axAIAnthropicDefaultConfig

TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.

FieldValue
Kindfunction
FormaxAIAnthropicDefaultConfig
ReturnsAxAIAnthropicConfig
Sourcesource

Call Shape

TypeScript
function axAIAnthropicDefaultConfig(): AxAIAnthropicConfig;

Full reference

AxAIAnthropicEffortLevel

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicEffortLevel
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicEffortLevel = "low" | "medium" | "high" | "xhigh" | "max";

Full reference

AxAIAnthropicEffortLevelMapping

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicEffortLevelMapping
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicEffortLevelMapping = object;

Full reference

AxAIAnthropicErrorEvent

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicErrorEvent
Sourcesource

Full reference

AxAIAnthropicFunctionTool

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicFunctionTool
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicFunctionTool = object & AxAIAnthropicChatRequestCacheParam;

Full reference

AxAIAnthropicMessageDeltaEvent

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicMessageDeltaEvent
Sourcesource

Full reference

AxAIAnthropicMessageStartEvent

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicMessageStartEvent
Sourcesource

Full reference

AxAIAnthropicMessageStopEvent

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicMessageStopEvent
Sourcesource

Full reference

AxAIAnthropicModel

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIAnthropicModel
Sourcesource

Full reference

AxAIAnthropicOutputConfig

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicOutputConfig
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicOutputConfig = object;

Full reference

AxAIAnthropicPingEvent

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIAnthropicPingEvent
Sourcesource

Full reference

AxAIAnthropicRequestTool

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicRequestTool
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicRequestTool = 
  | AxAIAnthropicFunctionTool
  | AxAIAnthropicWebSearchTool;

Full reference

AxAIAnthropicStopDetails

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicStopDetails
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicStopDetails = object;

Full reference

AxAIAnthropicTaskBudget

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicTaskBudget
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicTaskBudget = object;

Full reference

AxAIAnthropicThinkingConfig

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicThinkingConfig
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicThinkingConfig = object;

Full reference

AxAIAnthropicThinkingTokenBudgetLevels

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicThinkingTokenBudgetLevels
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicThinkingTokenBudgetLevels = object;

Full reference

AxAIAnthropicThinkingWire

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicThinkingWire
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicThinkingWire = 
  | {
  budget_tokens: number;
  type: "enabled";
}
  | {
  display?: "summarized" | "omitted";
  type: "adaptive";
};

Full reference

axAIAnthropicVertexDefaultConfig

TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.

FieldValue
Kindfunction
FormaxAIAnthropicVertexDefaultConfig
ReturnsAxAIAnthropicConfig
Sourcesource

Call Shape

TypeScript
function axAIAnthropicVertexDefaultConfig(): AxAIAnthropicConfig;

Full reference

AxAIAnthropicVertexModel

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIAnthropicVertexModel
Sourcesource

Full reference

AxAIAnthropicWebSearchTool

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIAnthropicWebSearchTool
Sourcesource

Call Shape

TypeScript
type AxAIAnthropicWebSearchTool = object;

Full reference

AxAIArgs

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIArgs
Sourcesource

Call Shape

TypeScript
type AxAIArgs<TModelKey> = 
  | AxAIOpenAIArgs<"openai", AxAIOpenAIModel, AxAIOpenAIEmbedModel, TModelKey>
  | AxAIOpenAIResponsesArgs<"openai-responses", AxAIOpenAIResponsesModel, AxAIOpenAIEmbedModel, TModelKey>
  | AxAIAnthropicArgs<TModelKey>
  | AxAIGoogleGeminiArgs<TModelKey>
  | AxAIDeploymentProfileArgs<TModelKey>
| AxAIWebLLMArgs<TModelKey>;

Full reference

AxAICohereEmbedModel

Cohere: Models for use in embeddings

FieldValue
Kindenumeration
FormAxAICohereEmbedModel
Sourcesource

Full reference

AxAICohereModel

Cohere: Models for text generation

FieldValue
Kindenumeration
FormAxAICohereModel
Sourcesource

Full reference

AxAICredentialProvider

Supplies fresh authentication headers immediately before each HTTP attempt.

FieldValue
Kindtypealias
FormAxAICredentialProvider
ReturnsPromise<Record<string, string>>
Sourcesource

Call Shape

TypeScript
type AxAICredentialProvider = (request: AxAICredentialRequest) => Promise<Record<string, string>>;

Arguments And Options

NameTypeDescription
requestAxAICredentialRequest

Full reference

AxAICredentialRequest

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAICredentialRequest
Sourcesource

Call Shape

TypeScript
type AxAICredentialRequest = Readonly<{
  method: string;
  operation:   | "chat"
     | "stream_chat"
     | "embed"
     | "responses"
     | "transcribe"
     | "speak"
     | "realtime";
  profile: string;
  url: string;
}>;

Full reference

AxAIDeepSeekModel

DeepSeek: Models for text generation

FieldValue
Kindenumeration
FormAxAIDeepSeekModel
Sourcesource

Full reference

AxAIDeploymentProfileArgs

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIDeploymentProfileArgs
Sourcesource

Call Shape

TypeScript
type AxAIDeploymentProfileArgs<TModelKey> = Omit<AxAIProfileArgs<TModelKey>, "name"> & object;

Full reference

AxAIDeploymentProfileId

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIDeploymentProfileId
Sourcesource

Call Shape

TypeScript
type AxAIDeploymentProfileId = Exclude<AxAIProfileId, "openai" | "openai-responses" | "anthropic" | "google-gemini" | "webllm">;

Full reference

AxAIEmbedModels

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIEmbedModels
Sourcesource

Call Shape

TypeScript
type AxAIEmbedModels = 
  | AxAIOpenAIEmbedModel
  | AxAIGoogleGeminiEmbedModel
  | AxAICohereEmbedModel;

Full reference

AxAIFeatures

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIFeatures
Sourcesource

Full reference

AxAIGoogleGeminiArgs

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIGoogleGeminiArgs
Sourcesource

Full reference

AxAIGoogleGeminiBatchEmbedRequest

AxAIGoogleGeminiEmbedRequest: Structure for making an embedding request to the Google Gemini API.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiBatchEmbedRequest
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiBatchEmbedRequest = object;

Full reference

AxAIGoogleGeminiBatchEmbedResponse

AxAIGoogleGeminiEmbedResponse: Structure for handling responses from the Google Gemini API embedding requests.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiBatchEmbedResponse
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiBatchEmbedResponse = object;

Full reference

AxAIGoogleGeminiCacheCreateRequest

Request to create a context cache in Vertex AI / Gemini API.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiCacheCreateRequest
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiCacheCreateRequest = object;

Full reference

AxAIGoogleGeminiCacheResponse

Response from creating/getting a context cache.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiCacheResponse
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiCacheResponse = object;

Full reference

AxAIGoogleGeminiCacheUpdateRequest

Request to update a context cache (e.g., extend TTL).

FieldValue
Kindtypealias
FormAxAIGoogleGeminiCacheUpdateRequest
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiCacheUpdateRequest = object;

Full reference

AxAIGoogleGeminiChatRequest

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiChatRequest
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiChatRequest = object;

Full reference

AxAIGoogleGeminiChatResponse

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiChatResponse
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiChatResponse = object;

Full reference

AxAIGoogleGeminiChatResponseDelta

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiChatResponseDelta
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiChatResponseDelta = AxAIGoogleGeminiChatResponse;

Full reference

AxAIGoogleGeminiConfig

AxAIGoogleGeminiConfig: Configuration options for Google Gemini API

FieldValue
Kindtypealias
FormAxAIGoogleGeminiConfig
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiConfig = AxModelConfig & object;

Full reference

AxAIGoogleGeminiContent

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiContent
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiContent = object;

Full reference

AxAIGoogleGeminiContentPart

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiContentPart
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiContentPart = object & 
  | {
  text: string;
  thought?: boolean;
}
  | {
  thought: string;
}
  | {
  inlineData: {
     data: string;
     mimeType: string;
  };
}
  | {
  functionCall: {
     args: object;
     name: string;
  };
}
  | {
  functionResponse: {
     name: string;
     response: object;
  };
}
  | {
  fileData: {
     fileUri: string;
     mimeType: string;
  };
}
  | {
  executableCode: object;
}
  | {
  codeExecutionResult: object;
};

Full reference

axAIGoogleGeminiDefaultConfig

AxAIGoogleGemini: Default Model options for text generation

FieldValue
Kindfunction
FormaxAIGoogleGeminiDefaultConfig
ReturnsAxAIGoogleGeminiConfig
Sourcesource

Call Shape

TypeScript
function axAIGoogleGeminiDefaultConfig(): AxAIGoogleGeminiConfig;

Full reference

axAIGoogleGeminiDefaultCreativeConfig

TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.

FieldValue
Kindfunction
FormaxAIGoogleGeminiDefaultCreativeConfig
ReturnsAxAIGoogleGeminiConfig
Sourcesource

Call Shape

TypeScript
function axAIGoogleGeminiDefaultCreativeConfig(): AxAIGoogleGeminiConfig;

Full reference

AxAIGoogleGeminiEmbedModel

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIGoogleGeminiEmbedModel
Sourcesource

Full reference

AxAIGoogleGeminiEmbedTypes

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIGoogleGeminiEmbedTypes
Sourcesource

Full reference

AxAIGoogleGeminiGenerationConfig

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiGenerationConfig
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiGenerationConfig = object;

Full reference

axAIGoogleGeminiLiveAudioDefaultConfig

TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.

FieldValue
Kindfunction
FormaxAIGoogleGeminiLiveAudioDefaultConfig
ReturnsAxAIGoogleGeminiConfig
Sourcesource

Call Shape

TypeScript
function axAIGoogleGeminiLiveAudioDefaultConfig(): AxAIGoogleGeminiConfig;

Full reference

AxAIGoogleGeminiModel

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIGoogleGeminiModel
Sourcesource

Full reference

AxAIGoogleGeminiOptionsTools

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIGoogleGeminiOptionsTools
Sourcesource

Full reference

AxAIGoogleGeminiRetrievalConfig

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiRetrievalConfig
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiRetrievalConfig = object;

Full reference

AxAIGoogleGeminiSafetyCategory

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIGoogleGeminiSafetyCategory
Sourcesource

Full reference

AxAIGoogleGeminiSafetySettings

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiSafetySettings
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiSafetySettings = object[];

Full reference

AxAIGoogleGeminiSafetyThreshold

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIGoogleGeminiSafetyThreshold
Sourcesource

Full reference

AxAIGoogleGeminiThinkingConfig

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiThinkingConfig
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiThinkingConfig = object;

Full reference

AxAIGoogleGeminiThinkingLevel

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiThinkingLevel
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiThinkingLevel = "minimal" | "low" | "medium" | "high";

Full reference

AxAIGoogleGeminiThinkingLevelMapping

Maps thinkingTokenBudget string levels to Gemini 3 thinkingLevel values. The mapped result is clamped to the levels supported by the resolved model.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiThinkingLevelMapping
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiThinkingLevelMapping = object;

Full reference

AxAIGoogleGeminiThinkingTokenBudgetLevels

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiThinkingTokenBudgetLevels
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiThinkingTokenBudgetLevels = object;

Full reference

AxAIGoogleGeminiTool

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiTool
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiTool = object;

Full reference

AxAIGoogleGeminiToolConfig

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiToolConfig
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiToolConfig = object;

Full reference

AxAIGoogleGeminiToolFunctionDeclaration

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiToolFunctionDeclaration
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiToolFunctionDeclaration = object;

Full reference

AxAIGoogleGeminiToolGoogleMaps

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiToolGoogleMaps
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiToolGoogleMaps = object;

Full reference

AxAIGoogleGeminiToolGoogleSearchRetrieval

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIGoogleGeminiToolGoogleSearchRetrieval
Sourcesource

Call Shape

TypeScript
type AxAIGoogleGeminiToolGoogleSearchRetrieval = object;

Full reference

AxAIGoogleVertexBatchEmbedRequest

AxAIGoogleVertexBatchEmbedRequest: Structure for making an embedding request to the Google Vertex API.

FieldValue
Kindtypealias
FormAxAIGoogleVertexBatchEmbedRequest
Sourcesource

Call Shape

TypeScript
type AxAIGoogleVertexBatchEmbedRequest = object;

Full reference

AxAIGoogleVertexBatchEmbedResponse

AxAIGoogleVertexBatchEmbedResponse: Structure for handling responses from the Google Vertex API embedding requests.

FieldValue
Kindtypealias
FormAxAIGoogleVertexBatchEmbedResponse
Sourcesource

Call Shape

TypeScript
type AxAIGoogleVertexBatchEmbedResponse = object;

Full reference

axAIGrokBestConfig

TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.

FieldValue
Kindfunction
FormaxAIGrokBestConfig
ReturnsAxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>
Sourcesource

Call Shape

TypeScript
function axAIGrokBestConfig(): AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>;

Full reference

axAIGrokDefaultConfig

TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.

FieldValue
Kindfunction
FormaxAIGrokDefaultConfig
ReturnsAxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>
Sourcesource

Call Shape

TypeScript
function axAIGrokDefaultConfig(): AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>;

Full reference

AxAIGrokEmbedModels

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIGrokEmbedModels
Sourcesource

Full reference

AxAIGrokModel

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIGrokModel
Sourcesource

Full reference

axAIGrokVoiceDefaultConfig

TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.

FieldValue
Kindfunction
FormaxAIGrokVoiceDefaultConfig
ReturnsAxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>
Sourcesource

Call Shape

TypeScript
function axAIGrokVoiceDefaultConfig(): AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>;

Full reference

AxAIInputModelList

TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindtypealias
FormAxAIInputModelList
Sourcesource

Call Shape

TypeScript
type AxAIInputModelList<TModel, TEmbedModel, TModelKey> = AxAIModelListBase<TModelKey> & object & 
  | {
  model: TModel;
}
  | {
  embedModel: TEmbedModel;
}[];

Full reference

AxAIMemory

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIMemory
Sourcesource

Call Shape

TypeScript
addFunctionResults(results: readonly AxFunctionResult[], sessionId?: string): void;

Full reference

AxAIMetricsInstruments

TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.

FieldValue
Kindinterface
FormAxAIMetricsInstruments
Sourcesource

Full reference

AxAIMistralEmbedModels

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIMistralEmbedModels
Sourcesource

Full reference

AxAIMistralModel

TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.

FieldValue
Kindenumeration
FormAxAIMistralModel
Sourcesource

Full reference

Full Reference

Open the full TypeScript reference. This page highlights the ai symbols most relevant to everyday use.

Docs