Class: Aws::BedrockAgent::Types::ContentBlock

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

Overview

Note:

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

Note:

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

Contains the content for the message you pass to, or receive from a model. For more information, see Create a prompt using Prompt management.

Defined Under Namespace

Classes: CachePoint, Text, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cache_point ⇒ Types::CachePointBlock

Creates a cache checkpoint within a message.



1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 1717

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

  class Text < ContentBlock; end
  class CachePoint < ContentBlock; end
  class Unknown < ContentBlock; end
end

#text ⇒ String

The text in the message.

Returns:

  • (String)


1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 1717

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

  class Text < ContentBlock; end
  class CachePoint < ContentBlock; end
  class Unknown < ContentBlock; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



1717
1718
1719
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 1717

def unknown
  @unknown
end