forked from EduCraft/curriculum-project-hub
feat: add agent cost reporting
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
-- Record real provider-reported run cost for /cost reporting.
|
||||
-- No backfill: pre-existing test runs remain cost-unrecorded by design.
|
||||
ALTER TABLE "AgentRun" ADD COLUMN "costUsd" DECIMAL(18, 8);
|
||||
ALTER TABLE "AgentRun" ADD COLUMN "costSource" TEXT;
|
||||
|
||||
CREATE INDEX "AgentRun_projectId_finishedAt_idx" ON "AgentRun"("projectId", "finishedAt");
|
||||
Reference in New Issue
Block a user