AgentPromptVariant class
Constructors
-
AgentPromptVariant({Input<
String?> ? additionalModelRequestFields, Input<AgentPromptVariantGenAiResource?> ? genAiResource, Input<AgentPromptVariantInferenceConfiguration?> ? inferenceConfiguration, Input<List< ? metadatas, Input<AgentPromptVariantMetadata> ?>String?> ? modelId, required Input<String> name, Input<AgentPromptVariantTemplateConfiguration?> ? templateConfiguration, required Input<String> templateType}) -
Creates a new AgentPromptVariant.
additionalModelRequestFieldsContains 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.genAiResourceSpecifies a generative AI resource with which to use the prompt. If this is not supplied, then agenAiResourcemust be defined. See Generative AI Resource for more information.inferenceConfigurationContains inference configurations for the prompt variant. See Inference Configuration for more information.metadatasA 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.modelIdUnique identifier of the model or inference profile with which to run inference on the prompt. If this is not supplied, then agenAiResourcemust be defined.nameName of the prompt variant.templateConfigurationContains configurations for the prompt template. See Template Configuration for more information.templateTypeType 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
genAiResourcemust 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
genAiResourcemust 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