Skip to content

/AWS1/CL_BDRTOOLRSLTCONTBLOCK

The tool result content block.

CONSTRUCTOR

IMPORTING

Optional arguments:

io_json TYPE REF TO /AWS1/CL_RT_DOCUMENT /AWS1/CL_RT_DOCUMENT

A tool result that is JSON format data.

iv_text TYPE /AWS1/BDRSTRING /AWS1/BDRSTRING

A tool result that is text.

io_image TYPE REF TO /AWS1/CL_BDRIMAGEBLOCK /AWS1/CL_BDRIMAGEBLOCK

A tool result that is an image.

This field is only supported by Anthropic Claude 3 models.

io_document TYPE REF TO /AWS1/CL_BDRDOCUMENTBLOCK /AWS1/CL_BDRDOCUMENTBLOCK

A tool result that is a document.

io_video TYPE REF TO /AWS1/CL_BDRVIDEOBLOCK /AWS1/CL_BDRVIDEOBLOCK

A tool result that is video.


Queryable Attributes

json

A tool result that is JSON format data.

Accessible with the following methods

Method Description
GET_JSON() Getter for JSON, with configurable default
ASK_JSON() Getter for JSON w/ exceptions if field has no value
HAS_JSON() Determine if JSON has a value

text

A tool result that is text.

Accessible with the following methods

Method Description
GET_TEXT() Getter for TEXT, with configurable default
ASK_TEXT() Getter for TEXT w/ exceptions if field has no value
HAS_TEXT() Determine if TEXT has a value

image

A tool result that is an image.

This field is only supported by Anthropic Claude 3 models.

Accessible with the following methods

Method Description
GET_IMAGE() Getter for IMAGE

document

A tool result that is a document.

Accessible with the following methods

Method Description
GET_DOCUMENT() Getter for DOCUMENT

video

A tool result that is video.

Accessible with the following methods

Method Description
GET_VIDEO() Getter for VIDEO

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_TOOLRESULTCONTENTBLOCKS

TYPES TT_TOOLRESULTCONTENTBLOCKS TYPE STANDARD TABLE OF REF TO /AWS1/CL_BDRTOOLRSLTCONTBLOCK WITH DEFAULT KEY
.