summaryrefslogtreecommitdiff
path: root/docs/tools/web-search.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tools/web-search.md')
-rw-r--r--docs/tools/web-search.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/tools/web-search.md b/docs/tools/web-search.md
new file mode 100644
index 00000000..da2e3315
--- /dev/null
+++ b/docs/tools/web-search.md
@@ -0,0 +1,20 @@
+# Google Web Search Tool
+
+This document describes the `google_web_search` tool.
+
+## `google_web_search`
+
+- **Purpose:** Performs a web search using Google Search (via the Gemini API) and returns a summary of the results with sources. This tool is useful for finding up-to-date information on the internet.
+- **Arguments:**
+ - `query` (string, required): The search query.
+- **Behavior:**
+ - The tool sends the query to the Gemini API, which performs a Google Search.
+ - It returns a generated response based on the search results, complete with citations and a list of sources.
+- **Examples:**
+ - Getting information on a topic:
+ ```
+ google_web_search(query="latest advancements in AI-powered code generation")
+ ```
+- **Important Notes:**
+ - The tool returns a processed summary, not a raw list of search results.
+ - The response includes citations to the sources used to generate the summary.