Gemini Enterprise for Customer Experience v1 API - Class GoogleSearchTool (1.0.0-beta01)

public sealed class GoogleSearchTool : IMessage<GoogleSearchTool>, IEquatable<GoogleSearchTool>, IDeepCloneable<GoogleSearchTool>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class GoogleSearchTool.

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

Inheritance

object > GoogleSearchTool

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Constructors

GoogleSearchTool()

public GoogleSearchTool()

GoogleSearchTool(GoogleSearchTool)

public GoogleSearchTool(GoogleSearchTool other)
Parameter
Name Description
other GoogleSearchTool

Properties

ContextUrls

public RepeatedField<string> ContextUrls { get; }

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.

Property Value
Type Description
RepeatedFieldstring

Description

public string Description { get; set; }

Optional. Description of the tool's purpose.

Property Value
Type Description
string

ExcludeDomains

public RepeatedField<string> ExcludeDomains { get; }

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

Property Value
Type Description
RepeatedFieldstring

Name

public string Name { get; set; }

Required. The name of the tool.

Property Value
Type Description
string

PreferredDomains

public RepeatedField<string> PreferredDomains { get; }

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

Property Value
Type Description
RepeatedFieldstring

PromptConfig

public GoogleSearchTool.Types.PromptConfig PromptConfig { get; set; }

Optional. Prompt instructions passed to planner on how the search results should be processed for text and voice.

Property Value
Type Description
GoogleSearchToolTypesPromptConfig