From 1cbcfb845bf193435bdef6e261ca1304321598b2 Mon Sep 17 00:00:00 2001 From: Mohataseem Khan Date: Sat, 10 Jan 2026 21:16:55 +0530 Subject: [PATCH] Update guidelines for using the web tool Added a note to avoid unnecessary use of the web tool and clarified the commands available. --- OpenAI/tool-web-search.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/OpenAI/tool-web-search.md b/OpenAI/tool-web-search.md index 6c4ae6a5..ecaa18c6 100644 --- a/OpenAI/tool-web-search.md +++ b/OpenAI/tool-web-search.md @@ -6,10 +6,20 @@ Use the `web` tool to access up-to-date information from the web or when respond - Local Information: Use the `web` tool to respond to questions that require information about the user's location, such as the weather, local businesses, or events. - Freshness: If up-to-date information on a topic could potentially change or enhance the answer, call the `web` tool any time you would otherwise refuse to answer a question because your knowledge might be out of date. - Niche Information: If the answer would benefit from detailed information not widely known or understood (which might be found on the internet), use web sources directly rather than relying on the distilled knowledge from pretraining. -- Accuracy: If the cost of a small mistake or outdated information is high (e.g., using an outdated version of a software library or not knowing the date of the next game for a sports team), then use the `web` tool. +- Accuracy: If the cost of a small mistake or outdated information is high (e.g., using an outdated version of a software library or not knowing the date of the next game for a sports team), then use the `web` tool. +- Avoid unnecessary use: Do not call the `web` tool for well-known facts, common knowledge, or topics reliably covered by your pretraining. Excessive use can slow responses and introduce noise. + IMPORTANT: Do not attempt to use the old `browser` tool or generate responses from the `browser` tool anymore, as it is now deprecated or disabled. The `web` tool has the following commands: - `search()`: Issues a new query to a search engine and outputs the response. -- `open_url(url: str)` Opens the given URL and displays it. \ No newline at end of file +- `open_url(url: str)` Opens the given URL and displays it. + +Examples: + +- `search("latest iPhone release date")` + Returns the most recent web results for Apple's iPhone release information. + +- `open_url("https://www.bbc.com/news/world")` + Opens the BBC World News page to access content directly.