Class: Aws::BedrockRuntime::Types::ToolResultContentBlock

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb

Overview

Note:

ToolResultContentBlock is a union - when making an API calls you must set exactly one of the members.

Note:

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.

Direct Known Subclasses

Document, Image, Json, Text, Unknown, Video

Defined Under Namespace

Classes: Document, Image, Json, Text, Unknown, Video

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#documentTypes::DocumentBlock

A tool result that is a document.



4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4073

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

#imageTypes::ImageBlock

A tool result that is an image.

This field is only supported by Anthropic Claude 3 models.

Returns:



4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4073

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

#jsonHash, ...

A tool result that is JSON format data.

Returns:

  • (Hash, Array, String, Numeric, Boolean)


4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4073

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

#textString

A tool result that is text.

Returns:

  • (String)


4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4073

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

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



4073
4074
4075
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4073

def unknown
  @unknown
end

#videoTypes::VideoBlock

A tool result that is video.

Returns:



4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4073

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