feat: enhance websearch functionality with reasoning-based approach
- Changed use_websearch default from False to True for all tools - Redesigned websearch behavior to focus on reasoning rather than direct search - Tools now analyze when web searches would be helpful and recommend specific searches - Updated all tool-specific websearch instructions to be more thoughtful - Gemini will now suggest what Claude should search for and explain why Key improvements: - Web search is now enabled by default for better documentation awareness - Instead of performing searches, Gemini reasons about what searches would help - Provides specific search recommendations for Claude to execute - More collaborative approach between Gemini and Claude This change makes the tools more intelligent about when external information would be valuable while keeping Claude in control of actual web searches. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -71,7 +71,7 @@ class ChatTool(BaseTool):
|
||||
"use_websearch": {
|
||||
"type": "boolean",
|
||||
"description": "Enable web search for documentation, best practices, and current information. Particularly useful for: brainstorming sessions, architectural design discussions, exploring industry best practices, working with specific frameworks/technologies, researching solutions to complex problems, or when current documentation and community insights would enhance the analysis.",
|
||||
"default": False,
|
||||
"default": True,
|
||||
},
|
||||
},
|
||||
"required": ["prompt"],
|
||||
@@ -123,7 +123,7 @@ class ChatTool(BaseTool):
|
||||
# Add web search instruction if enabled
|
||||
websearch_instruction = self.get_websearch_instruction(
|
||||
request.use_websearch,
|
||||
"""Specifically search for:
|
||||
"""When discussing topics, consider if searches for these would help:
|
||||
- Documentation for any technologies or concepts mentioned
|
||||
- Current best practices and patterns
|
||||
- Recent developments or updates
|
||||
|
||||
Reference in New Issue
Block a user