/AWS1/CL_BDCCODEINTERPTRRESULT¶
The output produced by executing code in a code interpreter session in Amazon Bedrock AgentCore. This structure contains the results of code execution, including textual output, structured data, and error information. Agents use these results to generate responses that incorporate computation, data analysis, and visualization.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
it_content TYPE /AWS1/CL_BDCCONTENTBLOCK=>TT_CONTENTBLOCKLIST TT_CONTENTBLOCKLIST¶
The textual content of the execution result. This includes standard output from the code execution, such as print statements, console output, and text representations of results.
Optional arguments:¶
io_structuredcontent TYPE REF TO /AWS1/CL_BDCTOOLRSLTSTRUCTCONT /AWS1/CL_BDCTOOLRSLTSTRUCTCONT¶
The structured content of the execution result. This includes additional metadata about the execution, such as execution time, memory usage, and structured representations of output data. The format depends on the specific code interpreter and execution context.
iv_iserror TYPE /AWS1/BDCBOOLEAN /AWS1/BDCBOOLEAN¶
Indicates whether the result represents an error. If true, the content contains error messages or exception information. If false, the content contains successful execution results.
Queryable Attributes¶
content¶
The textual content of the execution result. This includes standard output from the code execution, such as print statements, console output, and text representations of results.
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 |
structuredContent¶
The structured content of the execution result. This includes additional metadata about the execution, such as execution time, memory usage, and structured representations of output data. The format depends on the specific code interpreter and execution context.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STRUCTUREDCONTENT() |
Getter for STRUCTUREDCONTENT |
isError¶
Indicates whether the result represents an error. If true, the content contains error messages or exception information. If false, the content contains successful execution results.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ISERROR() |
Getter for ISERROR, with configurable default |
ASK_ISERROR() |
Getter for ISERROR w/ exceptions if field has no value |
HAS_ISERROR() |
Determine if ISERROR has a value |