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 {
|
export enum ChatTurnStatus {
|
||||||
Processing = "processing",
|
Processing = "processing",
|
||||||
Finished = "finished",
|
Finished = "finished",
|
||||||
|
Aborted = "aborted",
|
||||||
Error = "error",
|
Error = "error",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,24 +25,27 @@ export interface IChatTurnPrompts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IChatTurnBlockThinking {
|
export interface IChatTurnBlockThinking {
|
||||||
mode: 'thinking';
|
mode: "thinking";
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
content: string;
|
content: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IChatTurnBlockResponding {
|
export interface IChatTurnBlockResponding {
|
||||||
mode: 'responding';
|
mode: "responding";
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
content: string;
|
content: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IChatTurnBlockTool {
|
export interface IChatTurnBlockTool {
|
||||||
mode: 'tool';
|
mode: "tool";
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
content: IChatToolCall;
|
content: IChatToolCall;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IChatTurnBlock = IChatTurnBlockThinking | IChatTurnBlockResponding | IChatTurnBlockTool;
|
export type IChatTurnBlock =
|
||||||
|
| IChatTurnBlockThinking
|
||||||
|
| IChatTurnBlockResponding
|
||||||
|
| IChatTurnBlockTool;
|
||||||
|
|
||||||
export interface IChatTurnStats {
|
export interface IChatTurnStats {
|
||||||
toolCallCount: number; // total number of tool functions called this turn
|
toolCallCount: number; // total number of tool functions called this turn
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user