Resource: Example
An example represents a sample conversation between the user and the agent(s).
| JSON representation |
|---|
{
"name": string,
"displayName": string,
"description": string,
"entryAgent": string,
"messages": [
{
object ( |
| Fields | |
|---|---|
name |
Identifier. The unique identifier of the example. Format: |
displayName |
Required. Display name of the example. |
description |
Optional. Human-readable description of the example. |
entryAgent |
Optional. The agent that initially handles the conversation. If not specified, the example represents a conversation that is handled by the root agent. Format: |
messages[] |
Optional. The collection of messages that make up the conversation. |
createTime |
Output only. Timestamp when the example was created. 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. Timestamp when the example was last updated. 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: |
invalid |
Output only. The example may become invalid if referencing resources are deleted. Invalid examples will not be used as few-shot examples. |
etag |
Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes. |
Methods |
|
|---|---|
|
Creates a new example in the given app. |
|
Deletes the specified example. |
|
Gets details of the specified example. |
|
Lists examples in the given app. |
|
Updates the specified example. |