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";
}
| {
display?: "summarized" | "omitted";
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>
| AxAIAnthropicArgs<TModelKey>
| AxAIGoogleGeminiArgs<TModelKey>
| AxAIDeploymentProfileArgs<TModelKey>
| AxAIWebLLMArgs<TModelKey>;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"
| "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">;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";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;AxAIGoogleGeminiToolGoogleMaps
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiToolGoogleMaps |
| Source | source |
Call Shape
type AxAIGoogleGeminiToolGoogleMaps = object;AxAIGoogleGeminiToolGoogleSearchRetrieval
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleGeminiToolGoogleSearchRetrieval |
| Source | source |
Call Shape
type AxAIGoogleGeminiToolGoogleSearchRetrieval = object;AxAIGoogleVertexBatchEmbedRequest
AxAIGoogleVertexBatchEmbedRequest: Structure for making an embedding request to the Google Vertex API.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleVertexBatchEmbedRequest |
| Source | source |
Call Shape
type AxAIGoogleVertexBatchEmbedRequest = object;AxAIGoogleVertexBatchEmbedResponse
AxAIGoogleVertexBatchEmbedResponse: Structure for handling responses from the Google Vertex API embedding requests.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIGoogleVertexBatchEmbedResponse |
| Source | source |
Call Shape
type AxAIGoogleVertexBatchEmbedResponse = object;axAIGrokBestConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIGrokBestConfig |
| Returns | AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall> |
| Source | source |
Call Shape
function axAIGrokBestConfig(): AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>;axAIGrokDefaultConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIGrokDefaultConfig |
| Returns | AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall> |
| Source | source |
Call Shape
function axAIGrokDefaultConfig(): AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>;AxAIGrokEmbedModels
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIGrokEmbedModels |
| Source | source |
AxAIGrokModel
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIGrokModel |
| Source | source |
axAIGrokVoiceDefaultConfig
TypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
| Field | Value |
|---|---|
| Kind | function |
| Form | axAIGrokVoiceDefaultConfig |
| Returns | AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall> |
| Source | source |
Call Shape
function axAIGrokVoiceDefaultConfig(): AxAIOpenAIConfig<AxAIGrokModel, GrokEmbedSmall>;AxAIInputModelList
TypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | typealias |
| Form | AxAIInputModelList |
| Source | source |
Call Shape
type AxAIInputModelList<TModel, TEmbedModel, TModelKey> = AxAIModelListBase<TModelKey> & object &
| {
model: TModel;
}
| {
embedModel: TEmbedModel;
}[];AxAIMemory
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIMemory |
| Source | source |
Call Shape
addFunctionResults(results: readonly AxFunctionResult[], sessionId?: string): void;AxAIMetricsInstruments
TypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
| Field | Value |
|---|---|
| Kind | interface |
| Form | AxAIMetricsInstruments |
| Source | source |
AxAIMistralEmbedModels
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIMistralEmbedModels |
| Source | source |
AxAIMistralModel
TypeScript enumeration exported by @ax-llm/ax. See the full reference for complete details.
| Field | Value |
|---|---|
| Kind | enumeration |
| Form | AxAIMistralModel |
| Source | source |
Full Reference
Open the full TypeScript reference. This page highlights the ai symbols most relevant to everyday use.