Constructor
# new ChatService(investigationId, userId)
Constructor
Parameters:
| Name | Type | Description |
|---|---|---|
investigationId |
ObjectId
|
null
|
The investigation ID. |
userId |
ObjectId
|
null
|
The user ID. |
Classes
Members
Methods
# async continueConversation(data) → {Promise.<IChatResponseFormat>}
Continues a conversation with the AI Assistant.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
IConversationData
|
Data containing the necessary parameters to continue the conversation. |
If something goes wrong when requesting the LLM.
Error
The AI Assistant's response.
Promise.<IChatResponseFormat>
# async startConversation() → {Promise.<(object|boolean)>}
Starts a conversation with the AI Assistant.
If something goes wrong when requesting the LLM.
Error
The chat history if it exists; otherwise, a greeting message.
Promise.<(object|boolean)>