- Resource: CompanionAgent
- SkillConfig
- GuidanceSkillConfig
- GuidanceInstruction
- Action
- TriggerEvent
- KnowledgeSource
- TranslationSkillConfig
- SkillTriggerEvent
- Methods
Resource: CompanionAgent
Companion agent.
| JSON representation |
|---|
{ "name": string, "createTime": string, "updateTime": string, "toolsetTools": [ { object ( |
| Fields | |
|---|---|
name |
Identifier. The unique identifier of the companion agent. Format: |
createTime |
Output only. Creation time of this companion agent. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Update time of this companion agent. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
toolsetTools[] |
Optional. List of CES toolset specs that the companion agent can choose from. |
cesToolSpecs[] |
Optional. List of CES tool specs that the companion agent can choose from. |
displayName |
Optional. Display name for the companion agent. Character limit is 63. |
description |
Optional. Description for the companion agent. |
skillConfigs[] |
Optional. List of skill configs for the companion agent. Allows at most one instance of each |
SkillConfig
Skill configuration for the companion agent.
| JSON representation |
|---|
{ "skillTriggeringEvent": enum ( |
| Fields | |
|---|---|
skillTriggeringEvent |
Optional. The event that should trigger the skill. |
| Each SkillConfig will be one of the following specific skill configs. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
guidanceSkillConfig |
Optional. Guidance skill configuration. |
translationSkillConfig |
Optional. Translation skill configuration. |
| End of mutually exclusive fields. | |
GuidanceSkillConfig
Guidance skill configuration.
| JSON representation |
|---|
{ "guidanceInstructions": [ { object ( |
| Fields | |
|---|---|
guidanceInstructions[] |
Optional. Customized instructions for guidance. |
overarchingGuidance |
Optional. This is specific additional guidance that can configured by the user. |
knowledgeSource |
Optional. Knowledge source configuration for guidance. |
GuidanceInstruction
Guidance instruction for the companion agent.
| JSON representation |
|---|
{ "displayName": string, "displayDetails": string, "condition": string, "actions": [ { object ( |
| Fields | |
|---|---|
displayName |
Optional. Display name for the instruction. This name should be unique within the companion agent. |
displayDetails |
Optional. The detailed description of this instruction. |
condition |
Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty. |
actions[] |
Optional. The action items that can be processed. |
triggerEvent |
Optional. Event that triggers the guidance instruction. If UNSPECIFIED, the instruction triggering will be the same as the skill's skillTriggeringEvent. |
disableSuggestedReply |
Optional. Whether to disable suggested reply generation for this instruction. When set to |
Action
Actions to take, including agent action and system action (automation).
| JSON representation |
|---|
{ "description": string } |
| Fields | |
|---|---|
description |
Required. Description of action item. It can be a agent action (e.g. "Send a message to the customer", "greet the customer") or system action (e.g. "Update the ticket", "Create a task", "cancel the order"). |
TriggerEvent
Event that triggers companion agent skills and guidance instructions.
| Enums | |
|---|---|
TRIGGER_EVENT_UNSPECIFIED |
Default value for TriggerEvent. For skillTriggeringEvent, UNSPECIFIED defaults to CUSTOMER_MESSAGE. For instruction triggerEvent, UNSPECIFIED defaults to the skill's skillTriggeringEvent. |
END_OF_UTTERANCE |
Triggers when each chat message or voice utterance ends. |
CUSTOMER_MESSAGE |
Triggers after each customer message. |
AGENT_MESSAGE |
Triggers after each agent message. |
KnowledgeSource
This type has no fields.
Knowledge source configuration for knowledge retrieval.
TranslationSkillConfig
Translation skill configuration for the companion agent.
| JSON representation |
|---|
{ "agentLanguageCode": string, "customerLanguageCode": string } |
| Fields | |
|---|---|
agentLanguageCode |
Optional. Target language code for the agent, in IETF BCP-47 format (e.g., "en-US"). |
customerLanguageCode |
Optional. Target language code for the customer, in IETF BCP-47 format (e.g., "es"). |
SkillTriggerEvent
The event that should trigger the skill.
| Enums | |
|---|---|
SKILL_TRIGGER_EVENT_UNSPECIFIED |
Default value for SkillTriggerEvent. |
END_OF_UTTERANCE |
Triggers when each chat message or voice utterance ends. |
CUSTOMER_MESSAGE |
Triggers after each customer message. |
AGENT_MESSAGE |
Triggers after each agent message. |
Methods |
|
|---|---|
|
Creates a companion agent. |
|
Deletes a companion agent. |
|
Gets a companion agent. |
|
Lists companion agents. |
|
Updates a companion agent. |