BotSharp icon indicating copy to clipboard operation
BotSharp copied to clipboard

Update the conversation status as closed

Open Oceania2018 opened this issue 2 years ago • 2 comments

A Conversation Hook needs to be implemented to update Conversation to the closed state.

The conversation will be closed in two situations:

  • When the conversation ends normally and is triggered by LLM,;
  • When the idle time is exceeded and the conversation is forcibly ended by the background;

No matter which situation is triggered, the OnConversationEnding method in IConversationHook will be called.

Therefore we can implement a new conversation hook here and update the conversation status to ConversationStatus.Closed in the OnConversationEnding function.

Oceania2018 avatar Nov 22 '23 16:11 Oceania2018

@Oceania2018 was this implemented?

wilson-dixon avatar Feb 12 '24 22:02 wilson-dixon

@waelhosn I think it's been implemented from this PR. Let me know if it's working or not.

Oceania2018 avatar Feb 13 '24 09:02 Oceania2018