Class ToolAuditProps
One row per tool invocation, written by the audit observer. The scheme is built around the dimensions
every audit dashboard slices by — , ,
, .
Two different filters, and they cost differently. WhereRedb narrows by OBJECT rows — the columns
of _objects (id, name, value_*, parent, dates) — which is the fast path, on the owner's
measurements an order of magnitude faster. Where narrows by VALUES: a props-typed predicate
resolves through the values table. Both are server-side; the second merely pays for the extra table.
A dashboard that needs cheap slicing by tool therefore rides a base field — which is why the row
name leads with the tool name (WhereRedb(o => o.Name.Contains(tool))), and a base filter
combines with a props predicate in one chain — WhereRedb(...).Where(...), cheap clause first.
[RedbScheme("LLM Tool Audit")]
public class ToolAuditProps
Inheritance
Properties
MessageId
Message id this audit is attached to (the tool-use message).
public string? MessageId { get; set; }
Outcome
Outcome bucket: "success" / "error" / "skipped" / "denied".
public string Outcome { get; set; }