Skip to content

AI ​

AILanguageModelSettings ​

AILanguageModelSettings = object

Settings for AI language model.

Properties ​

capabilities? ​

optional capabilities: object

reasoning ​

reasoning: boolean

structured_output ​

structured_output: boolean

reasoning? ​

optional reasoning: AIReasoningSettings


AIProvider ​

AIProvider = ProviderV3 & (modelId: string, settings?: AILanguageModelSettings) => LanguageModelV3

Official AI Provider to be used by the ai library.


AIReasoningSettings ​

AIReasoningSettings = object

Settings for AI reasoning.

Properties ​

effort ​

effort: "low" | "medium" | "high"


AiSDK ​

AiSDK = object

Utilities to interact with AI.

Properties ​

createProvider() ​

createProvider: () => AIProvider

Creates a new AI provider instance that can be used with the ai library.

Returns ​

AIProvider

A provider instance compatible with the ai library.

getUpstreamProviders() ​

getUpstreamProviders: () => AIUpstreamProvider[]

Gets the list of upstream AI providers with their configuration status.

Returns ​

AIUpstreamProvider[]

An array of AI upstream providers with their configuration status.


AIUpstreamProvider ​

AIUpstreamProvider = object

AI upstream provider information.

Properties ​

id ​

id: AIUpstreamProviderId

status ​

status: AIUpstreamProviderStatus


AIUpstreamProviderId ​

AIUpstreamProviderId = "anthropic" | "google" | "openai" | "openrouter"

AI upstream provider ID.


AIUpstreamProviderStatus ​

AIUpstreamProviderStatus = "Ready" | "Missing"

AI upstream provider status. Ready: The upstream provider is ready to use. Missing: The upstream provider is not configured.