Expand description
Trace query services backing the logs CLI and audit surfaces.
TraceQueryService reconstructs a request’s timeline — log events, AI
requests, MCP executions, and execution steps — from a trace id, while
AiTraceService resolves per-task execution steps. The submodules are
read-only query groups; result shapes are re-exported from models.
Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.
Structs§
- AiRequest
Client Evidence - The
ai_request_client_evidencerow as stored; strings are the column values, so a reader that wants the closed enums parses them. - AiRequest
Detail - AiRequest
Filter - AiRequest
Info - AiRequest
List Item - AiRequest
Stats - AiRequest
Summary - AiTrace
Service - Audit
Lookup Result - Audit
Page - A slice of a request’s audit rows:
offsetrows in, at mostlimitrows, in sequence order. Alimitof zero means “all”. - Audit
Tool Call Row - Conversation
Message - Execution
Step - Execution
Step Summary - Level
Count - Linked
McpCall - LogSearch
Filter - LogSearch
Item - LogTime
Range - McpExecution
Summary - McpTool
Execution - Model
Stats Row - Module
Count - Provider
Stats Row - Request
Cursor - Keyset position for paging
list_ai_requestspast its newest-first page: rows strictly older than(created_at, id)in the list’s own sort order. - Task
Artifact - Task
Info - Tool
Execution Filter - Tool
Execution Item - Tool
LogEntry - Trace
Event - Trace
List Filter - Trace
List Item - Trace
Query Service
Enums§
- Request
Cursor Error - Trace
Error - Why a trace lookup could not be answered.