Class ApprovalProps

Assembly: redb.Route.Llm.dll

Persisted decision from an IApprovalGate. The combination of
(, , ,
) at the top level allows reviewer queries
("show every denial last week for tool X") without scanning value rows.
The approval id itself lives on the value_string column of
_objects (partial index on PostgreSQL/SQLite; no index on MSSQL) and,
normalized, in value_unique (per-scheme unique — one decision per id),
not in props.

[RedbScheme("LLM Approval")]
public class ApprovalProps

Inheritance

Object→ApprovalProps

Properties

Approved

True when the gate let the call proceed.

public bool Approved { get; set; }

ApprovedBy

Identifier of the approver (user / service) — null when auto-approved.

public string? ApprovedBy { get; set; }

ConversationId

Owning conversation (null for ad-hoc approvals).

public string? ConversationId { get; set; }

DecidedAtUtc

When the decision was recorded.

public DateTimeOffset DecidedAtUtc { get; set; }

InputJson

JSON-serialized tool input as it would be dispatched.

public string InputJson { get; set; }

Reason

Reason text supplied by the approver.

public string? Reason { get; set; }

ToolName

Tool that was gated.

public string ToolName { get; set; }

ToolUseId

Tool-use id from the model response.

public string ToolUseId { get; set; }