Class: Aws::BedrockRuntime::Types::ToolResultContentBlock
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::ToolResultContentBlock
- Defined in:
- gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb
Overview
ToolResultContentBlock is a union - when making an API calls you must set exactly one of the members.
ToolResultContentBlock is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ToolResultContentBlock corresponding to the set member.
The tool result content block.
Defined Under Namespace
Classes: Document, Image, Json, Text, Unknown, Video
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#document ⇒ Types::DocumentBlock
A tool result that is a document.
-
#image ⇒ Types::ImageBlock
A tool result that is an image.
-
#json ⇒ Hash, ...
A tool result that is JSON format data.
-
#text ⇒ String
A tool result that is text.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
-
#video ⇒ Types::VideoBlock
A tool result that is video.
Instance Attribute Details
#document ⇒ Types::DocumentBlock
A tool result that is a document.
2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2950 class ToolResultContentBlock < Struct.new( :json, :text, :image, :document, :video, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Json < ToolResultContentBlock; end class Text < ToolResultContentBlock; end class Image < ToolResultContentBlock; end class Document < ToolResultContentBlock; end class Video < ToolResultContentBlock; end class Unknown < ToolResultContentBlock; end end |
#image ⇒ Types::ImageBlock
A tool result that is an image.
2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2950 class ToolResultContentBlock < Struct.new( :json, :text, :image, :document, :video, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Json < ToolResultContentBlock; end class Text < ToolResultContentBlock; end class Image < ToolResultContentBlock; end class Document < ToolResultContentBlock; end class Video < ToolResultContentBlock; end class Unknown < ToolResultContentBlock; end end |
#json ⇒ Hash, ...
A tool result that is JSON format data.
2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2950 class ToolResultContentBlock < Struct.new( :json, :text, :image, :document, :video, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Json < ToolResultContentBlock; end class Text < ToolResultContentBlock; end class Image < ToolResultContentBlock; end class Document < ToolResultContentBlock; end class Video < ToolResultContentBlock; end class Unknown < ToolResultContentBlock; end end |
#text ⇒ String
A tool result that is text.
2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2950 class ToolResultContentBlock < Struct.new( :json, :text, :image, :document, :video, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Json < ToolResultContentBlock; end class Text < ToolResultContentBlock; end class Image < ToolResultContentBlock; end class Document < ToolResultContentBlock; end class Video < ToolResultContentBlock; end class Unknown < ToolResultContentBlock; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
2950 2951 2952 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2950 def unknown @unknown end |
#video ⇒ Types::VideoBlock
A tool result that is video.
2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 |
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2950 class ToolResultContentBlock < Struct.new( :json, :text, :image, :document, :video, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Json < ToolResultContentBlock; end class Text < ToolResultContentBlock; end class Image < ToolResultContentBlock; end class Document < ToolResultContentBlock; end class Video < ToolResultContentBlock; end class Unknown < ToolResultContentBlock; end end |