SystemContentBlockDict¶
Union Type¶
SystemContentBlockDict
module-attribute
¶
SystemContentBlockDict = Union[SystemContentBlockTextDict | SystemContentBlockGuardContentDict | SystemContentBlockCachePointDict]
Dictionary form of SystemContentBlock, setting exactly one variant.
Union Member Types¶
SystemContentBlockTextDict
¶
SystemContentBlockGuardContentDict
¶
Bases: TypedDict
Attributes¶
guard_content
instance-attribute
¶
guard_content: GuardrailConverseContentBlock | GuardrailConverseContentBlockDict
A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
SystemContentBlockCachePointDict
¶
Bases: TypedDict
Attributes¶
cache_point
instance-attribute
¶
cache_point: CachePointBlock | CachePointBlockDict
CachePoint to include in the system prompt.