CodeInterpreterResult - Amazon Bedrock AgentCore Data Plane

CodeInterpreterResult

The output produced by executing code in a code interpreter session in Amazon Bedrock. 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.

Contents

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.

Type: Array of ContentBlock objects

Required: Yes

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.

Type: Boolean

Required: No

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.

Type: ToolResultStructuredContent object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: