pub struct ValidatedTrace {Show 16 fields
pub prompt: String,
pub trace: Vec<TraceStep>,
pub final_payload: Option<FinalPayload>,
pub verdict: String,
pub oracle_diff: Option<String>,
pub repo_revision: String,
pub timestamp: String,
pub answer: String,
pub iterations: usize,
pub subcalls: usize,
pub input_tokens: u64,
pub output_tokens: u64,
pub elapsed_ms: u64,
pub source_path: Option<String>,
pub verification_method: VerificationMethod,
pub trace_id: String,
}Expand description
Complete snapshot of a validated RLM REPL session.
Contains the original prompt, every tool step, token
accounting, timing, and the oracle’s verdict. Serialised
as .jsonl for the golden-trace spool.
§Examples
let trace = ValidatedTrace {
prompt: "find async fns".into(),
verdict: "golden".into(),
..Default::default()
};Fields§
§prompt: StringThe user query that initiated the REPL session.
trace: Vec<TraceStep>Ordered tool invocations recorded during the session.
final_payload: Option<FinalPayload>Parsed FINAL() payload, if one was emitted.
verdict: StringOracle classification: "golden", "failed", etc.
oracle_diff: Option<String>Unified diff when the oracle disagrees with the answer.
repo_revision: StringGit SHA of the repository at validation time.
timestamp: StringISO-8601 timestamp of the validation run.
answer: StringRaw FINAL() answer text.
iterations: usizeNumber of REPL loop iterations executed.
subcalls: usizeCount of LLM sub-queries spawned.
input_tokens: u64Total input tokens consumed across all LLM calls.
output_tokens: u64Total output tokens generated across all LLM calls.
elapsed_ms: u64Wall-clock milliseconds for the full session.
source_path: Option<String>Filesystem path of the primary source file, if any.
verification_method: VerificationMethodWhich oracle backend produced the verdict.
trace_id: StringUnique identifier for this trace.
Trait Implementations§
Source§impl Clone for ValidatedTrace
impl Clone for ValidatedTrace
Source§fn clone(&self) -> ValidatedTrace
fn clone(&self) -> ValidatedTrace
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidatedTrace
impl Debug for ValidatedTrace
Source§impl<'de> Deserialize<'de> for ValidatedTrace
impl<'de> Deserialize<'de> for ValidatedTrace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ValidatedTrace
impl RefUnwindSafe for ValidatedTrace
impl Send for ValidatedTrace
impl Sync for ValidatedTrace
impl Unpin for ValidatedTrace
impl UnsafeUnpin for ValidatedTrace
impl UnwindSafe for ValidatedTrace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request