DocumentSource
module-attribute
¶
DocumentSource = Union[DocumentSourceBytes | DocumentSourceS3Location | DocumentSourceText | DocumentSourceContent | DocumentSourceUnknown]
Contains the content of a document.
Union Members¶
DocumentSourceBytes
dataclass
¶
The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.
Source code in src/aws_sdk_bedrock_runtime/models.py
6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 | |
DocumentSourceS3Location
dataclass
¶
The location of a document object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.
Source code in src/aws_sdk_bedrock_runtime/models.py
6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 | |
DocumentSourceText
dataclass
¶
The text content of the document source.
Source code in src/aws_sdk_bedrock_runtime/models.py
6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 | |
DocumentSourceContent
dataclass
¶
The structured content of the document source, which may include various content blocks such as text, images, or other document elements.
Source code in src/aws_sdk_bedrock_runtime/models.py
6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 | |
DocumentSourceUnknown
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
6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 | |