Class: Aws::BedrockRuntime::Types::ContentBlockDelta
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::ContentBlockDelta
- 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.
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.
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_use ⇒ Types::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 |
#unknown ⇒ Object
Returns the value of attribute unknown
180 181 182 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 180 def unknown @unknown end |