ai() API
LLM provider, model, media, routing, and embedding APIs.
Most Used
ai
Factory function for creating AI service instances with full type safety.
| Field | Value |
|---|---|
| Kind | function |
| Form | ai |
| Returns | AxAI<InferTModelKey<T>> A configured AI service instance ready for chat completions and embeddings |
| Source | source |
Call Shape
function ai<T>(options: T): AxAI<InferTModelKey<T>>;Arguments And Options
| Name | Type | Description |
|---|---|---|
options | T | Provider-specific configuration. Must include name to identify the provider. |
Examples
const ai = ai({
name: 'openai',
apiKey: process.env.OPENAI_API_KEY
});const ai = ai({
name: 'anthropic',
apiKey: process.env.ANTHROPIC_API_KEY,
config: {
model: 'claude-sonnet-5',
maxTokens: 4096
}
});AxAI
TypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
| Field | Value |
|---|---|
| Kind | class |
| Form | AxAI |
| Source | source |
Call Shape
chat(req: Readonly<AxChatRequest<TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<
| AxChatResponse
| ReadableStream<AxChatResponse>>;AxAIAnthropic
TypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
| Field | Value |
|---|---|
| Kind | class |
| Form | AxAIAnthropic |
| Source | source |
Call Shape
new AxAIAnthropic<TModelKey>(__namedParameters: Readonly<Omit<AxAIAnthropicArgs<TModelKey>, "name"> & object>): AxAIAnthropic<TModelKey>;AxAIGoogleGemini
TypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
| Field | Value |
|---|---|
| Kind | class |
| Form | AxAIGoogleGemini |
| Source | source |
Call Shape
new AxAIGoogleGemini<TModelKey>(__namedParameters: Readonly<Omit<AxAIGoogleGeminiArgs<TModelKey>, "name">>): AxAIGoogleGemini<TModelKey>;Advanced / internals / full reference
AxAgentStateExecutorModelState
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAgentStateExecutorModelState |
| Source | source |
Call Shape
type AxAgentStateExecutorModelState = object;AxAIAnthropicArgs
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicArgs |
| Source | source |
AxAIAnthropicChatError
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicChatError |
| Source | source |
Call Shape
type AxAIAnthropicChatError = object;AxAIAnthropicChatRequest
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicChatRequest |
| Source | source |
Call Shape
type AxAIAnthropicChatRequest = object;AxAIAnthropicChatRequestCacheParam
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicChatRequestCacheParam |
| Source | source |
Call Shape
type AxAIAnthropicChatRequestCacheParam = object;AxAIAnthropicChatResponse
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicChatResponse |
| Source | source |
Call Shape
type AxAIAnthropicChatResponse = object;AxAIAnthropicChatResponseDelta
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicChatResponseDelta |
| Source | source |
Call Shape
type AxAIAnthropicChatResponseDelta =
| AxAIAnthropicMessageStartEvent
| AxAIAnthropicContentBlockStartEvent
| AxAIAnthropicContentBlockDeltaEvent
| AxAIAnthropicContentBlockStopEvent
| AxAIAnthropicMessageDeltaEvent
| AxAIAnthropicMessageStopEvent
| AxAIAnthropicPingEvent
| AxAIAnthropicErrorEvent;AxAIAnthropicConfig
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicConfig |
| Source | source |
Call Shape
type AxAIAnthropicConfig = AxModelConfig & object;AxAIAnthropicContentBlockDeltaEvent
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicContentBlockDeltaEvent |
| Source | source |
AxAIAnthropicContentBlockStartEvent
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicContentBlockStartEvent |
| Source | source |
AxAIAnthropicContentBlockStopEvent
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicContentBlockStopEvent |
| Source | source |
axAIAnthropicDefaultConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIAnthropicDefaultConfig |
| Returns | AxAIAnthropicConfig |
| Source | source |
Call Shape
function axAIAnthropicDefaultConfig(): AxAIAnthropicConfig;AxAIAnthropicEffortLevel
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicEffortLevel |
| Source | source |
Call Shape
type AxAIAnthropicEffortLevel = "low" | "medium" | "high" | "xhigh" | "max";AxAIAnthropicEffortLevelMapping
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicEffortLevelMapping |
| Source | source |
Call Shape
type AxAIAnthropicEffortLevelMapping = object;AxAIAnthropicErrorEvent
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicErrorEvent |
| Source | source |
AxAIAnthropicFunctionTool
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicFunctionTool |
| Source | source |
Call Shape
type AxAIAnthropicFunctionTool = object & AxAIAnthropicChatRequestCacheParam;AxAIAnthropicMessageDeltaEvent
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicMessageDeltaEvent |
| Source | source |
AxAIAnthropicMessageStartEvent
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicMessageStartEvent |
| Source | source |
AxAIAnthropicMessageStopEvent
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicMessageStopEvent |
| Source | source |
AxAIAnthropicModel
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIAnthropicModel |
| Source | source |
AxAIAnthropicOutputConfig
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicOutputConfig |
| Source | source |
Call Shape
type AxAIAnthropicOutputConfig = object;AxAIAnthropicPingEvent
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIAnthropicPingEvent |
| Source | source |
AxAIAnthropicRequestTool
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicRequestTool |
| Source | source |
Call Shape
type AxAIAnthropicRequestTool =
| AxAIAnthropicFunctionTool
| AxAIAnthropicWebSearchTool;AxAIAnthropicStopDetails
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicStopDetails |
| Source | source |
Call Shape
type AxAIAnthropicStopDetails = object;AxAIAnthropicTaskBudget
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicTaskBudget |
| Source | source |
Call Shape
type AxAIAnthropicTaskBudget = object;AxAIAnthropicThinkingConfig
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicThinkingConfig |
| Source | source |
Call Shape
type AxAIAnthropicThinkingConfig = object;AxAIAnthropicThinkingTokenBudgetLevels
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicThinkingTokenBudgetLevels |
| Source | source |
Call Shape
type AxAIAnthropicThinkingTokenBudgetLevels = object;AxAIAnthropicThinkingWire
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicThinkingWire |
| Source | source |
Call Shape
type AxAIAnthropicThinkingWire =
| {
budget_tokens: number;
type: "enabled";
}
| {
display?: "summarized" | "omitted";
type: "adaptive";
}
| {
type: "disabled";
}
| {
type: "between_tools";
};axAIAnthropicVertexDefaultConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIAnthropicVertexDefaultConfig |
| Returns | AxAIAnthropicConfig |
| Source | source |
Call Shape
function axAIAnthropicVertexDefaultConfig(): AxAIAnthropicConfig;AxAIAnthropicVertexModel
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIAnthropicVertexModel |
| Source | source |
AxAIAnthropicWebSearchTool
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAnthropicWebSearchTool |
| Source | source |
Call Shape
type AxAIAnthropicWebSearchTool = object;AxAIArgs
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIArgs |
| Source | source |
Call Shape
type AxAIArgs<TModelKey> =
| AxAIOpenAIArgs<"openai", AxAIOpenAIModel, AxAIOpenAIEmbedModel, TModelKey>
| AxAIOpenAIResponsesArgs<"openai-responses", AxAIOpenAIResponsesModel, AxAIOpenAIEmbedModel, TModelKey>
| AxAIAnthropicArgs<TModelKey>
| AxAIGoogleGeminiArgs<TModelKey>
| AxAIMetaArgs<TModelKey>
| AxAITypesafeArgs<TModelKey>
| AxAIOpenAIDecisionsArgs<TModelKey>
| AxAIDeploymentProfileArgs<TModelKey>
| AxAIWebLLMArgs<TModelKey>
| AxAIChromeAIArgs<TModelKey>;AxAIChromeAI
AxAIChromeAI: Adapter for Chrome’s built-in AI (Prompt API)
| Field | Value |
|---|---|
| Kind | class |
| Form | AxAIChromeAI |
| Source | source |
Call Shape
const chromeAI = ai({ name: 'chrome-ai' });
const gen = ax('question -> answer');
const result = await gen.forward(chromeAI, { question: 'What is 2+2?' });AxAIChromeAIArgs
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIChromeAIArgs |
| Source | source |
AxAIChromeAIChatRequest
Chrome AI: Synthetic chat request Maps ax’s multi-message format to Chrome AI’s session + prompt model
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIChromeAIChatRequest |
| Source | source |
Call Shape
type AxAIChromeAIChatRequest = object;AxAIChromeAIChatResponse
Chrome AI: Synthetic chat response Wraps Chrome AI’s text response into an OpenAI-like structure for ax
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIChromeAIChatResponse |
| Source | source |
Call Shape
type AxAIChromeAIChatResponse = object;AxAIChromeAIChatResponseDelta
Chrome AI: Streaming response delta Chrome AI’s promptStreaming() returns successive text chunks.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIChromeAIChatResponseDelta |
| Source | source |
Call Shape
type AxAIChromeAIChatResponseDelta = object;AxAIChromeAIConfig
Chrome AI: Model options for text generation
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIChromeAIConfig |
| Source | source |
Call Shape
type AxAIChromeAIConfig = AxModelConfig & object;axAIChromeAICreativeConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIChromeAICreativeConfig |
| Returns | AxAIChromeAIConfig |
| Source | source |
Call Shape
function axAIChromeAICreativeConfig(): AxAIChromeAIConfig;axAIChromeAIDefaultConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIChromeAIDefaultConfig |
| Returns | AxAIChromeAIConfig |
| Source | source |
Call Shape
function axAIChromeAIDefaultConfig(): AxAIChromeAIConfig;AxAIChromeAIEmbedModel
Chrome AI doesn’t support embeddings Placeholders for consistency with the framework
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIChromeAIEmbedModel |
| Source | source |
Call Shape
type AxAIChromeAIEmbedModel = never;AxAIChromeAIEmbedRequest
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIChromeAIEmbedRequest |
| Source | source |
Call Shape
type AxAIChromeAIEmbedRequest = never;AxAIChromeAIEmbedResponse
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIChromeAIEmbedResponse |
| Source | source |
Call Shape
type AxAIChromeAIEmbedResponse = never;AxAIChromeAIImpl
TypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
| Field | Value |
|---|---|
| Kind | class |
| Form | AxAIChromeAIImpl |
| Source | source |
Call Shape
new AxAIChromeAIImpl(config: AxAIChromeAIConfig, languageModel?: ChromeAILanguageModel): AxAIChromeAIImpl;AxAIChromeAIModel
Chrome AI: Model for text generation Chrome ships with Gemini Nano as its built-in AI model
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIChromeAIModel |
| Source | source |
AxAIChromeAIModelId
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIChromeAIModelId |
| Source | source |
Call Shape
type AxAIChromeAIModelId =
| AxAIChromeAIModel
| string & object;AxAICohereEmbedModel
Cohere: Models for use in embeddings
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAICohereEmbedModel |
| Source | source |
AxAICohereModel
Cohere: Models for text generation
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAICohereModel |
| Source | source |
AxAICredentialProvider
Supplies fresh authentication headers immediately before each HTTP attempt.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICredentialProvider |
| Returns | Promise<Record<string, string>> |
| Source | source |
Call Shape
type AxAICredentialProvider = (request: AxAICredentialRequest) => Promise<Record<string, string>>;Arguments And Options
| Name | Type | Description |
|---|---|---|
request | AxAICredentialRequest |
AxAICredentialRequest
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICredentialRequest |
| Source | source |
Call Shape
type AxAICredentialRequest = Readonly<{
method: string;
operation: | "chat"
| "models"
| "stream_chat"
| "embed"
| "responses"
| "transcribe"
| "speak"
| "realtime";
profile: string;
url: string;
}>;AxAIDeepSeekModel
DeepSeek: Models for text generation
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIDeepSeekModel |
| Source | source |
AxAIDeploymentProfileArgs
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIDeploymentProfileArgs |
| Source | source |
Call Shape
type AxAIDeploymentProfileArgs<TModelKey> = Omit<AxAIProfileArgs<TModelKey>, "name"> & object;AxAIDeploymentProfileId
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIDeploymentProfileId |
| Source | source |
Call Shape
type AxAIDeploymentProfileId = Exclude<AxAIProfileId,
| "openai"
| "openai-responses"
| "anthropic"
| "google-gemini"
| "webllm"
| "chrome-ai"
| "typesafe"
| "openai-decisions"
| "meta"
| "meta-chat"
| "meta-messages">;AxAIEmbedModels
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIEmbedModels |
| Source | source |
Call Shape
type AxAIEmbedModels =
| AxAIOpenAIEmbedModel
| AxAIGoogleGeminiEmbedModel
| AxAICohereEmbedModel;AxAIFeatures
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIFeatures |
| Source | source |
AxAIGoogleGeminiArgs
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIGoogleGeminiArgs |
| Source | source |
AxAIGoogleGeminiBatchEmbedRequest
AxAIGoogleGeminiEmbedRequest: Structure for making an embedding request to the Google Gemini API.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiBatchEmbedRequest |
| Source | source |
Call Shape
type AxAIGoogleGeminiBatchEmbedRequest = object;AxAIGoogleGeminiBatchEmbedResponse
AxAIGoogleGeminiEmbedResponse: Structure for handling responses from the Google Gemini API embedding requests.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiBatchEmbedResponse |
| Source | source |
Call Shape
type AxAIGoogleGeminiBatchEmbedResponse = object;AxAIGoogleGeminiCacheCreateRequest
Request to create a context cache in Vertex AI / Gemini API.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiCacheCreateRequest |
| Source | source |
Call Shape
type AxAIGoogleGeminiCacheCreateRequest = object;AxAIGoogleGeminiCacheResponse
Response from creating/getting a context cache.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiCacheResponse |
| Source | source |
Call Shape
type AxAIGoogleGeminiCacheResponse = object;AxAIGoogleGeminiCacheUpdateRequest
Request to update a context cache (e.g., extend TTL).
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiCacheUpdateRequest |
| Source | source |
Call Shape
type AxAIGoogleGeminiCacheUpdateRequest = object;AxAIGoogleGeminiChatRequest
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiChatRequest |
| Source | source |
Call Shape
type AxAIGoogleGeminiChatRequest = object;AxAIGoogleGeminiChatResponse
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiChatResponse |
| Source | source |
Call Shape
type AxAIGoogleGeminiChatResponse = object;AxAIGoogleGeminiChatResponseDelta
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiChatResponseDelta |
| Source | source |
Call Shape
type AxAIGoogleGeminiChatResponseDelta = AxAIGoogleGeminiChatResponse;AxAIGoogleGeminiConfig
AxAIGoogleGeminiConfig: Configuration options for Google Gemini API
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiConfig |
| Source | source |
Call Shape
type AxAIGoogleGeminiConfig = AxModelConfig & object;AxAIGoogleGeminiContent
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiContent |
| Source | source |
Call Shape
type AxAIGoogleGeminiContent = object;AxAIGoogleGeminiContentPart
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiContentPart |
| Source | source |
Call Shape
type AxAIGoogleGeminiContentPart = object &
| {
text: string;
thought?: boolean;
}
| {
thought: string;
}
| {
inlineData: {
data: string;
mimeType: string;
};
}
| {
functionCall: {
args: object;
id?: string;
name: string;
};
}
| {
functionResponse: {
id?: string;
name: string;
response: object;
};
}
| {
fileData: {
fileUri: string;
mimeType: string;
};
}
| {
audioTranscription: {
text: string;
};
}
| {
executableCode: object;
}
| {
codeExecutionResult: object;
};axAIGoogleGeminiDefaultConfig
AxAIGoogleGemini: Default Model options for text generation
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIGoogleGeminiDefaultConfig |
| Returns | AxAIGoogleGeminiConfig |
| Source | source |
Call Shape
function axAIGoogleGeminiDefaultConfig(): AxAIGoogleGeminiConfig;axAIGoogleGeminiDefaultCreativeConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIGoogleGeminiDefaultCreativeConfig |
| Returns | AxAIGoogleGeminiConfig |
| Source | source |
Call Shape
function axAIGoogleGeminiDefaultCreativeConfig(): AxAIGoogleGeminiConfig;AxAIGoogleGeminiEmbedModel
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIGoogleGeminiEmbedModel |
| Source | source |
AxAIGoogleGeminiEmbedTypes
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIGoogleGeminiEmbedTypes |
| Source | source |
AxAIGoogleGeminiGenerationConfig
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiGenerationConfig |
| Source | source |
Call Shape
type AxAIGoogleGeminiGenerationConfig = object;axAIGoogleGeminiLiveAudioDefaultConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIGoogleGeminiLiveAudioDefaultConfig |
| Returns | AxAIGoogleGeminiConfig |
| Source | source |
Call Shape
function axAIGoogleGeminiLiveAudioDefaultConfig(): AxAIGoogleGeminiConfig;AxAIGoogleGeminiModel
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIGoogleGeminiModel |
| Source | source |
AxAIGoogleGeminiOptionsTools
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIGoogleGeminiOptionsTools |
| Source | source |
AxAIGoogleGeminiRetrievalConfig
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiRetrievalConfig |
| Source | source |
Call Shape
type AxAIGoogleGeminiRetrievalConfig = object;AxAIGoogleGeminiSafetyCategory
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIGoogleGeminiSafetyCategory |
| Source | source |
AxAIGoogleGeminiSafetySettings
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiSafetySettings |
| Source | source |
Call Shape
type AxAIGoogleGeminiSafetySettings = object[];AxAIGoogleGeminiSafetyThreshold
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIGoogleGeminiSafetyThreshold |
| Source | source |
AxAIGoogleGeminiThinkingConfig
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiThinkingConfig |
| Source | source |
Call Shape
type AxAIGoogleGeminiThinkingConfig = object;AxAIGoogleGeminiThinkingLevel
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiThinkingLevel |
| Source | source |
Call Shape
type AxAIGoogleGeminiThinkingLevel = "minimal" | "low" | "medium" | "high";AxAIGoogleGeminiThinkingLevelMapping
Maps thinkingTokenBudget string levels to Gemini 3 thinkingLevel values. The mapped result is clamped to the levels supported by the resolved model.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiThinkingLevelMapping |
| Source | source |
Call Shape
type AxAIGoogleGeminiThinkingLevelMapping = object;AxAIGoogleGeminiThinkingTokenBudgetLevels
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiThinkingTokenBudgetLevels |
| Source | source |
Call Shape
type AxAIGoogleGeminiThinkingTokenBudgetLevels = object;AxAIGoogleGeminiTool
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiTool |
| Source | source |
Call Shape
type AxAIGoogleGeminiTool = object;AxAIGoogleGeminiToolConfig
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiToolConfig |
| Source | source |
Call Shape
type AxAIGoogleGeminiToolConfig = object;AxAIGoogleGeminiToolFunctionDeclaration
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiToolFunctionDeclaration |
| Source | source |
Call Shape
type AxAIGoogleGeminiToolFunctionDeclaration = object;Full Reference
Open the full TypeScript reference. This page highlights the ai symbols most relevant to everyday use.