Class: Aws::BedrockRuntime::Types::ToolUseBlock

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

Overview

A tool use content block. Contains information about a tool that the model is requesting be run., The model uses the result from the tool to generate a response.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#inputHash, ...

The input to pass to the tool.

Returns:

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


1840
1841
1842
1843
1844
1845
1846
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1840

class ToolUseBlock < Struct.new(
  :tool_use_id,
  :name,
  :input)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the tool that the model wants to use.

Returns:

  • (String)


1840
1841
1842
1843
1844
1845
1846
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1840

class ToolUseBlock < Struct.new(
  :tool_use_id,
  :name,
  :input)
  SENSITIVE = []
  include Aws::Structure
end

#tool_use_idString

The ID for the tool request.

Returns:

  • (String)


1840
1841
1842
1843
1844
1845
1846
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1840

class ToolUseBlock < Struct.new(
  :tool_use_id,
  :name,
  :input)
  SENSITIVE = []
  include Aws::Structure
end