Class: Aws::BedrockRuntime::Types::ContentBlockDelta

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
lib/aws-sdk-bedrockruntime/types.rb

Overview

Note:

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

A bock of content in a streaming response.

Direct Known Subclasses

Text, ToolUse, Unknown

Defined Under Namespace

Classes: Text, ToolUse, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#textString

The content text.

Returns:

  • (String)


185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 185

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

  class Text < ContentBlockDelta; end
  class ToolUse < ContentBlockDelta; end
  class Unknown < ContentBlockDelta; end
end

#tool_useTypes::ToolUseBlockDelta

Information about a tool that the model is requesting to use.



185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 185

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

  class Text < ContentBlockDelta; end
  class ToolUse < ContentBlockDelta; end
  class Unknown < ContentBlockDelta; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



185
186
187
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 185

def unknown
  @unknown
end