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

Function timeline

src/dashboard/lcm_api.rs:206–214  ·  view source on GitHub ↗

`GET /api/plugins/hermes-lcm/timeline`

(
    State(state): State<DashboardState>,
    JsonQuery(params): JsonQuery<TimelineParams>,
)

Source from the content-addressed store, hash-verified

204
205/// `GET /api/plugins/hermes-lcm/timeline`
206pub(crate) async fn timeline(
207 State(state): State<DashboardState>,
208 JsonQuery(params): JsonQuery<TimelineParams>,
209) -> LcmResult {
210 let limit = coerce_limit(params.limit, 400, 2000);
211 let by_hour = params.bucket.eq_ignore_ascii_case("hour");
212 let payload = lcm_service::timeline_payload(&state, by_hour, &params.session_id, limit).await?;
213 Ok(ok(payload))
214}
215
216#[derive(Deserialize)]
217pub(crate) struct CompressionParams {

Callers

nothing calls this directly

Calls 3

coerce_limitFunction · 0.85
timeline_payloadFunction · 0.85
okFunction · 0.70

Tested by

no test coverage detected