mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 01:07:46 +00:00
🚀 Add Todo Write Tool for Task Management and Progress Tracking (#478)
This commit is contained in:
@@ -491,7 +491,7 @@ export function hasCycleInSchema(schema: object): boolean {
|
||||
return traverse(schema, new Set<string>(), new Set<string>());
|
||||
}
|
||||
|
||||
export type ToolResultDisplay = string | FileDiff;
|
||||
export type ToolResultDisplay = string | FileDiff | TodoResultDisplay;
|
||||
|
||||
export interface FileDiff {
|
||||
fileDiff: string;
|
||||
@@ -508,6 +508,15 @@ export interface DiffStat {
|
||||
user_removed_lines: number;
|
||||
}
|
||||
|
||||
export interface TodoResultDisplay {
|
||||
type: 'todo_list';
|
||||
todos: Array<{
|
||||
id: string;
|
||||
content: string;
|
||||
status: 'pending' | 'in_progress' | 'completed';
|
||||
}>;
|
||||
}
|
||||
|
||||
export interface ToolEditConfirmationDetails {
|
||||
type: 'edit';
|
||||
title: string;
|
||||
|
||||
Reference in New Issue
Block a user