Skip to content

Bedrock Agent Runtime  >  Structures  >  CodeInterpreterInvocationOutput

CodeInterpreterInvocationOutput

Structure Class

CodeInterpreterInvocationOutput dataclass

Contains the JSON-formatted string returned by the API invoked by the code interpreter.

Attributes

execution_error class-attribute instance-attribute
execution_error: str | None = None

Contains the error returned from code execution.

execution_output class-attribute instance-attribute
execution_output: str | None = None

Contains the successful output returned from code execution

execution_timeout class-attribute instance-attribute
execution_timeout: bool | None = None

Indicates if the execution of the code timed out.

files class-attribute instance-attribute
files: list[str] | None = None

Contains output files, if generated by code execution.

metadata class-attribute instance-attribute
metadata: Metadata | None = field(repr=False, default=None)

Contains information about the output from the code interpreter.