abacusai.chat_session
Module Contents
Classes
A chat session with Abacus Chat. |
- class abacusai.chat_session.ChatSession(client, answer=None, availableIndices=None, chatSessionId=None, projectId=None, createdAt=None, chatHistory={})
Bases:
abacusai.return_class.AbstractApiClass
A chat session with Abacus Chat.
- Parameters:
client (ApiClient) – An authenticated API Client instance
answer (str) – The response from the chatbot
availableIndices (list[dict]) – A list of indices that the chatbot has access to
chatSessionId (str) – The chat session id
projectId (str) – The project id associated with the chat session
createdAt (str) – The timestamp at which the chat session was created
chatHistory (ChatMessage) – The chat history for the conversation
- __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: