store
store
¶
SQLite-backed trace storage.
Classes¶
TraceStore
¶
Append-only SQLite store for interaction traces.
Source code in src/openjarvis/traces/store.py
Functions¶
save
¶
save(trace: Trace) -> None
Persist a complete trace with all its steps.
Source code in src/openjarvis/traces/store.py
get
¶
get(trace_id: str) -> Optional[Trace]
Retrieve a trace by id, or None if not found.
Source code in src/openjarvis/traces/store.py
list_traces
¶
list_traces(*, agent: Optional[str] = None, model: Optional[str] = None, outcome: Optional[str] = None, since: Optional[float] = None, until: Optional[float] = None, limit: int = 100) -> List[Trace]
Query traces with optional filters.
Source code in src/openjarvis/traces/store.py
count
¶
search
¶
Full-text search across traces. Optionally filter by agent.
Source code in src/openjarvis/traces/store.py
update_feedback
¶
Update the feedback score for a trace.
Returns True if the trace was found and updated, False otherwise.