Class: Aws::BedrockAgentCore::Types::ToolArguments

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

Overview

The collection of arguments that specify the operation to perform and its parameters when invoking a tool in Amazon Bedrock. Different tools require different arguments, and this structure provides a flexible way to pass the appropriate arguments to each tool type.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#clear_contextBoolean

Whether to clear the context for the tool.

Returns:

  • (Boolean)


2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end

#codeString

The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.

Returns:

  • (String)


2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end

#commandString

The command to execute with the tool.

Returns:

  • (String)


2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end

#contentArray<Types::InputContentBlock>

The content for the tool operation.

Returns:



2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end

#directory_pathString

The directory path for the tool operation.

Returns:

  • (String)


2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end

#languageString

The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.

Returns:

  • (String)


2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end

#pathString

The path for the tool operation.

Returns:

  • (String)


2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end

#pathsArray<String>

The paths for the tool operation.

Returns:

  • (Array<String>)


2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end

#task_idString

The identifier of the task for the tool operation.

Returns:

  • (String)


2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2834

class ToolArguments < Struct.new(
  :code,
  :language,
  :clear_context,
  :command,
  :path,
  :paths,
  :content,
  :directory_path,
  :task_id)
  SENSITIVE = []
  include Aws::Structure
end