Path: redb-route/redb.Route.Llm/Providers/LlmThinkingBlock.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm/Providers/LlmThinkingBlock.cs ---- namespace redb.Route.Llm.Providers; /// /// 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. /// /// Readable reasoning text; empty for a redacted block, and empty when the provider omits the text but still signs the block. /// Provider signature that authenticates ; null when the provider does not sign. /// Encrypted payload of a redacted_thinking block; null otherwise. public sealed record LlmThinkingBlock( string Text, string? Signature = null, string? RedactedData = null) : LlmContentBlock { /// True for a redacted_thinking block: data without visible text. public bool IsRedacted => !string.IsNullOrEmpty(RedactedData); }