Class ToolAuditProps

Assembly: redb.Route.Llm.dll

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

Object→ToolAuditProps

Properties

ConversationId

Owning conversation.

public string ConversationId { get; set; }

DurationMs

Wall-clock duration in milliseconds.

public int DurationMs { get; set; }

ErrorMessage

Exception message when is "error".

public string? ErrorMessage { get; set; }

InputJson

JSON-serialized tool input as it was dispatched.

public string InputJson { get; set; }

InvokedAtUtc

When the invocation started.

public DateTimeOffset InvokedAtUtc { get; set; }

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; }

OutputJson

JSON-serialized tool output; null on failure.

public string? OutputJson { get; set; }

SkipReason

Reason text when is "skipped" / "denied".

public string? SkipReason { get; set; }

ToolName

Tool that was invoked.

public string ToolName { get; set; }

ToolUseId

Tool-use id from the model response.

public string ToolUseId { get; set; }