summaryrefslogtreecommitdiff
path: root/docs/tools/web-search.md
blob: da2e33156b3c3cdf2f123f0ff72cee20196cf407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.