Resource: Session
External session proto definition.
JSON representation |
---|
{ "name": string, "displayName": string, "state": enum ( |
Fields | |
---|---|
name |
Immutable. Fully qualified name |
displayName |
Optional. The display name of the session. This field is used to identify the session in the UI. By default, the display name is the first turn query text in the session. |
state |
The state of the session. |
userPseudoId |
A unique identifier for tracking users. |
turns[] |
Turns. |
labels[] |
Optional. The labels for the session. This field is used to identify the session in the UI, for example, research assist sessions can set the label to "research assist" to display different icon in the session list. |
startTime |
Output only. The time the session started. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime |
Output only. The time the session finished. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
isPinned |
Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list. |
State
Enumeration of the state of the session.
Enums | |
---|---|
STATE_UNSPECIFIED |
State is unspecified. |
IN_PROGRESS |
The session is currently open. |
Turn
Represents a turn, including a query from the user and a answer from service.
JSON representation |
---|
{ "query": { object ( |
Fields | |
---|---|
query |
The user query. |
answer |
The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. |
assistAnswer |
Output only. The resource name of the Assistant answer to the user query. Only set if an assist call (/assist API call) happened in this turn. Format: |
detailedAnswer |
Output only. In |
detailedAssistAnswer |
Output only. In |
Query
Defines a user inputed query.
JSON representation |
---|
{ "queryId": string, // Union field |
Fields | |
---|---|
queryId |
Unique Id for the query. |
Union field content . Query content. content can be only one of the following: |
|
text |
Plain text. |
Methods |
|
---|---|
|
Creates a Session. |
|
Deletes a Session. |
|
Gets a Session. |
|
Lists all Sessions by their parent DataStore . |
|
Updates a Session. |