Class: Aws::BedrockAgent::Types::PromptTemplateConfiguration

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

Overview

Note:

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

Note:

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

Contains the message for a prompt. For more information, see Construct and store reusable prompts with Prompt management in Amazon Bedrock.

Defined Under Namespace

Classes: Chat, Text, Unknown

Constant Summary collapse

SENSITIVE =
[:text, :chat]

Instance Attribute Summary collapse

Instance Attribute Details

#chat ⇒ Types::ChatPromptTemplateConfiguration

Contains configurations to use the prompt in a conversational format.



9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 9419

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

  class Text < PromptTemplateConfiguration; end
  class Chat < PromptTemplateConfiguration; end
  class Unknown < PromptTemplateConfiguration; end
end

#text ⇒ Types::TextPromptTemplateConfiguration

Contains configurations for the text in a message for a prompt.



9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 9419

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

  class Text < PromptTemplateConfiguration; end
  class Chat < PromptTemplateConfiguration; end
  class Unknown < PromptTemplateConfiguration; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



9419
9420
9421
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 9419

def unknown
  @unknown
end