Prompt Variant
data class PromptVariant(val additionalModelRequestFields: PromptAdditionalModelRequestFields? = null, val genAiResource: PromptGenAiResourceProperties? = null, val inferenceConfiguration: PromptInferenceConfigurationProperties? = null, val metadata: List<PromptMetadataEntry>? = null, val modelId: String? = null, val name: String, val templateConfiguration: Either<PromptTemplateConfiguration0Properties, PromptTemplateConfiguration1Properties>, val templateType: PromptTemplateType)
Prompt variant
Constructors
Link copied to clipboard
constructor(additionalModelRequestFields: PromptAdditionalModelRequestFields? = null, genAiResource: PromptGenAiResourceProperties? = null, inferenceConfiguration: PromptInferenceConfigurationProperties? = null, metadata: List<PromptMetadataEntry>? = null, modelId: String? = null, name: String, templateConfiguration: Either<PromptTemplateConfiguration0Properties, PromptTemplateConfiguration1Properties>, templateType: PromptTemplateType)
Properties
Link copied to clipboard
Contains model-specific inference configurations that aren't in the inferenceConfiguration
field. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .
Link copied to clipboard
Specifies a generative AI resource with which to use the prompt.
Link copied to clipboard
Contains inference configurations for the prompt variant.
Link copied to clipboard
An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
Link copied to clipboard
val templateConfiguration: Either<PromptTemplateConfiguration0Properties, PromptTemplateConfiguration1Properties>
Contains configurations for the prompt template.
Link copied to clipboard
The type of prompt template to use.