Skip to content

CodeInterpreterInvocationOutput

Source code in docs_src/capo_bedrock_agent_runtime/types/code_interpreter_invocation_output.py
class CodeInterpreterInvocationOutput(TypedDict, closed=True):
    execution_output: NotRequired["str"]
    """<p>Contains the successful output returned from code execution</p>"""
    execution_error: NotRequired["str"]
    """<p>Contains the error returned from code execution.</p>"""
    files: NotRequired["capo_bedrock_agent_runtime.types.files.Files"]
    """<p>Contains output files, if generated by code execution.</p>"""
    execution_timeout: NotRequired["bool"]
    """<p>Indicates if the execution of the code timed out.</p>"""
    metadata: NotRequired["capo_bedrock_agent_runtime.types.metadata.Metadata"]
    """<p>Contains information about the output from the code interpreter.</p>"""

execution_error instance-attribute

execution_error: NotRequired[str]

Contains the error returned from code execution.

execution_output instance-attribute

execution_output: NotRequired[str]

Contains the successful output returned from code execution

execution_timeout instance-attribute

execution_timeout: NotRequired[bool]

Indicates if the execution of the code timed out.

files instance-attribute

files: NotRequired[Files]

Contains output files, if generated by code execution.

metadata instance-attribute

metadata: NotRequired[Metadata]

Contains information about the output from the code interpreter.