update research mode, add search web and fetch url content

This commit is contained in:
duanfuxiang
2025-03-15 08:17:10 +08:00
parent 05b1302a6c
commit 9a5e5f3880
12 changed files with 553 additions and 7 deletions

View File

@@ -63,4 +63,17 @@ export type SearchAndReplaceToolArgs = {
regexFlags?: string;
}[];
}
export type ToolArgs = ReadFileToolArgs | WriteToFileToolArgs | InsertContentToolArgs | SearchAndReplaceToolArgs | ListFilesToolArgs | RegexSearchFilesToolArgs | SemanticSearchFilesToolArgs;
export type SearchWebToolArgs = {
type: 'search_web';
query: string;
finish?: boolean;
}
export type FetchUrlsContentToolArgs = {
type: 'fetch_urls_content';
urls: string[];
finish?: boolean;
}
export type ToolArgs = ReadFileToolArgs | WriteToFileToolArgs | InsertContentToolArgs | SearchAndReplaceToolArgs | ListFilesToolArgs | RegexSearchFilesToolArgs | SemanticSearchFilesToolArgs | SearchWebToolArgs | FetchUrlsContentToolArgs;