SystemContentBlock
Contains configurations for instructions to provide the model for how to handle input. To learn more, see Using the Converse API.
Inheritors
Types
CachePoint to include in the system prompt.
A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.
A system prompt for the model.
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.