Update ConversationService.cs

This commit is contained in:
Aden 2024-11-28 18:31:20 +08:00 committed by GitHub
parent ad27596959
commit 45bf766ef8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,12 +173,14 @@ public partial class ConversationService : IConversationService
var state = _services.GetRequiredService<IConversationStateService>();
var channel = state.GetState("channel");
var channelId = state.GetState("channel_id");
var userId = state.GetState("current_user_id");
var sess = new Conversation
{
Id = _conversationId,
Channel = channel,
ChannelId = channelId,
AgentId = agentId
AgentId = agentId,
UserId = userId,
};
converation = await NewConversation(sess);
}