Class: Aws::BedrockRuntime::Types::Tool

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

Overview

Note:

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

Information about a tool that you can use with the Converse API. For more information, see [Tool use (function calling)] in the Amazon Bedrock User Guide.

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

Direct Known Subclasses

ToolSpec, Unknown

Defined Under Namespace

Classes: ToolSpec, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#tool_specTypes::ToolSpecification

The specfication for the tool.



2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2087

class Tool < Struct.new(
  :tool_spec,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class ToolSpec < Tool; end
  class Unknown < Tool; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2087
2088
2089
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2087

def unknown
  @unknown
end