AgentPromptVariant class

Constructors

AgentPromptVariant({Input<String?>? additionalModelRequestFields, Input<AgentPromptVariantGenAiResource?>? genAiResource, Input<AgentPromptVariantInferenceConfiguration?>? inferenceConfiguration, Input<List<AgentPromptVariantMetadata>?>? metadatas, Input<String?>? modelId, required Input<String> name, Input<AgentPromptVariantTemplateConfiguration?>? templateConfiguration, required Input<String> templateType})
Creates a new AgentPromptVariant. additionalModelRequestFields 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 Specifies a generative AI resource with which to use the prompt. If this is not supplied, then a genAiResource must be defined. See Generative AI Resource for more information. inferenceConfiguration Contains inference configurations for the prompt variant. See Inference Configuration for more information. metadatas A list of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. See Metadata for more information. modelId Unique identifier of the model or inference profile with which to run inference on the prompt. If this is not supplied, then a genAiResource must be defined. name Name of the prompt variant. templateConfiguration Contains configurations for the prompt template. See Template Configuration for more information. templateType Type of prompt template to use. Valid values: CHAT, TEXT.
const
AgentPromptVariant.fromMap(Map<String, dynamic> map)
factory

Properties

additionalModelRequestFields → Input<String?>?
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.
final
genAiResource → Input<AgentPromptVariantGenAiResource?>?
Specifies a generative AI resource with which to use the prompt. If this is not supplied, then a genAiResource must be defined. See Generative AI Resource for more information.
final
hashCode → int
The hash code for this object.
no setterinherited
inferenceConfiguration → Input<AgentPromptVariantInferenceConfiguration?>?
Contains inference configurations for the prompt variant. See Inference Configuration for more information.
final
metadatas → Input<List<AgentPromptVariantMetadata>?>?
A list of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. See Metadata for more information.
final
modelId → Input<String?>?
Unique identifier of the model or inference profile with which to run inference on the prompt. If this is not supplied, then a genAiResource must be defined.
final
name → Input<String>
Name of the prompt variant.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
templateConfiguration → Input<AgentPromptVariantTemplateConfiguration?>?
Contains configurations for the prompt template. See Template Configuration for more information.
final
templateType → Input<String>
Type of prompt template to use. Valid values: CHAT, TEXT.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited