fix(runtime): classify run usage status
This commit is contained in:
1 parent
d971ca7929
commit
eefb515aa2
17 files changed
+308
-26
No files matched your search
@@ -145,6 +145,15 @@ export type RunStatus =
|
||||
| "timed_out"
|
||||
| "interrupted";
|
||||
|
||||
export const RUN_USAGE_STATUSES = [
|
||||
"ok",
|
||||
"pre_first_message",
|
||||
"error_stop",
|
||||
"aborted_before_usage",
|
||||
] as const;
|
||||
|
||||
export type RunUsageStatus = (typeof RUN_USAGE_STATUSES)[number];
|
||||
|
||||
export type DepartmentId =
|
||||
| "executive"
|
||||
| "engineering"
|
||||
|
||||
@@ -14,6 +14,7 @@ import type {
|
||||
ApprovalState,
|
||||
ApprovalType,
|
||||
RunStatus,
|
||||
RunUsageStatus,
|
||||
SkillSourceType,
|
||||
TrustLevel,
|
||||
} from "./enums";
|
||||
@@ -201,6 +202,7 @@ export interface RunRecord {
|
||||
model: string | null;
|
||||
costUsd: number | null;
|
||||
unattributedCost: boolean;
|
||||
usageStatus: RunUsageStatus;
|
||||
startedAt: string | null;
|
||||
finishedAt: string | null;
|
||||
logPath: string | null;
|
||||
|
||||
Reference in new issue
Block a user