added Aborted status

This commit is contained in:
Rob Colbert 2026-05-12 08:49:11 -04:00
parent dfda868f4b
commit d9a6975e6b

View File

@ -15,6 +15,7 @@ import { GadgetId } from "../lib/gadget-id.ts";
export enum ChatTurnStatus {
Processing = "processing",
Finished = "finished",
Aborted = "aborted",
Error = "error",
}
@ -24,24 +25,27 @@ export interface IChatTurnPrompts {
}
export interface IChatTurnBlockThinking {
mode: 'thinking';
mode: "thinking";
createdAt: Date;
content: string;
}
export interface IChatTurnBlockResponding {
mode: 'responding';
mode: "responding";
createdAt: Date;
content: string;
}
export interface IChatTurnBlockTool {
mode: 'tool';
mode: "tool";
createdAt: Date;
content: IChatToolCall;
}
export type IChatTurnBlock = IChatTurnBlockThinking | IChatTurnBlockResponding | IChatTurnBlockTool;
export type IChatTurnBlock =
| IChatTurnBlockThinking
| IChatTurnBlockResponding
| IChatTurnBlockTool;
export interface IChatTurnStats {
toolCallCount: number; // total number of tool functions called this turn