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-4-20250514',
maxTokens: 4096,
temperature: 0.7
}
});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">>): 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";
}
| {
type: "adaptive";
};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>
| AxAIAzureOpenAIArgs<TModelKey>
| AxAIAnthropicArgs<TModelKey>
| AxAIGoogleGeminiArgs<TModelKey>
| AxAICohereArgs<TModelKey>
| AxAIMistralArgs<TModelKey>
| AxAIDeepSeekArgs<TModelKey>
| AxAIRekaArgs<TModelKey>
| AxAIGrokArgs<TModelKey>;AxAIAzureOpenAI
TypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
| Field | Value |
|---|---|
| Kind | class |
| Form | AxAIAzureOpenAI |
| Source | source |
Call Shape
new AxAIAzureOpenAI<TModelKey>(__namedParameters: Readonly<Omit<AxAIAzureOpenAIArgs<TModelKey>, "name">>): AxAIAzureOpenAI<TModelKey>;AxAIAzureOpenAIArgs
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAzureOpenAIArgs |
| Source | source |
Call Shape
type AxAIAzureOpenAIArgs<TModelKey> = AxAIOpenAIArgs<"azure-openai", AxAIOpenAIModel, AxAIOpenAIEmbedModel, TModelKey> & object;axAIAzureOpenAIBestConfig
TypeScript variable exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | variable |
| Form | axAIAzureOpenAIBestConfig |
| Returns | AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> |
| Source | source |
Call Shape
const axAIAzureOpenAIBestConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> = axAIOpenAIBestConfig;AxAIAzureOpenAIConfig
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIAzureOpenAIConfig |
| Source | source |
Call Shape
type AxAIAzureOpenAIConfig = AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;axAIAzureOpenAICreativeConfig
TypeScript variable exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | variable |
| Form | axAIAzureOpenAICreativeConfig |
| Returns | AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> |
| Source | source |
Call Shape
const axAIAzureOpenAICreativeConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> = axAIOpenAICreativeConfig;axAIAzureOpenAIDefaultConfig
TypeScript variable exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | variable |
| Form | axAIAzureOpenAIDefaultConfig |
| Returns | AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> |
| Source | source |
Call Shape
const axAIAzureOpenAIDefaultConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> = axAIOpenAIDefaultConfig;axAIAzureOpenAIFastConfig
TypeScript variable exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | variable |
| Form | axAIAzureOpenAIFastConfig |
| Returns | AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> |
| Source | source |
Call Shape
const axAIAzureOpenAIFastConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel> = axAIOpenAIFastConfig;AxAICohere
Cohere provider using Cohere’s OpenAI compatibility endpoint.
| Field | Value |
|---|---|
| Kind | class |
| Form | AxAICohere |
| Source | source |
Call Shape
new AxAICohere<TModelKey>(__namedParameters: Readonly<Omit<AxAICohereArgs<TModelKey>, "name">>): AxAICohere<TModelKey>;AxAICohereArgs
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereArgs |
| Source | source |
Call Shape
type AxAICohereArgs<TModelKey> = AxAIOpenAIArgs<"cohere", AxAICohereModel, AxAICohereEmbedModel, TModelKey>;AxAICohereChatRequest
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereChatRequest |
| Source | source |
Call Shape
type AxAICohereChatRequest = object;AxAICohereChatRequestToolResults
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereChatRequestToolResults |
| Source | source |
Call Shape
type AxAICohereChatRequestToolResults = object[];AxAICohereChatResponse
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereChatResponse |
| Source | source |
Call Shape
type AxAICohereChatResponse = object;AxAICohereChatResponseDelta
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereChatResponseDelta |
| Source | source |
Call Shape
type AxAICohereChatResponseDelta = AxAICohereChatResponse & object;AxAICohereChatResponseToolCalls
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereChatResponseToolCalls |
| Source | source |
Call Shape
type AxAICohereChatResponseToolCalls = object[];AxAICohereConfig
Cohere: Model options for text generation
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereConfig |
| Source | source |
Call Shape
type AxAICohereConfig = AxModelConfig & object;axAICohereCreativeConfig
Creates a creative configuration for Cohere AI service.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAICohereCreativeConfig |
| Returns | AxAICohereOpenAIConfig |
| Source | source |
Call Shape
function axAICohereCreativeConfig(): AxAICohereOpenAIConfig;axAICohereDefaultConfig
Creates the default configuration for Cohere AI service.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAICohereDefaultConfig |
| Returns | AxAICohereOpenAIConfig |
| Source | source |
Call Shape
function axAICohereDefaultConfig(): AxAICohereOpenAIConfig;AxAICohereEmbedModel
Cohere: Models for use in embeddings
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAICohereEmbedModel |
| Source | source |
AxAICohereEmbedRequest
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereEmbedRequest |
| Source | source |
Call Shape
type AxAICohereEmbedRequest = object;AxAICohereEmbedResponse
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAICohereEmbedResponse |
| Source | source |
Call Shape
type AxAICohereEmbedResponse = object;AxAICohereModel
Cohere: Models for text generation
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAICohereModel |
| Source | source |
AxAIDeepSeek
DeepSeek AI client implementation extending OpenAI base functionality Provides access to DeepSeek’s language models through OpenAI-compatible API
| Field | Value |
|---|---|
| Kind | class |
| Form | AxAIDeepSeek |
| Source | source |
Call Shape
new AxAIDeepSeek<TModelKey>(args: Readonly<Omit<AxAIDeepSeekArgs<TModelKey>, "name">>): AxAIDeepSeek<TModelKey>;AxAIDeepSeekArgs
Arguments type for initializing DeepSeek AI instances
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIDeepSeekArgs |
| Source | source |
Call Shape
type AxAIDeepSeekArgs<TModelKey> = AxAIOpenAIArgs<"deepseek", AxAIDeepSeekModel, undefined, TModelKey>;axAIDeepSeekCodeConfig
Creates a configuration optimized for code generation tasks using DeepSeek V4 Pro
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIDeepSeekCodeConfig |
| Returns | DeepSeekConfig DeepSeek configuration with creative settings for coding tasks |
| Source | source |
Call Shape
function axAIDeepSeekCodeConfig(): DeepSeekConfig;axAIDeepSeekDefaultConfig
Creates the default configuration for DeepSeek AI with the V4 Flash model
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIDeepSeekDefaultConfig |
| Returns | DeepSeekConfig Default DeepSeek configuration with V4 Flash settings |
| Source | source |
Call Shape
function axAIDeepSeekDefaultConfig(): DeepSeekConfig;AxAIDeepSeekModel
DeepSeek: Models for text generation
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIDeepSeekModel |
| Source | source |
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;
name: string;
};
}
| {
functionResponse: {
name: string;
response: object;
};
}
| {
fileData: {
fileUri: string;
mimeType: 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";Full Reference
Open the full TypeScript reference. This page highlights the ai symbols most relevant to everyday use.