mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
refactor: remove XML tool description for web_search (sunsetting XML)
This commit is contained in:
parent
6afb46dd93
commit
fbc6a32f65
2 changed files with 0 additions and 30 deletions
|
|
@ -26,7 +26,6 @@ import { getCodebaseSearchDescription } from "./codebase-search"
|
|||
import { getUpdateTodoListDescription } from "./update-todo-list"
|
||||
import { getRunSlashCommandDescription } from "./run-slash-command"
|
||||
import { getGenerateImageDescription } from "./generate-image"
|
||||
import { getWebSearchDescription } from "./web-search"
|
||||
|
||||
// Map of tool names to their description functions
|
||||
const toolDescriptionMap: Record<string, (args: ToolArgs) => string | undefined> = {
|
||||
|
|
@ -49,7 +48,6 @@ const toolDescriptionMap: Record<string, (args: ToolArgs) => string | undefined>
|
|||
update_todo_list: (args) => getUpdateTodoListDescription(args),
|
||||
run_slash_command: () => getRunSlashCommandDescription(),
|
||||
generate_image: (args) => getGenerateImageDescription(args),
|
||||
web_search: () => getWebSearchDescription(),
|
||||
}
|
||||
|
||||
export function getToolDescriptionsForMode(
|
||||
|
|
@ -168,7 +166,6 @@ export {
|
|||
getCodebaseSearchDescription,
|
||||
getRunSlashCommandDescription,
|
||||
getGenerateImageDescription,
|
||||
getWebSearchDescription,
|
||||
}
|
||||
|
||||
// Export native tool definitions (JSON schema format for OpenAI-compatible APIs)
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
export function getWebSearchDescription(): string {
|
||||
return `## web_search
|
||||
Description: Request to perform a web search and retrieve relevant information from the internet. This tool allows you to search for current information, documentation, tutorials, and other web content that may be helpful for completing tasks. Use this when you need up-to-date information that may not be in your training data.
|
||||
Parameters:
|
||||
- query: (required) The search query string. Be specific and include relevant keywords for better results.
|
||||
Usage:
|
||||
<web_search>
|
||||
<query>Your search query here</query>
|
||||
</web_search>
|
||||
|
||||
Example: Searching for Chrome extension development documentation
|
||||
<web_search>
|
||||
<query>Chrome extension development manifest v3 documentation</query>
|
||||
</web_search>
|
||||
|
||||
Example: Searching for a specific error message
|
||||
<web_search>
|
||||
<query>"TypeError: Cannot read property" React hooks solution</query>
|
||||
</web_search>
|
||||
|
||||
Example: Searching for current library versions or updates
|
||||
<web_search>
|
||||
<query>latest React 18 features and breaking changes</query>
|
||||
</web_search>
|
||||
|
||||
Note: This tool performs a web search and returns summarized results. The quality of results depends on the specificity of your query. Use quotation marks for exact phrase matching and include relevant context for better results.`
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue