Class UpsertLlmConnectionRequest.Builder
- All Implemented Interfaces:
UpsertLlmConnectionRequest._FinalStage,UpsertLlmConnectionRequest.AdapterStage,UpsertLlmConnectionRequest.ProviderStage,UpsertLlmConnectionRequest.SecretKeyStage
- Enclosing class:
UpsertLlmConnectionRequest
-
Method Summary
Modifier and TypeMethodDescriptionadapter(LlmAdapter adapter) The adapter used to interface with the LLMadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) Custom base URL for the LLM APICustom base URL for the LLM APIbuild()Adapter-specific configuration.Adapter-specific configuration.customModels(List<String> customModels) List of custom model namescustomModels(Optional<List<String>> customModels) List of custom model namesextraHeaders(Map<String, String> extraHeaders) Extra headers to send with requestsextraHeaders(Optional<Map<String, String>> extraHeaders) Extra headers to send with requestsfrom(UpsertLlmConnectionRequest other) Provider name (e.g., 'openai', 'my-gateway').Secret key for the LLM API.withDefaultModels(Boolean withDefaultModels) Whether to include default models.withDefaultModels(Optional<Boolean> withDefaultModels) Whether to include default models.
-
Method Details
-
from
- Specified by:
fromin interfaceUpsertLlmConnectionRequest.ProviderStage
-
provider
Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting.
Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting.
- Specified by:
providerin interfaceUpsertLlmConnectionRequest.ProviderStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adapter
The adapter used to interface with the LLM
The adapter used to interface with the LLM
- Specified by:
adapterin interfaceUpsertLlmConnectionRequest.AdapterStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
secretKey
Secret key for the LLM API.
Secret key for the LLM API.
- Specified by:
secretKeyin interfaceUpsertLlmConnectionRequest.SecretKeyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
Adapter-specific configuration. Validation rules: - Bedrock: Required. Must be
{"region": "<aws-region>"}(e.g.,{"region":"us-east-1"}) - VertexAI: Optional. If provided, must be{"location": "<gcp-location>"}(e.g.,{"location":"us-central1"}) - Other adapters: Not supported. Omit this field or set to null.- Specified by:
configin interfaceUpsertLlmConnectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
Adapter-specific configuration. Validation rules: - Bedrock: Required. Must be
{"region": "<aws-region>"}(e.g.,{"region":"us-east-1"}) - VertexAI: Optional. If provided, must be{"location": "<gcp-location>"}(e.g.,{"location":"us-central1"}) - Other adapters: Not supported. Omit this field or set to null.- Specified by:
configin interfaceUpsertLlmConnectionRequest._FinalStage
-
extraHeaders
Extra headers to send with requests
- Specified by:
extraHeadersin interfaceUpsertLlmConnectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
extraHeaders
public UpsertLlmConnectionRequest._FinalStage extraHeaders(Optional<Map<String, String>> extraHeaders) Extra headers to send with requests
- Specified by:
extraHeadersin interfaceUpsertLlmConnectionRequest._FinalStage
-
withDefaultModels
Whether to include default models. Default is true.
- Specified by:
withDefaultModelsin interfaceUpsertLlmConnectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
withDefaultModels
public UpsertLlmConnectionRequest._FinalStage withDefaultModels(Optional<Boolean> withDefaultModels) Whether to include default models. Default is true.
- Specified by:
withDefaultModelsin interfaceUpsertLlmConnectionRequest._FinalStage
-
customModels
List of custom model names
- Specified by:
customModelsin interfaceUpsertLlmConnectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customModels
List of custom model names
- Specified by:
customModelsin interfaceUpsertLlmConnectionRequest._FinalStage
-
baseUrl
Custom base URL for the LLM API
- Specified by:
baseUrlin interfaceUpsertLlmConnectionRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
baseUrl
Custom base URL for the LLM API
- Specified by:
baseUrlin interfaceUpsertLlmConnectionRequest._FinalStage
-
build
- Specified by:
buildin interfaceUpsertLlmConnectionRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceUpsertLlmConnectionRequest._FinalStage
-
additionalProperties
public UpsertLlmConnectionRequest.Builder additionalProperties(Map<String, Object> additionalProperties) - Specified by:
additionalPropertiesin interfaceUpsertLlmConnectionRequest._FinalStage
-