web search support.

This commit is contained in:
2026-02-21 23:17:42 -05:00
parent d7d0583b4e
commit 813297c099
2 changed files with 290 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ MAX_TOOL_ROUNDS = 10
_ANTHROPIC_CHUNK_SIZE = 180_000
_SYSTEM_PROMPT = (
"You are a helpful coding assistant with access to a PowerShell tool and MCP file tools (read_file, list_directory, search_files, get_file_summary). "
"You are a helpful coding assistant with access to a PowerShell tool and MCP tools (file access: read_file, list_directory, search_files, get_file_summary, web access: web_search, fetch_url). "
"When asked to create or edit files, prefer targeted edits over full rewrites. "
"Always explain what you are doing before invoking the tool.\n\n"
"When writing or rewriting large files (especially those containing quotes, backticks, or special characters), "
@@ -791,3 +791,4 @@ def send(
elif _provider == "anthropic":
return _send_anthropic(md_content, user_message, base_dir, file_items)
raise ValueError(f"unknown provider: {_provider}")