Resource: CannedQuery
Canned query resource of Assistant
. It represents a short-cut to a predefined conversation start.
JSON representation |
---|
{ "name": string, "displayName": string, "defaultTexts": { object ( |
Fields | |
---|---|
name |
Immutable. Resource name of the canned query. Format: It must be a UTF-8 encoded string with a length limit of 1024 characters. |
displayName |
The display name of the canned query. It must be a UTF-8 encoded string with a length limit of 128 characters. |
defaultTexts |
Required. The default (non-localized) values for the text attributes. |
localizedTexts |
Optional. The translations of the text attributes. The keys should be BCP-47 language codes. |
activationBehavior |
The behaviour when this canned query is activated. |
requiredCapabilities[] |
Optional. The capabilities the Assistant needs to have to use this canned query. |
icon |
The name of the icon from the Google Symbols library for the canned query. |
enabled |
Whether this canned query is enabled. |
googleDefined |
Output only. Whether this is a Google-defined, read-only canned query. |
CannedQueryTexts
The text pieces for the canned query, which can be localized.
JSON representation |
---|
{ "title": string, "description": string, // Union field |
Fields | |
---|---|
title |
Required. The title that is for the end user. |
description |
Required. The description that is for the end user. |
Union field start_message . The message the canned query will use as conversation start. start_message can be only one of the following: |
|
suggestedUserQuery |
Deprecated. Use |
assistantMessage |
The canned text for the first turn for the assistant. This will be displayed to the user, likely asking for input (e.g., "What kind of content would you like to create? (e.g., email, article, presentation)"). |
userQuery |
The canned text for the first turn for the user. |
ActivationBehavior
The behaviour when this canned query is activated.
Enums | |
---|---|
ACTIVATION_BEHAVIOR_UNSPECIFIED |
Default value, should not be used. Default is NEW_SESSION . |
NEW_SESSION |
When using this canned query, a new assistant session is started. |
NEW_RESEARCH_ASSISTANT_SESSION |
When using this canned query, a new research assistant session is started. |
AssistantCapability
Capability of an assistant needed to use this canned query.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field capability . Capability of an assistant, either an action or a tool. capability can be only one of the following: |
|
actionName |
The name of the action that the Assistant needs to have set up to use this canned query. |
Methods |
|
---|---|
|
Creates a CannedQuery . |
|
Deletes a CannedQuery . |
|
Gets a CannedQuery . |
|
Lists all CannedQuery s under an Assistant . |
|
Lists the CannedQueryUserView s for all active CannedQuery s. |
|
Updates a CannedQuery . |