Skip to content

/AWS1/CL_BDATOOLSPECIFICATION

Contains a specification for a tool. For more information, see Use a tool to complete an Amazon Bedrock model response.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_name TYPE /AWS1/BDATOOLNAME /AWS1/BDATOOLNAME

The name of the tool.

io_inputschema TYPE REF TO /AWS1/CL_BDATOOLINPUTSCHEMA /AWS1/CL_BDATOOLINPUTSCHEMA

The input schema for the tool.

Optional arguments:

iv_description TYPE /AWS1/BDANONEMPTYSTRING /AWS1/BDANONEMPTYSTRING

The description of the tool.

iv_strict TYPE /AWS1/BDABOOLEAN /AWS1/BDABOOLEAN

Whether to enforce strict JSON schema adherence for the tool input


Queryable Attributes

name

The name of the tool.

Accessible with the following methods

Method Description
GET_NAME() Getter for NAME, with configurable default
ASK_NAME() Getter for NAME w/ exceptions if field has no value
HAS_NAME() Determine if NAME has a value

description

The description of the tool.

Accessible with the following methods

Method Description
GET_DESCRIPTION() Getter for DESCRIPTION, with configurable default
ASK_DESCRIPTION() Getter for DESCRIPTION w/ exceptions if field has no value
HAS_DESCRIPTION() Determine if DESCRIPTION has a value

inputSchema

The input schema for the tool.

Accessible with the following methods

Method Description
GET_INPUTSCHEMA() Getter for INPUTSCHEMA

strict

Whether to enforce strict JSON schema adherence for the tool input

Accessible with the following methods

Method Description
GET_STRICT() Getter for STRICT, with configurable default
ASK_STRICT() Getter for STRICT w/ exceptions if field has no value
HAS_STRICT() Determine if STRICT has a value