Skip to content

/AWS1/CL_BDRCONTENTBLOCK

A block of content for a message that you pass to, or receive from, a model with the Converse or ConverseStream API operations.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_text TYPE /AWS1/BDRSTRING /AWS1/BDRSTRING

Text to include in the message.

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

Image to include in the message.

This field is only supported by Anthropic Claude 3 models.

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

A document to include in the message.

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

Video to include in the message.

io_audio TYPE REF TO /AWS1/CL_BDRAUDIOBLOCK /AWS1/CL_BDRAUDIOBLOCK

An audio content block containing audio data in the conversation.

io_tooluse TYPE REF TO /AWS1/CL_BDRTOOLUSEBLOCK /AWS1/CL_BDRTOOLUSEBLOCK

Information about a tool use request from a model.

io_toolresult TYPE REF TO /AWS1/CL_BDRTOOLRESULTBLOCK /AWS1/CL_BDRTOOLRESULTBLOCK

The result for a tool request that a model makes.

io_guardcontent TYPE REF TO /AWS1/CL_BDRGUARDRAILCONVERS00 /AWS1/CL_BDRGUARDRAILCONVERS00

Contains the content to assess with the guardrail. If you don't specify guardContent in a call to the Converse API, the guardrail (if passed in the Converse API) assesses the entire message.

For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.

io_cachepoint TYPE REF TO /AWS1/CL_BDRCACHEPOINTBLOCK /AWS1/CL_BDRCACHEPOINTBLOCK

CachePoint to include in the message.

io_reasoningcontent TYPE REF TO /AWS1/CL_BDRREASONINGCONTBLOCK /AWS1/CL_BDRREASONINGCONTBLOCK

Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.

io_citationscontent TYPE REF TO /AWS1/CL_BDRCITATIONSCONTBLOCK /AWS1/CL_BDRCITATIONSCONTBLOCK

A content block that contains both generated text and associated citation information, providing traceability between the response and source documents.

io_searchresult TYPE REF TO /AWS1/CL_BDRSEARCHRESULTBLOCK /AWS1/CL_BDRSEARCHRESULTBLOCK

Search result to include in the message.


Queryable Attributes

text

Text to include in the message.

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

Image to include in the message.

This field is only supported by Anthropic Claude 3 models.

Accessible with the following methods

Method Description
GET_IMAGE() Getter for IMAGE

document

A document to include in the message.

Accessible with the following methods

Method Description
GET_DOCUMENT() Getter for DOCUMENT

video

Video to include in the message.

Accessible with the following methods

Method Description
GET_VIDEO() Getter for VIDEO

audio

An audio content block containing audio data in the conversation.

Accessible with the following methods

Method Description
GET_AUDIO() Getter for AUDIO

toolUse

Information about a tool use request from a model.

Accessible with the following methods

Method Description
GET_TOOLUSE() Getter for TOOLUSE

toolResult

The result for a tool request that a model makes.

Accessible with the following methods

Method Description
GET_TOOLRESULT() Getter for TOOLRESULT

guardContent

Contains the content to assess with the guardrail. If you don't specify guardContent in a call to the Converse API, the guardrail (if passed in the Converse API) assesses the entire message.

For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.

Accessible with the following methods

Method Description
GET_GUARDCONTENT() Getter for GUARDCONTENT

cachePoint

CachePoint to include in the message.

Accessible with the following methods

Method Description
GET_CACHEPOINT() Getter for CACHEPOINT

reasoningContent

Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.

Accessible with the following methods

Method Description
GET_REASONINGCONTENT() Getter for REASONINGCONTENT

citationsContent

A content block that contains both generated text and associated citation information, providing traceability between the response and source documents.

Accessible with the following methods

Method Description
GET_CITATIONSCONTENT() Getter for CITATIONSCONTENT

searchResult

Search result to include in the message.

Accessible with the following methods

Method Description
GET_SEARCHRESULT() Getter for SEARCHRESULT

Public Local Types In This Class

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

TT_CONTENTBLOCKS

TYPES TT_CONTENTBLOCKS TYPE STANDARD TABLE OF REF TO /AWS1/CL_BDRCONTENTBLOCK WITH DEFAULT KEY
.