Class LlmThinkingBlock
Thinking / reasoning block returned by a provider that exposes its chain of thought —
Anthropic thinking and redacted_thinking, DeepSeek reasoning_content.
The block is opaque unless the provider returns text. It belongs to the assistant
turn that produced it and travels with that turn, unchanged and in the original order: on the
next request of the same run and, when a conversation store is configured, on a later run of the
same conversation, whichever provider that run asks. It is not an answer: it never reaches
AgentResponse.Text or Out.Body.
Each request path writes what its wire can express. Anthropic verifies
, so that path sends a signed block or a redacted one exactly as received
and has no form for an unsigned block. is the redacted_thinking
variant: an encrypted payload with no readable text. DeepSeek signs nothing; the OpenAI-compatible
path sends back as reasoning_content when the request declares tools.
The provider and model that produced a stored block are recorded on its message, not on the
block.
public sealed record LlmThinkingBlock : LlmContentBlock, IEquatable<LlmContentBlock>, IEquatable<LlmThinkingBlock>
Inheritance
Implements
Properties
IsRedacted
True for a redacted_thinking block: data without visible text.
public bool IsRedacted { get; }
RedactedData
Encrypted payload of a redacted_thinking block; null otherwise.
public string? RedactedData { get; init; }
Signature
Provider signature that authenticates Text; null when the provider does not sign.
public string? Signature { get; init; }
Text
Readable reasoning text; empty for a redacted block, and empty when the provider omits the text but still signs the block.
public string Text { get; init; }
Constructors
LlmThinkingBlock(string, string?, string?)
Thinking / reasoning block returned by a provider that exposes its chain of thought —