Class ProviderProfile
java.lang.Object
com.oracle.database.selectai.model.ProviderProfile
- Direct Known Subclasses:
ProviderProfile.AnthropicProviderProfile,ProviderProfile.AWSProviderProfile,ProviderProfile.AzureProviderProfile,ProviderProfile.CohereProviderProfile,ProviderProfile.GoogleProviderProfile,ProviderProfile.HuggingFaceProviderProfile,ProviderProfile.OCIGenAIProviderProfile,ProviderProfile.OpenAIProviderProfile
Convenience object for applying provider-specific attributes to
ProfileAttributes.Builder.
Provider profiles reduce boilerplate when creating profile attributes for a
known provider. They set provider names and caller-supplied provider fields
while still allowing the caller to add AI model identifiers, embedding
settings, credentials, and object selection details on
ProfileAttributes.Builder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvider profile attributes for Anthropic.static final classProvider profile attributes for AWS Bedrock.static final classProvider profile attributes for Azure OpenAI.static classProviderProfile.Builder<T extends ProviderProfile.Builder<T>>Base builder for provider profile implementations.static final classProvider profile attributes for Cohere.static final classProvider profile attributes for Google.static final classProvider profile attributes for Hugging Face.static final classProvider profile attributes for OCI Generative AI.static final classProvider profile attributes for OpenAI. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProviderProfile(ProviderProfile.Builder<?> builder) Initializes a provider profile from its builder. -
Method Summary
Modifier and TypeMethodDescriptionCreates a builder for Anthropic provider profile attributes.applyTo(ProfileAttributes.Builder builder) Applies this provider profile to a profile attributes builder.aws()Creates a builder for AWS Bedrock provider profile attributes.azure()Creates a builder for Azure OpenAI provider profile attributes.cohere()Creates a builder for Cohere provider profile attributes.Returns the embedding model configured for this provider profile.getModel()Returns the chat or generation model configured for this provider profile.Returns the provider endpoint.Returns the Select AI provider identifier.Returns the provider region.google()Creates a builder for Google provider profile attributes.Creates a builder for Hugging Face provider profile attributes.ociGenAI()Creates a builder for OCI Generative AI provider profile attributes.openAI()Creates a builder for OpenAI provider profile attributes.
-
Constructor Details
-
ProviderProfile
Initializes a provider profile from its builder.- Parameters:
builder- builder containing the provider profile values
-
-
Method Details
-
getEmbeddingModel
Returns the embedding model configured for this provider profile.- Returns:
- embedding model name, or
nullwhen unset
-
getModel
Returns the chat or generation model configured for this provider profile.- Returns:
- AI model name, or
nullwhen unset
-
getProviderName
Returns the Select AI provider identifier.- Returns:
- provider name, or
nullwhen unset
-
getProviderEndpoint
Returns the provider endpoint.- Returns:
- provider endpoint host/path, or
nullwhen unset
-
getRegion
Returns the provider region.- Returns:
- region value, or
nullwhen unset
-
openAI
Creates a builder for OpenAI provider profile attributes.- Returns:
- OpenAI provider profile builder
-
cohere
Creates a builder for Cohere provider profile attributes.- Returns:
- Cohere provider profile builder
-
azure
Creates a builder for Azure OpenAI provider profile attributes.- Returns:
- Azure provider profile builder
-
ociGenAI
Creates a builder for OCI Generative AI provider profile attributes.- Returns:
- OCI Generative AI provider profile builder
-
google
Creates a builder for Google provider profile attributes.- Returns:
- Google provider profile builder
-
huggingFace
Creates a builder for Hugging Face provider profile attributes.- Returns:
- Hugging Face provider profile builder
-
aws
Creates a builder for AWS Bedrock provider profile attributes.- Returns:
- AWS Bedrock provider profile builder
-
anthropic
Creates a builder for Anthropic provider profile attributes.- Returns:
- Anthropic provider profile builder
-
applyTo
Applies this provider profile to a profile attributes builder.- Parameters:
builder- profile attributes builder to update- Returns:
- the same builder instance after provider fields are applied
-