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";
}
  | {
  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>
  | AxAIAzureOpenAIArgs<TModelKey>
  | AxAIAnthropicArgs<TModelKey>
  | AxAIGoogleGeminiArgs<TModelKey>
  | AxAICohereArgs<TModelKey>
  | AxAIMistralArgs<TModelKey>
  | AxAIDeepSeekArgs<TModelKey>
  | AxAIRekaArgs<TModelKey>
| AxAIGrokArgs<TModelKey>;

Full reference

AxAIAzureOpenAI

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

FieldValue
Kindclass
FormAxAIAzureOpenAI
Sourcesource

Call Shape

TypeScript
new AxAIAzureOpenAI<TModelKey>(__namedParameters: Readonly<Omit<AxAIAzureOpenAIArgs<TModelKey>, "name">>): AxAIAzureOpenAI<TModelKey>;

Full reference

AxAIAzureOpenAIArgs

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

FieldValue
Kindtypealias
FormAxAIAzureOpenAIArgs
Sourcesource

Call Shape

TypeScript
type AxAIAzureOpenAIArgs<TModelKey> = AxAIOpenAIArgs<"azure-openai", AxAIOpenAIModel, AxAIOpenAIEmbedModel, TModelKey> & object;

Full reference

axAIAzureOpenAIBestConfig

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

FieldValue
Kindvariable
FormaxAIAzureOpenAIBestConfig
ReturnsAxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>
Sourcesource

Call Shape

TypeScript
const axAIAzureOpenAIBestConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> = axAIOpenAIBestConfig;

Full reference

AxAIAzureOpenAIConfig

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

FieldValue
Kindtypealias
FormAxAIAzureOpenAIConfig
Sourcesource

Call Shape

TypeScript
type AxAIAzureOpenAIConfig = AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;

Full reference

axAIAzureOpenAICreativeConfig

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

FieldValue
Kindvariable
FormaxAIAzureOpenAICreativeConfig
ReturnsAxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>
Sourcesource

Call Shape

TypeScript
const axAIAzureOpenAICreativeConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> = axAIOpenAICreativeConfig;

Full reference

axAIAzureOpenAIDefaultConfig

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

FieldValue
Kindvariable
FormaxAIAzureOpenAIDefaultConfig
ReturnsAxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>
Sourcesource

Call Shape

TypeScript
const axAIAzureOpenAIDefaultConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> = axAIOpenAIDefaultConfig;

Full reference

axAIAzureOpenAIFastConfig

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

FieldValue
Kindvariable
FormaxAIAzureOpenAIFastConfig
ReturnsAxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>
Sourcesource

Call Shape

TypeScript
const axAIAzureOpenAIFastConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> = axAIOpenAIFastConfig;

Full reference

AxAICohere

Cohere provider using Cohere’s OpenAI compatibility endpoint.

FieldValue
Kindclass
FormAxAICohere
Sourcesource

Call Shape

TypeScript
new AxAICohere<TModelKey>(__namedParameters: Readonly<Omit<AxAICohereArgs<TModelKey>, "name">>): AxAICohere<TModelKey>;

Full reference

AxAICohereArgs

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

FieldValue
Kindtypealias
FormAxAICohereArgs
Sourcesource

Call Shape

TypeScript
type AxAICohereArgs<TModelKey> = AxAIOpenAIArgs<"cohere", AxAICohereModel, AxAICohereEmbedModel, TModelKey>;

Full reference

AxAICohereChatRequest

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

FieldValue
Kindtypealias
FormAxAICohereChatRequest
Sourcesource

Call Shape

TypeScript
type AxAICohereChatRequest = object;

Full reference

AxAICohereChatRequestToolResults

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

FieldValue
Kindtypealias
FormAxAICohereChatRequestToolResults
Sourcesource

Call Shape

TypeScript
type AxAICohereChatRequestToolResults = object[];

Full reference

AxAICohereChatResponse

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

FieldValue
Kindtypealias
FormAxAICohereChatResponse
Sourcesource

Call Shape

TypeScript
type AxAICohereChatResponse = object;

Full reference

AxAICohereChatResponseDelta

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

FieldValue
Kindtypealias
FormAxAICohereChatResponseDelta
Sourcesource

Call Shape

TypeScript
type AxAICohereChatResponseDelta = AxAICohereChatResponse & object;

Full reference

AxAICohereChatResponseToolCalls

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

FieldValue
Kindtypealias
FormAxAICohereChatResponseToolCalls
Sourcesource

Call Shape

TypeScript
type AxAICohereChatResponseToolCalls = object[];

Full reference

AxAICohereConfig

Cohere: Model options for text generation

FieldValue
Kindtypealias
FormAxAICohereConfig
Sourcesource

Call Shape

TypeScript
type AxAICohereConfig = AxModelConfig & object;

Full reference

axAICohereCreativeConfig

Creates a creative configuration for Cohere AI service.

FieldValue
Kindfunction
FormaxAICohereCreativeConfig
ReturnsAxAICohereOpenAIConfig
Sourcesource

Call Shape

TypeScript
function axAICohereCreativeConfig(): AxAICohereOpenAIConfig;

Full reference

axAICohereDefaultConfig

Creates the default configuration for Cohere AI service.

FieldValue
Kindfunction
FormaxAICohereDefaultConfig
ReturnsAxAICohereOpenAIConfig
Sourcesource

Call Shape

TypeScript
function axAICohereDefaultConfig(): AxAICohereOpenAIConfig;

Full reference

AxAICohereEmbedModel

Cohere: Models for use in embeddings

FieldValue
Kindenumeration
FormAxAICohereEmbedModel
Sourcesource

Full reference

AxAICohereEmbedRequest

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

FieldValue
Kindtypealias
FormAxAICohereEmbedRequest
Sourcesource

Call Shape

TypeScript
type AxAICohereEmbedRequest = object;

Full reference

AxAICohereEmbedResponse

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

FieldValue
Kindtypealias
FormAxAICohereEmbedResponse
Sourcesource

Call Shape

TypeScript
type AxAICohereEmbedResponse = object;

Full reference

AxAICohereModel

Cohere: Models for text generation

FieldValue
Kindenumeration
FormAxAICohereModel
Sourcesource

Full reference

AxAIDeepSeek

DeepSeek AI client implementation extending OpenAI base functionality Provides access to DeepSeek’s language models through OpenAI-compatible API

FieldValue
Kindclass
FormAxAIDeepSeek
Sourcesource

Call Shape

TypeScript
new AxAIDeepSeek<TModelKey>(args: Readonly<Omit<AxAIDeepSeekArgs<TModelKey>, "name">>): AxAIDeepSeek<TModelKey>;

Full reference

AxAIDeepSeekArgs

Arguments type for initializing DeepSeek AI instances

FieldValue
Kindtypealias
FormAxAIDeepSeekArgs
Sourcesource

Call Shape

TypeScript
type AxAIDeepSeekArgs<TModelKey> = AxAIOpenAIArgs<"deepseek", AxAIDeepSeekModel, undefined, TModelKey>;

Full reference

axAIDeepSeekCodeConfig

Creates a configuration optimized for code generation tasks using DeepSeek V4 Pro

FieldValue
Kindfunction
FormaxAIDeepSeekCodeConfig
ReturnsDeepSeekConfig DeepSeek configuration with creative settings for coding tasks
Sourcesource

Call Shape

TypeScript
function axAIDeepSeekCodeConfig(): DeepSeekConfig;

Full reference

axAIDeepSeekDefaultConfig

Creates the default configuration for DeepSeek AI with the V4 Flash model

FieldValue
Kindfunction
FormaxAIDeepSeekDefaultConfig
ReturnsDeepSeekConfig Default DeepSeek configuration with V4 Flash settings
Sourcesource

Call Shape

TypeScript
function axAIDeepSeekDefaultConfig(): DeepSeekConfig;

Full reference

AxAIDeepSeekModel

DeepSeek: Models for text generation

FieldValue
Kindenumeration
FormAxAIDeepSeekModel
Sourcesource

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

Full Reference

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

Docs