Expand description
Session shapes: the capture identity and the deriver’s projection.
The split the wire draws is kept here rather than flattened: identity is
ingest-written and lives at the top of SessionItem, while everything
folded from the span layer at derive time lives under rollup. Flattening
them would blur which layer owns a field, and “why is this empty?” has two
very different answers depending on the side it fell on.
Structs§
- Model
Usage - One model’s contribution to a session in the API: how many llm calls ran on it and what they spent.
- Session
Detail Response - The response for GET /v1/sessions/:id: the session record alone.
- Session
Item - The per-session shape: capture identity at the top level, the deriver-
owned projection nested under
rollup. - Session
List Response - The response envelope for GET /v1/sessions.
- Session
Rollup - The deriver-owned session projection — status, title, counts, and spend, all folded from the span layer at derive time.
- Session
Traces Response - The composite session view on the span model.
- Session
Update Request - The
PATCH /v1/sessions/{id}body. - Session
Usage - The session’s total token/cost spend, folded from the span layer.
- Tree
Task - One task folded from the session’s TaskCreate/TaskUpdate calls.