Class: Aws::BedrockRuntime::Types::ToolResultBlock

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

Overview

A tool result block that contains the results for a tool request that the model previously made. For more information, see [Call a tool with the Converse API] in the Amazon Bedrock User Guide.

[1]: docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#contentArray<Types::ToolResultContentBlock>

The content for tool result content block.

Returns:



4301
4302
4303
4304
4305
4306
4307
4308
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4301

class ToolResultBlock < Struct.new(
  :tool_use_id,
  :content,
  :status,
  :type)
  SENSITIVE = []
  include Aws::Structure
end

#statusString

The status for the tool result content block.

<note markdown=“1”> This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.

</note>

Returns:

  • (String)


4301
4302
4303
4304
4305
4306
4307
4308
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4301

class ToolResultBlock < Struct.new(
  :tool_use_id,
  :content,
  :status,
  :type)
  SENSITIVE = []
  include Aws::Structure
end

#tool_use_idString

The ID of the tool request that this is the result for.

Returns:

  • (String)


4301
4302
4303
4304
4305
4306
4307
4308
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4301

class ToolResultBlock < Struct.new(
  :tool_use_id,
  :content,
  :status,
  :type)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

The type for the tool result content block.

Returns:

  • (String)


4301
4302
4303
4304
4305
4306
4307
4308
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4301

class ToolResultBlock < Struct.new(
  :tool_use_id,
  :content,
  :status,
  :type)
  SENSITIVE = []
  include Aws::Structure
end