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 block of content in a streaming response.

Direct Known Subclasses

Citation, Image, ReasoningContent, Text, ToolResult, ToolUse, Unknown

Defined Under Namespace

Classes: Citation, Image, ReasoningContent, Text, ToolResult, ToolUse, Unknown

Constant Summary collapse

SENSITIVE =
[:reasoning_content]

Instance Attribute Summary collapse

Instance Attribute Details

#citationTypes::CitationsDelta

Incremental citation information that is streamed as part of the response generation process.



781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 781

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

  class Text < ContentBlockDelta; end
  class ToolUse < ContentBlockDelta; end
  class ToolResult < ContentBlockDelta; end
  class ReasoningContent < ContentBlockDelta; end
  class Citation < ContentBlockDelta; end
  class Image < ContentBlockDelta; end
  class Unknown < ContentBlockDelta; end
end

#imageTypes::ImageBlockDelta

A streaming delta event containing incremental image data.



781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 781

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

  class Text < ContentBlockDelta; end
  class ToolUse < ContentBlockDelta; end
  class ToolResult < ContentBlockDelta; end
  class ReasoningContent < ContentBlockDelta; end
  class Citation < ContentBlockDelta; end
  class Image < ContentBlockDelta; end
  class Unknown < ContentBlockDelta; end
end

#reasoning_contentTypes::ReasoningContentBlockDelta

Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.



781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 781

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

  class Text < ContentBlockDelta; end
  class ToolUse < ContentBlockDelta; end
  class ToolResult < ContentBlockDelta; end
  class ReasoningContent < ContentBlockDelta; end
  class Citation < ContentBlockDelta; end
  class Image < ContentBlockDelta; end
  class Unknown < ContentBlockDelta; end
end

#textString

The content text.

Returns:

  • (String)


781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 781

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

  class Text < ContentBlockDelta; end
  class ToolUse < ContentBlockDelta; end
  class ToolResult < ContentBlockDelta; end
  class ReasoningContent < ContentBlockDelta; end
  class Citation < ContentBlockDelta; end
  class Image < ContentBlockDelta; end
  class Unknown < ContentBlockDelta; end
end

#tool_resultArray<Types::ToolResultBlockDelta>

An incremental update that contains the results from a tool call.

Returns:



781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 781

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

  class Text < ContentBlockDelta; end
  class ToolUse < ContentBlockDelta; end
  class ToolResult < ContentBlockDelta; end
  class ReasoningContent < ContentBlockDelta; end
  class Citation < ContentBlockDelta; end
  class Image < ContentBlockDelta; end
  class Unknown < ContentBlockDelta; end
end

#tool_useTypes::ToolUseBlockDelta

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



781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 781

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

  class Text < ContentBlockDelta; end
  class ToolUse < ContentBlockDelta; end
  class ToolResult < ContentBlockDelta; end
  class ReasoningContent < ContentBlockDelta; end
  class Citation < ContentBlockDelta; end
  class Image < ContentBlockDelta; end
  class Unknown < ContentBlockDelta; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



781
782
783
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 781

def unknown
  @unknown
end