Skip to content

Bedrock Agent Runtime  >  Unions  >  ReasoningContentBlock

ReasoningContentBlock

Union Type

ReasoningContentBlock module-attribute

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.

Union Member Types

ReasoningContentBlockReasoningText dataclass

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

Attributes

value instance-attribute

ReasoningContentBlockRedactedContent dataclass

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

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