Chandler · usage
← Back to sessions ← Back to this session

Prompt

Total Prepare Bookings MRR by month for the last 12 months, filtered to Direct accounts (Corporate finance account type with a paid subscription, excluding demo and reseller accounts)

Outcome
success
Cost
$0.0217
excludes embeddings
Latency
8.4 s
Query attempts
1
Rows returned
12
Tokens
4,231 / 299
in / out

Request

request_id
54d0745f-d479-4448-ab59-2859e001c212
When
2026-09-04 12:41
Tool
ask
User
yordan@dext.com · Yordan Todorov Ivanov
Identity
google
Session
be46fa54-5907-4f0e-94d0-f61a67a0857c
Model
not recorded

Cost was recorded but no model name was. This happens when the answer came from an approved query — that path returns before the model name is stamped — so the cost figure is correct while the model behind it is not identified here. Cost was still priced per call at the right rate.

Route taken

Topic
—
Omni model
—
Match method
vector_llm
Nudge shown
—
Question shape
not classified
Caveat raised
—
Sharper question offered
—
Approved query
Direct Bookings
Month End MRR

Per-step detail — each LLM call, each Omni request, each rejected draft — is traced to stdout only and is not stored, so it cannot be shown here. Query attempts counts run_query executions, not model turns.

Approved query SQL

SELECT "t2"."omni_dbt__eds_calendar_day.date_day[month]" AS "omni_dbt__eds_calendar_day.date_day[month]__raw",
    COALESCE(SUM("t2"."$f5"), 0) AS "omni_dbt__eds_bookings.total_prepare_bookings_mrr",
    COUNT("t2"."$f8") AS "omni_dbt__eds_all_accounts.total_distinct_accounts",
    TO_CHAR("t2"."omni_dbt__eds_calendar_day.date_day[month]", 'YYYY-MM') AS "omni_dbt__eds_calendar_day.date_day[month]"
FROM (SELECT CAST(DATE_TRUNC('MONTH', "omni_dbt__eds_calendar_day"."DATE_DAY") AS TIMESTAMP(0)) AS "omni_dbt__eds_calendar_day.date_day[month]",
            CASE
                WHEN GROUPING(CAST(DATE_TRUNC('MONTH', "omni_dbt__eds_calendar_day"."DATE_DAY") AS TIMESTAMP(0)), "omni_dbt__eds_all_accounts"."DERIVED_ACCOUNT_ID", "omni_dbt__eds_bookings"."PRIMARY_KEY") = 2 THEN MIN("omni_dbt__eds_bookings"."PREPARE_BOOKINGS_MRR")
                ELSE NULL
            END AS "$f5",
            CASE
                WHEN GROUPING(CAST(DATE_TRUNC('MONTH', "omni_dbt__eds_calendar_day"."DATE_DAY") AS TIMESTAMP(0)), "omni_dbt__eds_all_accounts"."DERIVED_ACCOUNT_ID", "omni_dbt__eds_bookings"."PRIMARY_KEY") = 1 THEN MIN("omni_dbt__eds_all_accounts"."DERIVED_ACCOUNT_ID")
                ELSE NULL
            END AS "$f8"
        FROM "PROD"."EDS_ALL_ACCOUNTS" AS "omni_dbt__eds_all_accounts"
            INNER JOIN "PROD"."EDS_CALENDAR_DAY" AS "omni_dbt__eds_calendar_day" ON "omni_dbt__eds_all_accounts"."VALID_FROM" <= "omni_dbt__eds_calendar_day"."DATE_DAY" AND "omni_dbt__eds_all_accounts"."VALID_TO" >= "omni_dbt__eds_calendar_day"."DATE_DAY"
            LEFT JOIN "PROD"."EDS_BOOKINGS" AS "omni_dbt__eds_bookings" ON "omni_dbt__eds_all_accounts"."DERIVED_ACCOUNT_ID" = "omni_dbt__eds_bookings"."DERIVED_ACCOUNT_ID" AND "omni_dbt__eds_calendar_day"."DATE_DAY" >= "omni_dbt__eds_bookings"."VALID_FROM" AND "omni_dbt__eds_calendar_day"."DATE_DAY" <= "omni_dbt__eds_bookings"."VALID_TO"
        WHERE "omni_dbt__eds_all_accounts"."FINANCE_ACCOUNT_TYPE" = 'Corporate' AND (("omni_dbt__eds_all_accounts"."IS_DEXT_DEMO" IS NULL OR NOT "omni_dbt__eds_all_accounts"."IS_DEXT_DEMO") AND (NOT "omni_dbt__eds_all_accounts"."SALESFORCE_ACCOUNT_TYPE" = 'Reseller' OR "omni_dbt__eds_all_accounts"."SALESFORCE_ACCOUNT_TYPE" IS NULL)) AND ("omni_dbt__eds_bookings"."PREPARE_BOOKINGS_MRR" > 0 AND "omni_dbt__eds_calendar_day"."DATE_DAY" >= CAST(DATE_TRUNC('MONTH', (CAST(CURRENT_TIMESTAMP AS TIMESTAMP(0)) + INTERVAL '-5 month')) AS DATE) AND ("omni_dbt__eds_calendar_day"."DATE_DAY" < CAST(DATE_TRUNC('MONTH', (DATE_TRUNC('MONTH', (CAST(CURRENT_TIMESTAMP AS TIMESTAMP(0)) + INTERVAL '-5 month')) + INTERVAL '6 month')) AS DATE) AND "omni_dbt__eds_calendar_day"."DATE_DAY" = DATE_TRUNC('month', "omni_dbt__eds_calendar_day"."DATE_DAY" + INTERVAL '1 month') - INTERVAL '1 day'))
        GROUP BY GROUPING SETS((1, "omni_dbt__eds_all_accounts"."DERIVED_ACCOUNT_ID"), (1, "omni_dbt__eds_bookings"."PRIMARY_KEY"))) AS "t2"
GROUP BY "t2"."omni_dbt__eds_calendar_day.date_day[month]"
ORDER BY 1 DESC NULLS LAST
LIMIT 1000

Feedback

No feedback linked to this request.

Cost is the LLM completion spend LiteLLM priced for each call, summed per request. Chandler is running on the Codex CLI, which draws ChatGPT plan quota rather than per-token API billing, so this figure is not money paid — it is what the same traffic would have cost on the API, priced from the token counts Codex reports. Read it as the size of the bill avoided. Two known limits: embedding spend is not recorded, so retrieval and matching cost is missing, and because the figure is one sum per request it cannot be split by model within a request — a request's classifier and agent calls can use different models while llm_model holds only one name. Only authenticated calls are logged, USAGE_LOG_ENABLED can switch logging off, and log writes are fail-soft — this is not a complete record of traffic. Questions are grouped into sessions: a session is exact when the caller echoed its id back to us and otherwise inferred from a 30-minute gap in that user’s activity, so a grouping is only as good as the source shown on the session itself. A call with no attributable user gets no session at all; those questions are listed separately rather than dropped.