Skip to content

/AWS1/CL_BDCTOOLARGUMENTS

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.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_code TYPE /AWS1/BDCMAXLENSTRING /AWS1/BDCMAXLENSTRING

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.

iv_language TYPE /AWS1/BDCPROGRAMMINGLANGUAGE /AWS1/BDCPROGRAMMINGLANGUAGE

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'.

iv_clearcontext TYPE /AWS1/BDCBOOLEAN /AWS1/BDCBOOLEAN

Whether to clear the context for the tool.

iv_command TYPE /AWS1/BDCMAXLENSTRING /AWS1/BDCMAXLENSTRING

The command to execute with the tool.

iv_path TYPE /AWS1/BDCMAXLENSTRING /AWS1/BDCMAXLENSTRING

The path for the tool operation.

it_paths TYPE /AWS1/CL_BDCSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

The paths for the tool operation.

it_content TYPE /AWS1/CL_BDCINPUTCONTENTBLOCK=>TT_INPUTCONTENTBLOCKLIST TT_INPUTCONTENTBLOCKLIST

The content for the tool operation.

iv_directorypath TYPE /AWS1/BDCMAXLENSTRING /AWS1/BDCMAXLENSTRING

The directory path for the tool operation.

iv_taskid TYPE /AWS1/BDCMAXLENSTRING /AWS1/BDCMAXLENSTRING

The identifier of the task for the tool operation.


Queryable Attributes

code

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.

Accessible with the following methods

Method Description
GET_CODE() Getter for CODE, with configurable default
ASK_CODE() Getter for CODE w/ exceptions if field has no value
HAS_CODE() Determine if CODE has a value

language

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'.

Accessible with the following methods

Method Description
GET_LANGUAGE() Getter for LANGUAGE, with configurable default
ASK_LANGUAGE() Getter for LANGUAGE w/ exceptions if field has no value
HAS_LANGUAGE() Determine if LANGUAGE has a value

clearContext

Whether to clear the context for the tool.

Accessible with the following methods

Method Description
GET_CLEARCONTEXT() Getter for CLEARCONTEXT, with configurable default
ASK_CLEARCONTEXT() Getter for CLEARCONTEXT w/ exceptions if field has no value
HAS_CLEARCONTEXT() Determine if CLEARCONTEXT has a value

command

The command to execute with the tool.

Accessible with the following methods

Method Description
GET_COMMAND() Getter for COMMAND, with configurable default
ASK_COMMAND() Getter for COMMAND w/ exceptions if field has no value
HAS_COMMAND() Determine if COMMAND has a value

path

The path for the tool operation.

Accessible with the following methods

Method Description
GET_PATH() Getter for PATH, with configurable default
ASK_PATH() Getter for PATH w/ exceptions if field has no value
HAS_PATH() Determine if PATH has a value

paths

The paths for the tool operation.

Accessible with the following methods

Method Description
GET_PATHS() Getter for PATHS, with configurable default
ASK_PATHS() Getter for PATHS w/ exceptions if field has no value
HAS_PATHS() Determine if PATHS has a value

content

The content for the tool operation.

Accessible with the following methods

Method Description
GET_CONTENT() Getter for CONTENT, with configurable default
ASK_CONTENT() Getter for CONTENT w/ exceptions if field has no value
HAS_CONTENT() Determine if CONTENT has a value

directoryPath

The directory path for the tool operation.

Accessible with the following methods

Method Description
GET_DIRECTORYPATH() Getter for DIRECTORYPATH, with configurable default
ASK_DIRECTORYPATH() Getter for DIRECTORYPATH w/ exceptions if field has no value
HAS_DIRECTORYPATH() Determine if DIRECTORYPATH has a value

taskId

The identifier of the task for the tool operation.

Accessible with the following methods

Method Description
GET_TASKID() Getter for TASKID, with configurable default
ASK_TASKID() Getter for TASKID w/ exceptions if field has no value
HAS_TASKID() Determine if TASKID has a value