Skip to content

Bedrock Agentcore  >  Unions  >  CodeInterpreterStreamOutput

CodeInterpreterStreamOutput

Union Type

Union Member Types

CodeInterpreterStreamOutputResult dataclass

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.

Attributes

value instance-attribute

CodeInterpreterStreamOutputAccessDeniedException dataclass

The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.

Attributes

value instance-attribute

CodeInterpreterStreamOutputConflictException dataclass

The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.

Attributes

value instance-attribute

CodeInterpreterStreamOutputInternalServerException dataclass

The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.

Attributes

value instance-attribute

CodeInterpreterStreamOutputResourceNotFoundException dataclass

The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.

Attributes

value instance-attribute

CodeInterpreterStreamOutputServiceQuotaExceededException dataclass

The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.

Attributes

value instance-attribute

CodeInterpreterStreamOutputThrottlingException dataclass

The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.

Attributes

value instance-attribute

CodeInterpreterStreamOutputValidationException dataclass

The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.

Attributes

value instance-attribute

CodeInterpreterStreamOutputUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str