fix(runtime): derive unattributed cost from usage status
This commit is contained in:
1 parent
f107415f4f
commit
ebcc15c68d
8 files changed
+61
-7
No files matched your search
@@ -108,7 +108,6 @@ function cancelRun(runId: string) {
|
||||
signal: null,
|
||||
model: null,
|
||||
usageStatus: "aborted_before_usage",
|
||||
unattributedCost: true,
|
||||
inputTokens: null,
|
||||
outputTokens: null,
|
||||
});
|
||||
|
||||
@@ -53,10 +53,9 @@ export const workerMessageSchema = z.union([
|
||||
signal: z.string().nullable(),
|
||||
model: z.string().nullable(),
|
||||
usageStatus: runUsageStatusSchema,
|
||||
unattributedCost: z.boolean(),
|
||||
inputTokens: z.number().nullable(),
|
||||
outputTokens: z.number().nullable(),
|
||||
}),
|
||||
}).strict(),
|
||||
z.object({
|
||||
type: z.literal("agent-event"),
|
||||
runId: z.string().uuid(),
|
||||
|
||||
Reference in new issue
Block a user