Class AssistantConversationService

java.lang.Object
ch.tocco.nice2.optional.aiassistant.impl.conversation.AssistantConversationService

@Component public class AssistantConversationService extends Object
Stores assistant conversations per user (tagged with the function that owns them) and adds the persisted conversation history as context to each new question. Each conversation is isolated: only the messages of the conversation being continued are sent to the function. The actual answer is produced by the AssistantFunction the conversation belongs to.