MCPcopy Create free account
hub / github.com/AI45Lab/Code / new

Method new

core/src/run.rs:61–74  ·  view source on GitHub ↗
(id: String, session_id: String, prompt: String)

Source from the content-addressed store, hash-verified

59
60impl RunSnapshot {
61 fn new(id: String, session_id: String, prompt: String) -> Self {
62 let now = now_ms();
63 Self {
64 id,
65 session_id,
66 status: RunStatus::Created,
67 prompt,
68 created_at_ms: now,
69 updated_at_ms: now,
70 result_text: None,
71 error: None,
72 event_count: 0,
73 }
74 }
75}
76
77#[derive(Debug, Default)]

Callers

nothing calls this directly

Calls 1

now_msFunction · 0.70

Tested by

no test coverage detected