Expand description
UI-ready query API.
All functions read from the global SQLite DB and return structs that map directly to UI components (run list, conversation view, run tree).
Structs§
- Agent
Overview - Per-agent overview within a run.
- RunOverview
- Aggregated overview of a run.
- RunSummary
- Run summary for list views.
- SpanRow
- Span row used to build the run orchestration tree.
- Turn
Kind Count - TurnRow
- One row of an agent’s conversation stream.
Functions§
- get_
agent_ overview - Single-agent overview (status, tokens, model).
- get_
agent_ turns - List turns for an agent, in seq order. Paginated.
- get_
run_ agents - All agents for a run.
- get_
run_ overview - Aggregated run overview with turn counts.
- get_
run_ spans - Orchestration spans for a run (caller assembles into a tree).
- get_
run_ tree - Alias for backwards-compat with the design doc.
- list_
runs - List recent runs, newest first. Paginated.
- search_
turns - Search turns by free-text query (basic LIKE-based, sufficient for now; will be upgraded to FTS5 in P4).