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

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
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].

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

Direct Known Subclasses

CachePoint, Text, Unknown

Defined Under Namespace

Classes: CachePoint, Text, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cache_pointTypes::CachePointBlock

Creates a cache checkpoint within a message.



1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
# File 'lib/aws-sdk-bedrockagent/types.rb', line 1678

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

#textString

The text in the message.



1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
# File 'lib/aws-sdk-bedrockagent/types.rb', line 1678

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

#unknownObject

Returns the value of attribute unknown



1678
1679
1680
# File 'lib/aws-sdk-bedrockagent/types.rb', line 1678

def unknown
  @unknown
end