AI
AILanguageModelSettings
AILanguageModelSettings =
object
Settings for AI language model.
Properties
capabilities?
optionalcapabilities:object
reasoning
reasoning:
boolean
structured_output
structured_output:
boolean
reasoning?
optionalreasoning: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
A provider instance compatible with the ai library.
getUpstreamProviders()
getUpstreamProviders: () =>
AIUpstreamProvider[]
Gets the list of configured upstream AI providers.
Returns
An array of configured AI upstream providers.
AIUpstreamProvider
AIUpstreamProvider =
object
AI upstream provider information. Only configured providers are returned.
Properties
api
id
AIUpstreamProviderApi
AIUpstreamProviderApi =
"ANTHROPIC"|"GEMINI"|"OPENAI_COMPLETION"|"OPENAI_RESPONSE"|"OPENROUTER"
The response API a provider speaks.
AIUpstreamProviderId
AIUpstreamProviderId =
string
AI upstream provider ID.
