Skip to content

ResponseStream

Union Type

Union Member Types

ResponseStreamChunk dataclass

Bases: _SerdeShape

Content included in the response.

Attributes

value instance-attribute
value: PayloadPart

ResponseStreamInternalServerException dataclass

Bases: _SerdeShape

An internal server error occurred. Retry your request.

Attributes

value instance-attribute

ResponseStreamModelStreamErrorException dataclass

Bases: _SerdeShape

An error occurred while streaming the response. Retry your request.

Attributes

value instance-attribute

ResponseStreamValidationException dataclass

Bases: _SerdeShape

Input validation failed. Check your request parameters and retry the request.

Attributes

value instance-attribute

ResponseStreamThrottlingException dataclass

Bases: _SerdeShape

Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase Provisioned Throughput to increase the rate or number of tokens you can process.

Attributes

value instance-attribute

ResponseStreamModelTimeoutException dataclass

Bases: _SerdeShape

The request took too long to process. Processing time exceeded the model timeout length.

Attributes

value instance-attribute

ResponseStreamServiceUnavailableException dataclass

Bases: _SerdeShape

The service isn't available. Try again later.

Attributes

value instance-attribute

ResponseStreamUnknown dataclass

Bases: _SerdeShape

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