GuardrailConverseContentBlock
module-attribute
¶
GuardrailConverseContentBlock = Union[GuardrailConverseContentBlockText | GuardrailConverseContentBlockImage | GuardrailConverseContentBlockUnknown]
A content block for selective guarding with the Converse or ConverseStream API operations.
Union Members¶
GuardrailConverseContentBlockText
dataclass
¶
The text to guard.
Source code in src/aws_sdk_bedrock_runtime/models.py
7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 | |
GuardrailConverseContentBlockImage
dataclass
¶
Image within converse content block to be evaluated by the guardrail.
Source code in src/aws_sdk_bedrock_runtime/models.py
7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 | |
GuardrailConverseContentBlockUnknown
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
7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 | |