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

Link copied to clipboard

Contains information about the reasoning that the model used to return the content in the content block.

Link copied to clipboard

The content in the reasoning that was encrypted by the model provider for trust and safety reasons.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this ReasoningContentBlock as a RedactedContent and retrieves its kotlin.ByteArray value. Throws an exception if the ReasoningContentBlock is not a RedactedContent.

Link copied to clipboard

Casts this ReasoningContentBlock as a RedactedContent and retrieves its kotlin.ByteArray value. Returns null if the ReasoningContentBlock is not a RedactedContent.