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
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.
Defined Under Namespace
Classes: Text, ToolUse, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#text ⇒ String
The content text.
-
#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
#text ⇒ String
The content text.
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_use ⇒ Types::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 |
#unknown ⇒ Object
Returns the value of attribute unknown
185 186 187 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 185 def unknown @unknown end |