ReasoningContentBlock

Contains content regarding the reasoning that is carried out by the model 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

The reasoning that the model used to return the output.

Link copied to clipboard

The content in the reasoning that was encrypted by the model provider for safety reasons. The encryption doesn't affect the quality of responses.

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.