ToolResultContentBlock
module-attribute
¶
ToolResultContentBlock = Union[ToolResultContentBlockJson | ToolResultContentBlockText | ToolResultContentBlockImage | ToolResultContentBlockDocument | ToolResultContentBlockVideo | ToolResultContentBlockUnknown]
The tool result content block. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.
Union Members¶
ToolResultContentBlockJson
dataclass
¶
A tool result that is JSON format data.
Source code in src/aws_sdk_bedrock_runtime/models.py
7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 | |
ToolResultContentBlockText
dataclass
¶
A tool result that is text.
Source code in src/aws_sdk_bedrock_runtime/models.py
7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 | |
ToolResultContentBlockImage
dataclass
¶
A tool result that is an image.
Note
This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.
Source code in src/aws_sdk_bedrock_runtime/models.py
7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 | |
ToolResultContentBlockDocument
dataclass
¶
A tool result that is a document.
Source code in src/aws_sdk_bedrock_runtime/models.py
7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 | |
ToolResultContentBlockVideo
dataclass
¶
A tool result that is video.
Source code in src/aws_sdk_bedrock_runtime/models.py
7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 | |
ToolResultContentBlockUnknown
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
7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 | |