(trace_id: string)
| 271 | |
| 272 | /** Load all spans for a trace, sorted by start time. */ |
| 273 | export async function loadTrace(trace_id: string): Promise<CognitionSpan[]> { |
| 274 | return __backend.loadTrace(trace_id); |
| 275 | } |
| 276 | |
| 277 | /** For tests: reset the in-memory backend. */ |
| 278 | export function __resetTraces(): void { |