added Aborted status
This commit is contained in:
parent
dfda868f4b
commit
d9a6975e6b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user