Skip to content

/AWS1/CL_BDRTOOLRESULTBLOCK

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.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_tooluseid TYPE /AWS1/BDRTOOLUSEID /AWS1/BDRTOOLUSEID

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

it_content TYPE /AWS1/CL_BDRTOOLRSLTCONTBLOCK=>TT_TOOLRESULTCONTENTBLOCKS TT_TOOLRESULTCONTENTBLOCKS

The content for tool result content block.

Optional arguments:

iv_status TYPE /AWS1/BDRTOOLRESULTSTATUS /AWS1/BDRTOOLRESULTSTATUS

The status for the tool result content block.

This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.

iv_type TYPE /AWS1/BDRSTRING /AWS1/BDRSTRING

The type for the tool result content block.


Queryable Attributes

toolUseId

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

Accessible with the following methods

Method Description
GET_TOOLUSEID() Getter for TOOLUSEID, with configurable default
ASK_TOOLUSEID() Getter for TOOLUSEID w/ exceptions if field has no value
HAS_TOOLUSEID() Determine if TOOLUSEID has a value

content

The content for tool result content block.

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

status

The status for the tool result content block.

This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.

Accessible with the following methods

Method Description
GET_STATUS() Getter for STATUS, with configurable default
ASK_STATUS() Getter for STATUS w/ exceptions if field has no value
HAS_STATUS() Determine if STATUS has a value

type

The type for the tool result content block.

Accessible with the following methods

Method Description
GET_TYPE() Getter for TYPE, with configurable default
ASK_TYPE() Getter for TYPE w/ exceptions if field has no value
HAS_TYPE() Determine if TYPE has a value