Class: Aws::BedrockRuntime::Types::PromptVariableValues

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
lib/aws-sdk-bedrockruntime/types.rb

Overview

Note:

PromptVariableValues is a union - when making an API calls you must set exactly one of the members.

Contains a map of variables in a prompt from Prompt management to an object containing the values to fill in for them when running model invocation. For more information, see [How Prompt management works].

[1]: docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-how.html

Direct Known Subclasses

Text, Unknown

Defined Under Namespace

Classes: Text, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#textString

The text value that the variable maps to.



3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 3527

class PromptVariableValues < Struct.new(
  :text,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Text < PromptVariableValues; end
  class Unknown < PromptVariableValues; end
end

#unknownObject

Returns the value of attribute unknown



3527
3528
3529
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 3527

def unknown
  @unknown
end