Class: Aws::BedrockRuntime::Types::ContentBlockDelta
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::ContentBlockDelta
- Includes:
- Structure, Structure::Union
- Defined in:
- lib/aws-sdk-bedrockruntime/types.rb
Overview
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, ReasoningContent, Text, ToolResult, ToolUse, Unknown
Defined Under Namespace
Classes: Citation, ReasoningContent, Text, ToolResult, ToolUse, Unknown
Constant Summary collapse
- SENSITIVE =
[:reasoning_content]
Instance Attribute Summary collapse
-
#citation ⇒ Types::CitationsDelta
Incremental citation information that is streamed as part of the response generation process.
-
#reasoning_content ⇒ Types::ReasoningContentBlockDelta
Contains content regarding the reasoning that is carried out by the model.
-
#text ⇒ String
The content text.
-
#tool_result ⇒ Array<Types::ToolResultBlockDelta>
An incremental update that contains the results from a tool call.
-
#tool_use ⇒ Types::ToolUseBlockDelta
Information about a tool that the model is requesting to use.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#citation ⇒ Types::CitationsDelta
Incremental citation information that is streamed as part of the response generation process.
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 667 class ContentBlockDelta < Struct.new( :text, :tool_use, :tool_result, :reasoning_content, :citation, :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 Unknown < ContentBlockDelta; end end |
#reasoning_content ⇒ Types::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.
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 667 class ContentBlockDelta < Struct.new( :text, :tool_use, :tool_result, :reasoning_content, :citation, :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 Unknown < ContentBlockDelta; end end |
#text ⇒ String
The content text.
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 667 class ContentBlockDelta < Struct.new( :text, :tool_use, :tool_result, :reasoning_content, :citation, :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 Unknown < ContentBlockDelta; end end |
#tool_result ⇒ Array<Types::ToolResultBlockDelta>
An incremental update that contains the results from a tool call.
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 667 class ContentBlockDelta < Struct.new( :text, :tool_use, :tool_result, :reasoning_content, :citation, :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 Unknown < ContentBlockDelta; end end |
#tool_use ⇒ Types::ToolUseBlockDelta
Information about a tool that the model is requesting to use.
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 667 class ContentBlockDelta < Struct.new( :text, :tool_use, :tool_result, :reasoning_content, :citation, :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 Unknown < ContentBlockDelta; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
667 668 669 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 667 def unknown @unknown end |