Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleSearchTool

import type { GoogleSearchTool } from "https://googleapis.deno.dev/v1/ces:v1.ts";

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

interface GoogleSearchTool {
contextUrls?: string[];
description?: string;
excludeDomains?: string[];
name?: string;
preferredDomains?: string[];
}

§Properties

§
contextUrls?: string[]
[src]

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.

§
description?: string
[src]

Optional. Description of the tool's purpose.

§
excludeDomains?: string[]
[src]

Optional. List of domains to be excluded from the search results. Example: "example.com". A maximum of 2000 domains can be excluded.

§
name?: string
[src]

Required. The name of the tool.

§
preferredDomains?: string[]
[src]

Optional. Specifies domains to restrict search results to. Example: "example.com", "another.site". A maximum of 20 domains can be specified.