AI Traces Query API - Query LLM Cost and Tool Calls SigNoz introduced a `builder_ai_query` query type in its Trace API that runs queries against AI traces and exposes per-trace fields including `trace.tool_call_count`, `trace.distinct_tool_count` and `trace.estimated_total_cost`. The query type uses the existing `POST https:///api/v5/query_range` endpoint with `signal` set to `traces`, and accepts the same `filter`, `selectFields`, `aggregations`, `groupBy`, `order`, `limit` and `stepInterval` fields as a standard builder query. The API gives developers the data behind SigNoz's AI Observability Explorer without the UI, letting them filter, aggregate and order traces that contain at least one LLM, tool or agent span. The builder ai query query type runs queries against your AI traces, which are traces with at least one LLM, tool, or agent span. It adds per-trace fields such as tool call count and estimated cost, so you can filter, aggregate, and order AI traces programmatically. Use it when you want the data behind the AI Observability Explorer https://signoz.io/docs/ai-observability-explorer/ without the UI. API endpoint builder ai query uses the same endpoint, authentication, and top-level payload as the rest of the Trace API: POST https://