Class: Aws::BedrockAgent::Types::PromptVariant

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb

Overview

Contains details about a variant of the prompt.

Constant Summary collapse

SENSITIVE =
[:gen_ai_resource, :metadata]

Instance Attribute Summary collapse

Instance Attribute Details

#additional_model_request_fieldsHash, ...

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.

Returns:

  • (Hash, Array, String, Numeric, Boolean)


6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6934

class PromptVariant < Struct.new(
  :additional_model_request_fields,
  :gen_ai_resource,
  :inference_configuration,
  :metadata,
  :model_id,
  :name,
  :template_configuration,
  :template_type)
  SENSITIVE = [:gen_ai_resource, :metadata]
  include Aws::Structure
end

#gen_ai_resourceTypes::PromptGenAiResource

Specifies a generative AI resource with which to use the prompt.



6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6934

class PromptVariant < Struct.new(
  :additional_model_request_fields,
  :gen_ai_resource,
  :inference_configuration,
  :metadata,
  :model_id,
  :name,
  :template_configuration,
  :template_type)
  SENSITIVE = [:gen_ai_resource, :metadata]
  include Aws::Structure
end

#inference_configurationTypes::PromptInferenceConfiguration

Contains inference configurations for the prompt variant.



6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6934

class PromptVariant < Struct.new(
  :additional_model_request_fields,
  :gen_ai_resource,
  :inference_configuration,
  :metadata,
  :model_id,
  :name,
  :template_configuration,
  :template_type)
  SENSITIVE = [:gen_ai_resource, :metadata]
  include Aws::Structure
end

#metadataArray<Types::PromptMetadataEntry>

An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.

Returns:



6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6934

class PromptVariant < Struct.new(
  :additional_model_request_fields,
  :gen_ai_resource,
  :inference_configuration,
  :metadata,
  :model_id,
  :name,
  :template_configuration,
  :template_type)
  SENSITIVE = [:gen_ai_resource, :metadata]
  include Aws::Structure
end

#model_idString

The unique identifier of the model or inference profile with which to run inference on the prompt.

Returns:

  • (String)


6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6934

class PromptVariant < Struct.new(
  :additional_model_request_fields,
  :gen_ai_resource,
  :inference_configuration,
  :metadata,
  :model_id,
  :name,
  :template_configuration,
  :template_type)
  SENSITIVE = [:gen_ai_resource, :metadata]
  include Aws::Structure
end

#nameString

The name of the prompt variant.

Returns:

  • (String)


6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6934

class PromptVariant < Struct.new(
  :additional_model_request_fields,
  :gen_ai_resource,
  :inference_configuration,
  :metadata,
  :model_id,
  :name,
  :template_configuration,
  :template_type)
  SENSITIVE = [:gen_ai_resource, :metadata]
  include Aws::Structure
end

#template_configurationTypes::PromptTemplateConfiguration

Contains configurations for the prompt template.



6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6934

class PromptVariant < Struct.new(
  :additional_model_request_fields,
  :gen_ai_resource,
  :inference_configuration,
  :metadata,
  :model_id,
  :name,
  :template_configuration,
  :template_type)
  SENSITIVE = [:gen_ai_resource, :metadata]
  include Aws::Structure
end

#template_typeString

The type of prompt template to use.

Returns:

  • (String)


6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 6934

class PromptVariant < Struct.new(
  :additional_model_request_fields,
  :gen_ai_resource,
  :inference_configuration,
  :metadata,
  :model_id,
  :name,
  :template_configuration,
  :template_type)
  SENSITIVE = [:gen_ai_resource, :metadata]
  include Aws::Structure
end