Resource: Session
External session proto definition.
JSON representation |
---|
{ "name": string, "state": enum ( |
Fields | |
---|---|
name |
Immutable. Fully qualified name |
state |
The state of the session. |
user |
A unique identifier for tracking users. |
turns[] |
Turns. |
start |
Output only. The time the session started. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
end |
Output only. The time the session finished. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
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. |
detailed |
Output only. In |
Query
Defines a user inputed query.
JSON representation |
---|
{ "queryId": string, // Union field |
Fields | |
---|---|
query |
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. |