Values.PromptVariantSourceContains details about a variant of the prompt.
type nonrec t = {name : PromptVariantName.t;The name of the prompt variant.
*)templateType : PromptTemplateType.t;The type of prompt template to use.
*)templateConfiguration : PromptTemplateConfiguration.t;Contains configurations for the prompt template.
*)modelId : PromptModelIdentifier.t option;The unique identifier of the model or inference profile with which to run inference on the prompt.
*)inferenceConfiguration : PromptInferenceConfiguration.t option;Contains inference configurations for the prompt variant.
*)metadata : PromptMetadataList.t option;An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
*)additionalModelRequestFields : Document.t option;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.
*)genAiResource : PromptGenAiResource.t option;Specifies a generative AI resource with which to use the prompt.
*)}val make :
?modelId:??? ->
?inferenceConfiguration:??? ->
?metadata:??? ->
?additionalModelRequestFields:??? ->
?genAiResource:??? ->
name:PromptVariantName.t ->
templateType:PromptTemplateType.t ->
templateConfiguration:PromptTemplateConfiguration.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string * [> `String of PromptMetadataKey.t ]) list ]
list
| `String of PromptVariantName.t
| `Structure of
(string
* [> `Structure of
(string
* [> `Float of Temperature.t
| `Integer of MaximumLength.t
| `List of
[> `String of String_.t
| `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `String of String_.t
| `Structure of
(string * [> `Enum of string ]) list ])
list ]
list
| `String of PromptInputVariableName.t
| `Structure of
(string * [> `Enum of string ]) list ])
list ]
list
| `String of TextPrompt.t
| `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `String of ToolName.t
| `Structure of
(string
* [> `Structure of 'a list ])
list ])
list ])
list ]
list
| `Structure of
(string
* [> `Structure of
(string * [> `String of ToolName.t ])
list ])
list ])
list ])
list ])
list ])
list ]