2025-07-23 18:25:15 +00:00
// THIS IS A AUTO-GENERATED FILE. DO NOT MODIFY MANUALLY!
const schema = {
"type" : "object" ,
"title" : "LanguageModel" ,
"definitions" : {
2025-07-23 23:53:43 +00:00
"AmazonBedrockLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "amazon-bedrock" ,
"description" : "Amazon Bedrock Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"accessKeyId" : {
"description" : "Optional access key ID to use with the model. Defaults to the `AWS_ACCESS_KEY_ID` environment variable." ,
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
} ,
"accessKeySecret" : {
"description" : "Optional secret access key to use with the model. Defaults to the `AWS_SECRET_ACCESS_KEY` environment variable." ,
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
} ,
"region" : {
"type" : "string" ,
"description" : "The AWS region. Defaults to the `AWS_REGION` environment variable." ,
"examples" : [
"us-east-1" ,
"us-west-2" ,
"eu-west-1"
]
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
"AnthropicLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "anthropic" ,
"description" : "Anthropic Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `ANTHROPIC_API_KEY` environment variable."
2025-07-23 23:53:43 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
"AzureLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "azure" ,
"description" : "Azure Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The deployment name of the Azure model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"resourceName" : {
"type" : "string" ,
"description" : "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable."
2025-07-23 23:53:43 +00:00
} ,
"apiVersion" : {
"type" : "string" ,
"description" : "Sets a custom api version. Defaults to `preview`."
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
"DeepSeekLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "deepseek" ,
"description" : "DeepSeek Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable."
2025-07-23 23:53:43 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
"GoogleGenerativeAILanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "google-generative-ai" ,
"description" : "Google Generative AI Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable."
2025-07-23 23:53:43 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
"GoogleVertexAnthropicLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "google-vertex-anthropic" ,
"description" : "Google Vertex AI Anthropic Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the Anthropic language model running on Google Vertex." ,
"examples" : [
"claude-sonnet-4"
]
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"project" : {
"type" : "string" ,
"description" : "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
} ,
"region" : {
"type" : "string" ,
"description" : "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable." ,
"examples" : [
"us-central1" ,
"us-east1" ,
"europe-west1"
]
} ,
"credentials" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials."
2025-07-23 23:53:43 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
"GoogleVertexLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "google-vertex" ,
"description" : "Google Vertex AI Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model." ,
"examples" : [
"gemini-2.0-flash-exp" ,
"gemini-1.5-pro" ,
"gemini-1.5-flash"
]
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"project" : {
"type" : "string" ,
"description" : "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
} ,
"region" : {
"type" : "string" ,
"description" : "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable." ,
"examples" : [
"us-central1" ,
"us-east1" ,
"europe-west1"
]
} ,
"credentials" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials."
2025-07-23 23:53:43 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
"MistralLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "mistral" ,
"description" : "Mistral AI Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable."
2025-07-23 23:53:43 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
2025-07-23 18:25:15 +00:00
"OpenAILanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "openai" ,
"description" : "OpenAI Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model." ,
"examples" : [
"gpt-4.1" ,
"o4-mini" ,
"o3" ,
"o3-deep-research"
]
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable."
2025-07-23 23:53:43 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 00:26:51 +00:00
} ,
"reasoningEffort" : {
"type" : "string" ,
"description" : "The reasoning effort to use with the model. Defaults to `medium`. See https://platform.openai.com/docs/guides/reasoning#get-started-with-reasonings" ,
"examples" : [
"minimal" ,
"low" ,
"medium" ,
"high"
]
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
2025-08-05 00:25:54 +00:00
"OpenAICompatibleLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "openai-compatible" ,
"description" : "OpenAI Compatible Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key. If specified, adds an `Authorization` header to request headers with the value Bearer <token>."
2025-08-05 00:25:54 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Base URL of the OpenAI-compatible chat completions API endpoint." ,
"examples" : [
"http://localhost:8080/v1"
]
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-08-05 00:25:54 +00:00
}
} ,
"required" : [
"provider" ,
"model" ,
"baseUrl"
] ,
"additionalProperties" : false
} ,
2025-07-23 23:53:43 +00:00
"OpenRouterLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "openrouter" ,
"description" : "OpenRouter Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable."
2025-07-23 23:53:43 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
"XaiLanguageModel" : {
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "xai" ,
"description" : "xAI Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model." ,
"examples" : [
2025-07-23 23:53:43 +00:00
"grok-beta" ,
"grok-vision-beta"
2025-07-23 18:25:15 +00:00
]
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
}
} ,
"oneOf" : [
{
2025-07-23 18:25:15 +00:00
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "amazon-bedrock" ,
"description" : "Amazon Bedrock Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"accessKeyId" : {
"description" : "Optional access key ID to use with the model. Defaults to the `AWS_ACCESS_KEY_ID` environment variable." ,
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
} ,
"accessKeySecret" : {
"description" : "Optional secret access key to use with the model. Defaults to the `AWS_SECRET_ACCESS_KEY` environment variable." ,
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
} ,
"region" : {
"type" : "string" ,
"description" : "The AWS region. Defaults to the `AWS_REGION` environment variable." ,
"examples" : [
"us-east-1" ,
"us-west-2" ,
"eu-west-1"
]
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
2025-07-23 23:53:43 +00:00
{
2025-07-23 18:25:15 +00:00
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "anthropic" ,
"description" : "Anthropic Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `ANTHROPIC_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
2025-07-23 23:53:43 +00:00
{
2025-07-23 18:25:15 +00:00
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "azure" ,
"description" : "Azure Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
2025-07-23 23:53:43 +00:00
"description" : "The deployment name of the Azure model."
2025-07-23 18:25:15 +00:00
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
2025-07-23 23:53:43 +00:00
"resourceName" : {
"type" : "string" ,
"description" : "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
} ,
2025-07-23 18:25:15 +00:00
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
2025-07-23 23:53:43 +00:00
"apiVersion" : {
"type" : "string" ,
"description" : "Sets a custom api version. Defaults to `preview`."
} ,
2025-07-23 18:25:15 +00:00
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
2025-07-23 23:53:43 +00:00
"description" : "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
2025-07-23 23:53:43 +00:00
{
2025-07-23 18:25:15 +00:00
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "deepseek" ,
"description" : "DeepSeek Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
2025-07-23 23:53:43 +00:00
"description" : "The name of the language model."
2025-07-23 18:25:15 +00:00
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
2025-07-23 23:53:43 +00:00
"token" : {
2025-07-23 18:25:15 +00:00
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
2025-07-23 23:53:43 +00:00
{
2025-07-23 18:25:15 +00:00
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "google-generative-ai" ,
"description" : "Google Generative AI Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
2025-07-23 23:53:43 +00:00
"description" : "The name of the language model."
2025-07-23 18:25:15 +00:00
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
2025-07-23 23:53:43 +00:00
"token" : {
2025-07-23 18:25:15 +00:00
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
2025-07-23 23:53:43 +00:00
} ,
2025-07-23 18:25:15 +00:00
{
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "google-vertex-anthropic" ,
"description" : "Google Vertex AI Anthropic Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
2025-07-23 23:53:43 +00:00
"description" : "The name of the Anthropic language model running on Google Vertex." ,
2025-07-23 18:25:15 +00:00
"examples" : [
2025-07-23 23:53:43 +00:00
"claude-sonnet-4"
2025-07-23 18:25:15 +00:00
]
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
2025-07-23 23:53:43 +00:00
"project" : {
"type" : "string" ,
"description" : "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
} ,
"region" : {
"type" : "string" ,
"description" : "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable." ,
"examples" : [
"us-central1" ,
"us-east1" ,
"europe-west1"
]
} ,
"credentials" : {
2025-07-23 18:25:15 +00:00
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "google-vertex" ,
"description" : "Google Vertex AI Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
2025-07-23 23:53:43 +00:00
"description" : "The name of the language model." ,
"examples" : [
"gemini-2.0-flash-exp" ,
"gemini-1.5-pro" ,
"gemini-1.5-flash"
]
2025-07-23 18:25:15 +00:00
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
2025-07-23 23:53:43 +00:00
"project" : {
"type" : "string" ,
"description" : "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
} ,
"region" : {
"type" : "string" ,
"description" : "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable." ,
"examples" : [
"us-central1" ,
"us-east1" ,
"europe-west1"
2025-07-23 18:25:15 +00:00
]
} ,
2025-07-23 23:53:43 +00:00
"credentials" : {
2025-07-23 18:25:15 +00:00
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "mistral" ,
"description" : "Mistral AI Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "openai" ,
"description" : "OpenAI Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
2025-07-23 23:53:43 +00:00
"description" : "The name of the language model." ,
"examples" : [
"gpt-4.1" ,
"o4-mini" ,
"o3" ,
"o3-deep-research"
]
2025-07-23 18:25:15 +00:00
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 00:26:51 +00:00
} ,
"reasoningEffort" : {
"type" : "string" ,
"description" : "The reasoning effort to use with the model. Defaults to `medium`. See https://platform.openai.com/docs/guides/reasoning#get-started-with-reasonings" ,
"examples" : [
"minimal" ,
"low" ,
"medium" ,
"high"
]
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
2025-08-05 00:25:54 +00:00
{
"type" : "object" ,
"properties" : {
"provider" : {
"const" : "openai-compatible" ,
"description" : "OpenAI Compatible Configuration"
} ,
"model" : {
"type" : "string" ,
"description" : "The name of the language model."
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
"token" : {
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key. If specified, adds an `Authorization` header to request headers with the value Bearer <token>."
2025-08-05 00:25:54 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Base URL of the OpenAI-compatible chat completions API endpoint." ,
"examples" : [
"http://localhost:8080/v1"
]
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-08-05 00:25:54 +00:00
}
} ,
"required" : [
"provider" ,
"model" ,
"baseUrl"
] ,
"additionalProperties" : false
} ,
2025-07-23 18:25:15 +00:00
{
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "openrouter" ,
"description" : "OpenRouter Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
2025-07-23 23:53:43 +00:00
"description" : "The name of the language model."
2025-07-23 18:25:15 +00:00
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
2025-07-23 23:53:43 +00:00
"token" : {
2025-07-23 18:25:15 +00:00
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"provider" : {
2025-07-23 23:53:43 +00:00
"const" : "xai" ,
"description" : "xAI Configuration"
2025-07-23 18:25:15 +00:00
} ,
"model" : {
"type" : "string" ,
2025-07-23 23:53:43 +00:00
"description" : "The name of the language model." ,
2025-07-23 18:25:15 +00:00
"examples" : [
2025-07-23 23:53:43 +00:00
"grok-beta" ,
"grok-vision-beta"
2025-07-23 18:25:15 +00:00
]
} ,
"displayName" : {
"type" : "string" ,
"description" : "Optional display name."
} ,
2025-07-23 23:53:43 +00:00
"token" : {
2025-07-23 18:25:15 +00:00
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
2025-08-08 21:49:00 +00:00
] ,
"description" : "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable."
2025-07-23 18:25:15 +00:00
} ,
"baseUrl" : {
"type" : "string" ,
"format" : "url" ,
"pattern" : "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$" ,
"description" : "Optional base URL."
2025-08-08 21:49:00 +00:00
} ,
"headers" : {
"type" : "object" ,
"description" : "Optional headers to use with the model." ,
"patternProperties" : {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$" : {
"anyOf" : [
{
"type" : "string"
} ,
{
"anyOf" : [
{
"type" : "object" ,
"properties" : {
"secret" : {
"type" : "string" ,
"description" : "The name of the secret that contains the token."
}
} ,
"required" : [
"secret"
] ,
"additionalProperties" : false
} ,
{
"type" : "object" ,
"properties" : {
"env" : {
"type" : "string" ,
"description" : "The name of the environment variable that contains the token. Only supported in declarative connection configs."
}
} ,
"required" : [
"env"
] ,
"additionalProperties" : false
}
]
}
]
}
} ,
"additionalProperties" : false
2025-07-23 18:25:15 +00:00
}
} ,
"required" : [
"provider" ,
"model"
] ,
"additionalProperties" : false
}
]
} as const ;
export { schema as languageModelSchema } ;