MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / message

Function message

tests/dashboard_api_test/analytics.rs:55–79  ·  view source on GitHub ↗
(
    id: &str,
    role: &str,
    ordinal: i64,
    text: &str,
    kind: &str,
    tool_names: Option<&str>,
    metadata_json: Option<&str>,
)

Source from the content-addressed store, hash-verified

53
54#[allow(clippy::too_many_arguments)]
55fn message(
56 id: &str,
57 role: &str,
58 ordinal: i64,
59 text: &str,
60 kind: &str,
61 tool_names: Option<&str>,
62 metadata_json: Option<&str>,
63) -> SessionMessageRecord {
64 message_record_at(
65 "codex",
66 id,
67 "analytics-session",
68 role,
69 ordinal,
70 Some(1_760_000_000 + ordinal),
71 text,
72 kind,
73 Some("gpt-5.5"),
74 tool_names,
75 None,
76 None,
77 metadata_json,
78 )
79}
80
81async fn seed_session_store(db_path: &Path, project: &Path) {
82 let gdb = GlobalDb::open_at(db_path).await.expect("open session db");

Callers 1

seed_session_storeFunction · 0.70

Calls 1

message_record_atFunction · 0.85

Tested by

no test coverage detected