Class MessageContentBlock

Assembly: redb.Route.Llm.dll

Typed nested representation of an LlmContentBlock. Discriminated
by ; only the fields used by the active variant are set.

public class MessageContentBlock

Inheritance

Object→MessageContentBlock

Properties

InputJson

Raw tool input JSON; set when == "tool_use".

public string? InputJson { get; set; }

IsError

Error flag for tool results; set when == "tool_result".

public bool IsError { get; set; }

Kind

Block kind: "text" / "tool_use" / "tool_result" / "thinking".

public string Kind { get; set; }

OutputJson

Raw tool output JSON; set when == "tool_result".

public string? OutputJson { get; set; }

RedactedData

Encrypted payload of a redacted thinking block; "thinking" blocks only, with

public string? RedactedData { get; set; }

Signature

Provider signature that authenticates ; "thinking" blocks only, null

public string? Signature { get; set; }

Text

Set when == "text".

public string? Text { get; set; }

ThinkingText

Reasoning text; set when == "thinking". Empty when the provider signs the

public string? ThinkingText { get; set; }

ToolName

Tool name; set when == "tool_use".

public string? ToolName { get; set; }

ToolUseId

Set when == "tool_use" or "tool_result".

public string? ToolUseId { get; set; }