ResponseStream
module-attribute
¶
ResponseStream = Union[ResponseStreamChunk | ResponseStreamInternalServerException | ResponseStreamModelStreamErrorException | ResponseStreamValidationException | ResponseStreamThrottlingException | ResponseStreamModelTimeoutException | ResponseStreamServiceUnavailableException | ResponseStreamUnknown]
Definition of content in the response stream.
Union Members¶
ResponseStreamChunk
dataclass
¶
Content included in the response.
Source code in src/aws_sdk_bedrock_runtime/models.py
13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 | |
ResponseStreamInternalServerException
dataclass
¶
An internal server error occurred. Retry your request.
Source code in src/aws_sdk_bedrock_runtime/models.py
13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 | |
ResponseStreamModelStreamErrorException
dataclass
¶
An error occurred while streaming the response. Retry your request.
Source code in src/aws_sdk_bedrock_runtime/models.py
13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 | |
ResponseStreamValidationException
dataclass
¶
Input validation failed. Check your request parameters and retry the request.
Source code in src/aws_sdk_bedrock_runtime/models.py
13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 | |
ResponseStreamThrottlingException
dataclass
¶
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.
Source code in src/aws_sdk_bedrock_runtime/models.py
13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 | |
ResponseStreamModelTimeoutException
dataclass
¶
The request took too long to process. Processing time exceeded the model timeout length.
Source code in src/aws_sdk_bedrock_runtime/models.py
13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 | |
ResponseStreamServiceUnavailableException
dataclass
¶
The service isn't available. Try again later.
Source code in src/aws_sdk_bedrock_runtime/models.py
13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 | |
ResponseStreamUnknown
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.
Source code in src/aws_sdk_bedrock_runtime/models.py
13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 | |