abacusai.chat_session
Module Contents
Classes
A chat session with Abacus AI Chat. |
- class abacusai.chat_session.ChatSession(client, answer=None, chatSessionId=None, projectId=None, name=None, createdAt=None, status=None, aiBuildingInProgress=None, chatHistory={}, nextAiBuildingTask={})
Bases:
abacusai.return_class.AbstractApiClass
A chat session with Abacus AI Chat.
- Parameters:
client (ApiClient) – An authenticated API Client instance
answer (str) – The response from the chatbot
chatSessionId (str) – The chat session id
projectId (str) – The project id associated with the chat session
name (str) – The name of the chat session
createdAt (str) – The timestamp at which the chat session was created
status (str) – The status of the chat sessions
aiBuildingInProgress (bool) – Whether the AI building is in progress or not
chatHistory (ChatMessage) – The chat history for the conversation
nextAiBuildingTask (AiBuildingTask) – The next AI building task for the chat session
- __repr__()
Return repr(self).
- to_dict()
Get a dict representation of the parameters in this class
- Returns:
The dict value representation of the class parameters
- Return type:
- get()
Gets a chat session from Abacus AI Chat.
- Parameters:
chat_session_id (str) – Unique ID of the chat session.
- Returns:
The chat session with Abacus AI Chat
- Return type:
- delete_chat_message(message_index)
Deletes a message in a chat session and its associated response.
- Parameters:
message_index (int) – The index of the chat message within the UI.