Class ProfileAttributes.Builder
java.lang.Object
com.oracle.database.selectai.model.ProfileAttributes.Builder
- Enclosing class:
ProfileAttributes
Builder for
ProfileAttributes.-
Method Summary
Modifier and TypeMethodDescriptionadditionalInstructions(String additionalInstructions) Sets additional instructions included in Select AI prompts.annotations(Boolean annotations) Sets whether table/column annotations are included in metadata.azureDeploymentName(String azureDeploymentName) Sets the Azure OpenAI deployment name for the generation model.azureEmbeddingDeploymentName(String azureEmbeddingDeploymentName) Sets the Azure OpenAI deployment name for the embedding model.azureResourceName(String azureResourceName) Sets the Azure OpenAI resource name.build()Builds immutable profile attributes.caseSensitiveValues(Boolean caseSensitiveValues) Sets whether generated SQL value matching is case-sensitive.Sets whether table and column comments are included in metadata.constraints(Boolean constraints) Sets whether referential constraints are included in metadata.conversation(Boolean conversation) Sets whether conversation history is enabled for the profile.conversationLength(Integer conversationLength) Sets how many conversation turns are retained for context.credentialName(String credentialName) Sets the database credential used for provider API calls.customAttribute(String key, String value) Accepts an unmodeled profile attribute for forward compatibility.embeddingModel(String embeddingModel) Sets the embedding model name.enableCustomSourceUri(Boolean enableCustomSourceUri) Sets whether custom source URI metadata is enabled.enforceObjectList(Boolean enforceObjectList) Sets whether generated SQL is restricted to the object list.Sets the maximum generated output tokens.Sets the provider model identifier.objectList(String objectList) Sets the object list JSON used to constrain metadata.objectListMode(ObjectListMode objectListMode) Sets the object-list selection mode used for NL2SQL processing.objectListMode(String objectListMode) Sets the object-list selection mode used for NL2SQL processing.ociApiformat(OciApiFormat ociApiFormat) Sets the OCI Generative AI API format.ociApiformat(String ociApiformat) Sets the OCI Generative AI API format.ociCompartmentId(String ociCompartmentId) Sets the OCI compartment OCID.ociEndpointId(String ociEndpointId) Sets the OCI dedicated endpoint OCID.ociRuntimetype(String ociRuntimetype) Sets the OCI runtime type attribute.Sets the AI provider for the profile.providerEndpoint(String providerEndpoint) Sets the provider endpoint host/path.providerProfile(ProviderProfile providerProfile) Applies a provider profile shortcut to this builder.Sets the provider region.Sets the role prompt used by Select AI.Sets the deterministic sampling seed.sourceLanguage(String sourceLanguage) Sets the source language for translation.stopTokens(List<String> stopTokens) Sets stop tokens that terminate generation.targetLanguage(String targetLanguage) Sets the target language for translation.temperature(Double temperature) Sets the provider sampling temperature.vectorIndexName(String vectorIndexName) Sets the vector index name associated with the profile.
-
Method Details
-
annotations
Sets whether table/column annotations are included in metadata.- Parameters:
annotations- annotation metadata flag- Returns:
- this builder instance
-
additionalInstructions
Sets additional instructions included in Select AI prompts.- Parameters:
additionalInstructions- additional prompt instructions- Returns:
- this builder instance
-
azureDeploymentName
Sets the Azure OpenAI deployment name for the generation model.- Parameters:
azureDeploymentName- Azure deployment name- Returns:
- this builder instance
-
azureEmbeddingDeploymentName
Sets the Azure OpenAI deployment name for the embedding model.- Parameters:
azureEmbeddingDeploymentName- Azure embedding deployment name- Returns:
- this builder instance
-
azureResourceName
Sets the Azure OpenAI resource name.- Parameters:
azureResourceName- Azure resource name- Returns:
- this builder instance
-
caseSensitiveValues
Sets whether generated SQL value matching is case-sensitive.- Parameters:
caseSensitiveValues- case-sensitive values flag- Returns:
- this builder instance
-
comments
Sets whether table and column comments are included in metadata.- Parameters:
comments- comments metadata flag- Returns:
- this builder instance
-
constraints
Sets whether referential constraints are included in metadata.- Parameters:
constraints- constraints metadata flag- Returns:
- this builder instance
-
conversation
Sets whether conversation history is enabled for the profile.- Parameters:
conversation- conversation flag- Returns:
- this builder instance
-
conversationLength
Sets how many conversation turns are retained for context.- Parameters:
conversationLength- positive conversation context length- Returns:
- this builder instance
-
credentialName
Sets the database credential used for provider API calls.- Parameters:
credentialName- credential name- Returns:
- this builder instance
-
embeddingModel
Sets the embedding model name.- Parameters:
embeddingModel- embedding model name- Returns:
- this builder instance
-
enableCustomSourceUri
Sets whether custom source URI metadata is enabled.- Parameters:
enableCustomSourceUri- custom source URI flag- Returns:
- this builder instance
-
enforceObjectList
Sets whether generated SQL is restricted to the object list.- Parameters:
enforceObjectList- object list enforcement flag- Returns:
- this builder instance
-
maxTokens
Sets the maximum generated output tokens.- Parameters:
maxTokens- positive token limit- Returns:
- this builder instance
-
model
Sets the provider model identifier.- Parameters:
model- provider model identifier- Returns:
- this builder instance
-
objectList
Sets the object list JSON used to constrain metadata.- Parameters:
objectList- JSON array containing object descriptors- Returns:
- this builder instance
-
objectListMode
Sets the object-list selection mode used for NL2SQL processing.A
nullvalue leaves the object-list mode unset. A non-null value must correspond to an object-list mode supported by the SDK; otherwise, this method throws anIllegalArgumentException.- Parameters:
objectListMode- object-list mode, ornullto leave the mode unset- Returns:
- this builder instance
- Throws:
IllegalArgumentException- ifobjectListModeis non-null and does not correspond to a supported object-list mode
-
objectListMode
Sets the object-list selection mode used for NL2SQL processing.- Parameters:
objectListMode- object-list mode- Returns:
- this builder instance
-
ociApiformat
Sets the OCI Generative AI API format.- Parameters:
ociApiformat- OCI API format, such as COHERE or GENERIC- Returns:
- this builder instance
-
ociApiformat
Sets the OCI Generative AI API format.- Parameters:
ociApiFormat- OCI API format- Returns:
- this builder instance
-
ociCompartmentId
Sets the OCI compartment OCID.- Parameters:
ociCompartmentId- OCI compartment OCID- Returns:
- this builder instance
-
ociEndpointId
Sets the OCI dedicated endpoint OCID.- Parameters:
ociEndpointId- OCI endpoint OCID- Returns:
- this builder instance
-
ociRuntimetype
Sets the OCI runtime type attribute.- Parameters:
ociRuntimetype- OCI runtime type- Returns:
- this builder instance
-
provider
Sets the AI provider for the profile.A
nullvalue leaves the provider unset. A non-null value must correspond to a provider supported by the SDK; otherwise, this method throws anIllegalArgumentException.- Parameters:
provider- provider name, ornullto leave the provider unset- Returns:
- this builder instance
- Throws:
IllegalArgumentException- ifprovideris non-null and does not correspond to a supported provider
-
providerEndpoint
Sets the provider endpoint host/path.- Parameters:
providerEndpoint- provider endpoint- Returns:
- this builder instance
-
region
Sets the provider region.- Parameters:
region- provider region- Returns:
- this builder instance
-
role
Sets the role prompt used by Select AI.- Parameters:
role- role prompt- Returns:
- this builder instance
-
seed
Sets the deterministic sampling seed.- Parameters:
seed- sampling seed- Returns:
- this builder instance
-
stopTokens
Sets stop tokens that terminate generation.- Parameters:
stopTokens- stop token list- Returns:
- this builder instance
-
temperature
Sets the provider sampling temperature.- Parameters:
temperature- non-negative temperature- Returns:
- this builder instance
-
vectorIndexName
Sets the vector index name associated with the profile.- Parameters:
vectorIndexName- Oracle SQL identifier for the vector index- Returns:
- this builder instance
-
sourceLanguage
Sets the source language for translation.- Parameters:
sourceLanguage- source language name or code- Returns:
- this builder instance
-
targetLanguage
Sets the target language for translation.- Parameters:
targetLanguage- target language name or code- Returns:
- this builder instance
-
providerProfile
Applies a provider profile shortcut to this builder.- Parameters:
providerProfile- provider profile to apply- Returns:
- this builder instance
-
customAttribute
Accepts an unmodeled profile attribute for forward compatibility.Current typed JSON serialization only emits attributes represented by this SDK. This method prevents unknown database attributes from failing a read/round-trip through
ProfileAttributes.fromAttributeMap(Map).- Parameters:
key- DBMS_CLOUD_AI attribute namevalue- attribute value- Returns:
- this builder instance
-
build
Builds immutable profile attributes.- Returns:
- immutable ProfileAttributes instance built from current builder state
-