ReasoningContentBlock
Contains content regarding the reasoning that the foundation model made with respect to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.
Inheritors
Types
Functions
Casts this ReasoningContentBlock as a ReasoningText and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.ReasoningTextBlock value. Throws an exception if the ReasoningContentBlock is not a ReasoningText.
Casts this ReasoningContentBlock as a ReasoningText and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.ReasoningTextBlock value. Returns null if the ReasoningContentBlock is not a ReasoningText.
Casts this ReasoningContentBlock as a RedactedContent and retrieves its kotlin.ByteArray value. Throws an exception if the ReasoningContentBlock is not a RedactedContent.
Casts this ReasoningContentBlock as a RedactedContent and retrieves its kotlin.ByteArray value. Returns null if the ReasoningContentBlock is not a RedactedContent.