ChatSession
Properties
Name |
Type |
Description |
Notes |
|---|---|---|---|
id |
str |
||
name |
str |
[optional] |
|
collection_id |
str |
[optional] |
|
collection_name |
str |
[optional] |
|
prompt_template_id |
str |
[optional] |
|
latest_message_content |
str |
[optional] |
|
updated_at |
datetime |
||
workspace |
str |
[optional] |
|
status |
str |
Status of the chat session |
[optional] |
expiry_date |
datetime |
An expiry date for the chat session |
[optional] |
inactivity_interval |
int |
Inactivity interval in days |
[optional] |
keep_forever |
bool |
Whether the chat session is preserved from auto-archival |
[optional] [default to False] |
username |
str |
Username of the session owner. |
[optional] |
archived_at |
datetime |
Timestamp when the chat session was archived |
[optional] |
source |
str |
How the session was created — ‘user’ for user-initiated, ‘schedule’ for scheduled-task-triggered. |
[optional] |
Example
from h2ogpte.rest_async.models.chat_session import ChatSession
# TODO update the JSON string below
json = "{}"
# create an instance of ChatSession from a JSON string
chat_session_instance = ChatSession.from_json(json)
# print the JSON string representation of the object
print(ChatSession.to_json())
# convert the object into a dict
chat_session_dict = chat_session_instance.to_dict()
# create an instance of ChatSession from a dict
chat_session_from_dict = ChatSession.from_dict(chat_session_dict)