Skip to content

Bedrock Runtime  >  Unions  >  ReasoningContentBlock

ReasoningContentBlock

Union Type

ReasoningContentBlock module-attribute

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.

Union Member Types

ReasoningContentBlockReasoningText dataclass

The reasoning that the model used to return the output.

Attributes

value instance-attribute

ReasoningContentBlockRedactedContent dataclass

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

Attributes

value instance-attribute
value: bytes

ReasoningContentBlockUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str