pub enum Performer {
Server,
Client,
}Expand description
Who performed a tool call: the trust distinction a reader of the log needs to tell “salvor witnessed this” apart from “the client says this happened”.
A ToolCallRequested with no Performer
recorded (the field is None) is the default and, until this variant’s
client side is wired to any endpoint, the only case that exists: salvor
made the call itself, in its own process, so the log entry is direct
evidence. A recorded Performer::Client is different in kind, not just
in origin: it is the client’s own claim that it ran the call in its
process and is now telling salvor it happened. Salvor did not witness that
execution; it is trusting the report. The log keeps that distinction
explicit rather than flattening both into “a tool call happened”, so a
later reader (a human auditing the log, or code deciding how much to trust
an entry) can tell a witnessed fact from an asserted one.
Serializes lowercase ("server", "client"), matching the wire style
Effect uses.
Variants§
Server
Salvor performed the call itself, in its own process. The log entry is direct evidence: salvor witnessed the call because it made it.
Client
The client performed the call in its own process and reported back that it happened. The log entry is the client’s claim, not something salvor witnessed directly.