pub struct DedupOrigin {
pub run_id: RunId,
pub seq: SequenceNumber,
}Expand description
Where a deduplicated tool call took its recorded output from: the run and the log position of the completion that already committed this call’s effect.
Recorded on Event::ToolCallCompleted when a live call resolved as a
duplicate of a call another run (or an earlier run of the same work)
already committed under the same tool name and idempotency key. The call
that carries this origin executed nothing: its output is a copy of the
origin’s, and the origin is named so the copy is never mistaken for a
second execution.
This is audit data, not replay input. Replay reads the output on the
completion exactly as it reads any other completion’s, and never follows
this pointer: a log replays with no lookup outside its own events, which is
what keeps replay pure. See
RunCtx::tool_call
for where the live decision is made.
Fields§
§run_id: RunIdThe run whose log holds the committed completion this call copied.
seq: SequenceNumberThe position of that completion’s intent, which is also the correlation
sequence of its Event::ToolCallCompleted.
Trait Implementations§
Source§impl Clone for DedupOrigin
impl Clone for DedupOrigin
Source§fn clone(&self) -> DedupOrigin
fn clone(&self) -> DedupOrigin
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more