Class LlmConnection.Builder
- All Implemented Interfaces:
LlmConnection._FinalStage,LlmConnection.AdapterStage,LlmConnection.CreatedAtStage,LlmConnection.DisplaySecretKeyStage,LlmConnection.IdStage,LlmConnection.ProviderStage,LlmConnection.UpdatedAtStage,LlmConnection.WithDefaultModelsStage
- Enclosing class:
LlmConnection
-
Method Summary
Modifier and TypeMethodDescriptionThe adapter used to interface with the LLMaddAllCustomModels(List<String> customModels) List of custom model names available for this connectionaddAllExtraHeaderKeys(List<String> extraHeaderKeys) Keys of extra headers sent with requests (values excluded for security)addCustomModels(String customModels) List of custom model names available for this connectionaddExtraHeaderKeys(String extraHeaderKeys) Keys of extra headers sent with requests (values excluded for security)additionalProperties(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.createdAt(OffsetDateTime createdAt) customModels(List<String> customModels) List of custom model names available for this connectiondisplaySecretKey(String displaySecretKey) Masked version of the secret key for display purposesextraHeaderKeys(List<String> extraHeaderKeys) Keys of extra headers sent with requests (values excluded for security)from(LlmConnection other) Provider name (e.g., 'openai', 'my-gateway').updatedAt(OffsetDateTime updatedAt) withDefaultModels(boolean withDefaultModels) Whether to include default models for this adapter
-
Method Details
-
from
- Specified by:
fromin interfaceLlmConnection.IdStage
-
id
- Specified by:
idin interfaceLlmConnection.IdStage
-
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 interfaceLlmConnection.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 interfaceLlmConnection.AdapterStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
displaySecretKey
Masked version of the secret key for display purposes
Masked version of the secret key for display purposes
- Specified by:
displaySecretKeyin interfaceLlmConnection.DisplaySecretKeyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
withDefaultModels
Whether to include default models for this adapter
Whether to include default models for this adapter
- Specified by:
withDefaultModelsin interfaceLlmConnection.WithDefaultModelsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
- Specified by:
createdAtin interfaceLlmConnection.CreatedAtStage
-
updatedAt
- Specified by:
updatedAtin interfaceLlmConnection.UpdatedAtStage
-
config
Adapter-specific configuration. Required for Bedrock (
{"region":"us-east-1"}), optional for VertexAI ({"location":"us-central1"}), not used by other adapters.- Specified by:
configin interfaceLlmConnection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
Adapter-specific configuration. Required for Bedrock (
{"region":"us-east-1"}), optional for VertexAI ({"location":"us-central1"}), not used by other adapters.- Specified by:
configin interfaceLlmConnection._FinalStage
-
addAllExtraHeaderKeys
Keys of extra headers sent with requests (values excluded for security)
- Specified by:
addAllExtraHeaderKeysin interfaceLlmConnection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addExtraHeaderKeys
Keys of extra headers sent with requests (values excluded for security)
- Specified by:
addExtraHeaderKeysin interfaceLlmConnection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
extraHeaderKeys
Keys of extra headers sent with requests (values excluded for security)
- Specified by:
extraHeaderKeysin interfaceLlmConnection._FinalStage
-
addAllCustomModels
List of custom model names available for this connection
- Specified by:
addAllCustomModelsin interfaceLlmConnection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addCustomModels
List of custom model names available for this connection
- Specified by:
addCustomModelsin interfaceLlmConnection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customModels
List of custom model names available for this connection
- Specified by:
customModelsin interfaceLlmConnection._FinalStage
-
baseUrl
Custom base URL for the LLM API
- Specified by:
baseUrlin interfaceLlmConnection._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
baseUrl
Custom base URL for the LLM API
- Specified by:
baseUrlin interfaceLlmConnection._FinalStage
-
build
- Specified by:
buildin interfaceLlmConnection._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceLlmConnection._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceLlmConnection._FinalStage
-