Skip to content

Commit 83b9b96

Browse files
sgrebnovlukekim
authored andcommitted
AI SQL Function: fix task history query
1 parent e79cc43 commit 83b9b96

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ai/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,13 @@ Every `ai()` call is tracked in the `runtime.task_history` table:
253253

254254
```sql
255255
SELECT
256-
task_id,
256+
trace_id,
257257
task,
258-
execution_time,
258+
execution_duration_ms,
259259
captured_output
260260
FROM runtime.task_history
261261
WHERE task = 'ai'
262-
ORDER BY captured_at DESC
262+
ORDER BY start_time DESC
263263
LIMIT 5;
264264
```
265265

0 commit comments

Comments
 (0)