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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockruntime/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)


180
181
182
183
184
185
186
187
188
189
190
191
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 180

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.



180
181
182
183
184
185
186
187
188
189
190
191
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 180

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



180
181
182
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 180

def unknown
  @unknown
end