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.

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.



1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 1582

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

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

#textString

The text in the message.

Returns:

  • (String)


1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 1582

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

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

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



1582
1583
1584
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 1582

def unknown
  @unknown
end