Class: Aws::BedrockAgentRuntime::Types::OptimizedPrompt

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

Overview

Note:

OptimizedPrompt is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of OptimizedPrompt corresponding to the set member.

Contains information about the optimized prompt.

Direct Known Subclasses

TextPrompt, Unknown

Defined Under Namespace

Classes: TextPrompt, Unknown

Constant Summary collapse

SENSITIVE =
[:text_prompt]

Instance Attribute Summary collapse

Instance Attribute Details

#text_promptTypes::TextPrompt

Contains information about the text in the prompt that was optimized.

Returns:



3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3156

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

  class TextPrompt < OptimizedPrompt; end
  class Unknown < OptimizedPrompt; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



3156
3157
3158
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 3156

def unknown
  @unknown
end