Skip to main content

Overview

TraceQueryClient provides read-only access to traces uploaded to the Valiqor backend. Use it to list traces, retrieve summaries, inspect messages and spans, and fetch evaluation steps from traced executions.
Or standalone:
Supports context manager protocol: with TraceQueryClient(...) as tq:

Constructor


Methods

list_traces()

List traces with pagination and optional project filtering. If neither project_name nor project_id is provided, the project name is auto-resolved from the SDK configuration.
Returns: TraceListResponse

get_trace()

Get a trace overview by ID.
Returns: TraceOverview

get_summary()

Get a detailed trace summary including token counts, costs, and diagnostics.
Returns: TraceSummary

get_messages()

Get the message sequence (user/assistant/tool messages) from a trace.
Returns: List[TraceMessage]

get_spans()

Get all spans from a trace, showing the execution tree.
Returns: List[TraceSpan]

get_full_trace()

Get the complete trace data — metadata, summary, messages, spans, retrievals, and execution tree.
Returns: TraceFullResult

get_eval_steps()

Get evaluation steps that were computed during or after tracing.
Returns: List[TraceEvalStep]