GuardContent
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.
Inherited functions
Casts this SystemContentBlock as a CachePoint and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.CachePointBlock value. Throws an exception if the SystemContentBlock is not a CachePoint.
Casts this SystemContentBlock as a CachePoint and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.CachePointBlock value. Returns null if the SystemContentBlock is not a CachePoint.
Casts this SystemContentBlock as a GuardContent and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.GuardrailConverseContentBlock value. Throws an exception if the SystemContentBlock is not a GuardContent.
Casts this SystemContentBlock as a GuardContent and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.GuardrailConverseContentBlock value. Returns null if the SystemContentBlock is not a GuardContent.
Casts this SystemContentBlock as a Text and retrieves its kotlin.String value. Throws an exception if the SystemContentBlock is not a Text.
Casts this SystemContentBlock as a Text and retrieves its kotlin.String value. Returns null if the SystemContentBlock is not a Text.