pub struct GoldenTrace {
pub trace_id: String,
pub window_start_ms: i64,
pub window_end_ms: i64,
pub raw_events: Vec<RawEvent>,
pub expected_sanitized: Vec<SanitizedEvent>,
pub expected_intents: IntentBatch,
pub expected_actions: Vec<ExecutedAction>,
}Expand description
一条 Golden Trace
记录特定时间窗口内:
- 输入序列 (RawEvent)
- 期望的脱敏输出 (SanitizedEvent)
- 期望的 LLM 返回 (IntentBatch)
- 期望的执行动作 (ExecutedAction)
Golden Trace 文件存储在 data/traces/ 目录下。
超过 1MB 的 trace 文件使用 Git LFS 托管。
Fields§
§trace_id: StringTrace 唯一 ID
window_start_ms: i64窗口起始时间 (epoch ms)
window_end_ms: i64窗口结束时间 (epoch ms)
raw_events: Vec<RawEvent>原始输入事件序列
expected_sanitized: Vec<SanitizedEvent>期望的脱敏输出
expected_intents: IntentBatch期望的云端返回
expected_actions: Vec<ExecutedAction>期望的本地执行动作
Trait Implementations§
Source§impl Clone for GoldenTrace
impl Clone for GoldenTrace
Source§fn clone(&self) -> GoldenTrace
fn clone(&self) -> GoldenTrace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoldenTrace
impl Debug for GoldenTrace
Source§impl<'de> Deserialize<'de> for GoldenTrace
impl<'de> Deserialize<'de> for GoldenTrace
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GoldenTrace
impl RefUnwindSafe for GoldenTrace
impl Send for GoldenTrace
impl Sync for GoldenTrace
impl Unpin for GoldenTrace
impl UnsafeUnpin for GoldenTrace
impl UnwindSafe for GoldenTrace
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
Mutably borrows from an owned value. Read more