# Class GoogleSearchTool (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

    GoogleSearchTool(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a tool to perform Google web searches for
grounding. See
<https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search>.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Required. The name of the tool. |
| `description` | `str` Optional. Description of the tool's purpose. |
| `context_urls` | `MutableSequence[str]` Optional. Content will be fetched directly from these URLs for context and grounding. Example: "https://example.com/path.html". A maximum of 20 URLs are allowed. |
| `preferred_domains` | `MutableSequence[str]` Optional. Specifies domains to restrict search results to. Example: "example.com", "another.site". A maximum of 20 domains can be specified. |
| `exclude_domains` | `MutableSequence[str]` Optional. List of domains to be excluded from the search results. Example: "example.com". A maximum of 2000 domains can be excluded. |
| `prompt_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.GoogleSearchTool.PromptConfig` Optional. Prompt instructions passed to planner on how the search results should be processed for text and voice. |

## Classes

### PromptConfig

    PromptConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Prompt settings used by the model when processing or
summarizing the google search results.