CodeInterpreterStreamOutput¶
Union Type¶
CodeInterpreterStreamOutput
module-attribute
¶
CodeInterpreterStreamOutput = Union[CodeInterpreterStreamOutputResult | CodeInterpreterStreamOutputAccessDeniedException | CodeInterpreterStreamOutputConflictException | CodeInterpreterStreamOutputInternalServerException | CodeInterpreterStreamOutputResourceNotFoundException | CodeInterpreterStreamOutputServiceQuotaExceededException | CodeInterpreterStreamOutputThrottlingException | CodeInterpreterStreamOutputValidationException | CodeInterpreterStreamOutputUnknown]
Contains output from a code interpreter stream.
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¶
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¶
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¶
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¶
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¶
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¶
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.