- Resource: Assistant
- WebGroundingType
- ActionList
- ActionInfo
- ToolList
- ToolInfo
- CustomerPolicy
- BannedPhrase
- BannedPhraseMatchType
- Methods
Resource: Assistant
Discovery Engine Assistant resource.
JSON representation |
---|
{ "name": string, "displayName": string, "description": string, "googleSearchGroundingEnabled": boolean, "webGroundingType": enum ( |
Fields | |
---|---|
name |
Immutable. Resource name of the assistant. Format: It must be a UTF-8 encoded string with a length limit of 1024 characters. |
displayName |
Required. The assistant display name. It must be a UTF-8 encoded string with a length limit of 128 characters. |
description |
Optional. description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant. |
googleSearchGroundingEnabled |
Optional. Deprecated. Use |
webGroundingType |
Optional. The type of web grounding to use. LINT.ThenChange(//depot/google3/google/cloud/discoveryengine/v1main/widgetConfig.proto) |
enabledActions |
Optional. Deprecated: will be replaced by |
enabledTools |
Optional. Note: not implemented yet. Use |
customerPolicy |
Optional. Customer policy for the assistant. |
WebGroundingType
LINT.IfChange The type of web grounding to use.
Enums | |
---|---|
WEB_GROUNDING_TYPE_UNSPECIFIED |
Default, unspecified setting. This is the same as disabled. |
WEB_GROUNDING_TYPE_DISABLED |
Web grounding is disabled. |
WEB_GROUNDING_TYPE_GOOGLE_SEARCH |
Grounding with Google Search is enabled. |
WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH |
Grounding with Enterprise Web Search is enabled. |
ActionList
Deprecated: Will be replaced by ToolList
instead. The enabled actions on a connector
JSON representation |
---|
{
"actionInfo": [
{
object ( |
Fields | |
---|---|
actionInfo[] |
The list of actions with corresponding action information. |
ActionInfo
Deprecated: Will be replaced by ToolInfo
instead. Information to identify an action.
JSON representation |
---|
{ "actionName": string, "actionDisplayName": string } |
Fields | |
---|---|
actionName |
The name of the action as defined by DataConnectorService.QueryAvailableActions. |
actionDisplayName |
The display name of the action. |
ToolList
The enabled tools on a connector
JSON representation |
---|
{
"toolInfo": [
{
object ( |
Fields | |
---|---|
toolInfo[] |
The list of tools with corresponding tool information. |
ToolInfo
Information to identify a tool.
JSON representation |
---|
{ "toolName": string, "toolDisplayName": string } |
Fields | |
---|---|
toolName |
The name of the tool as defined by DataConnectorService.QueryAvailableActions. Note: it's using |
toolDisplayName |
The display name of the tool. |
CustomerPolicy
Customer-defined policy for the assistant.
JSON representation |
---|
{
"bannedPhrases": [
{
object ( |
Fields | |
---|---|
bannedPhrases[] |
Optional. List of banned phrases. |
BannedPhrase
Definition of a customer-defined banned phrase. A banned phrase is not allowed to appear in the user query or the LLM response, or else the answer will be refused.
JSON representation |
---|
{
"phrase": string,
"matchType": enum ( |
Fields | |
---|---|
phrase |
Required. The raw string content to be banned. |
matchType |
Optional. Match type for the banned phrase. |
ignoreDiacritics |
Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when matching banned phrases. For example, "cafe" would match "café". |
BannedPhraseMatchType
The matching method for the banned phrase.
Enums | |
---|---|
BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED |
Defaults to SIMPLE_STRING_MATCH. |
SIMPLE_STRING_MATCH |
The banned phrase matches if it is found anywhere in the text as an exact substring. |
WORD_BOUNDARY_STRING_MATCH |
Banned phrase only matches if the pattern found in the text is surrounded by word delimiters. The phrase itself may still contain word delimiters. |
Methods |
|
---|---|
|
Creates an Assistant . |
|
Deletes an Assistant . |
|
Gets an Assistant . |
|
Lists all Assistant s under an Engine . |
|
Updates an Assistant |