Skip to content

Commit 2e45a66

Browse files
author
Jicheng Lu
committed
set agent id
1 parent 8de7e69 commit 2e45a66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugins/BotSharp.Plugin.ChatHub/ChatStreamMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Azure;
21
using BotSharp.Abstraction.Realtime;
32
using BotSharp.Abstraction.Realtime.Models;
43
using Microsoft.AspNetCore.Http;
@@ -52,6 +51,7 @@ private async Task HandleWebSocket(IServiceProvider services, string agentId, st
5251
{
5352
var hub = services.GetRequiredService<IRealtimeHub>();
5453
var conn = hub.SetHubConnection(conversationId);
54+
conn.CurrentAgentId = agentId;
5555

5656
// load conversation and state
5757
var convService = services.GetRequiredService<IConversationService>();

0 commit comments

Comments
 (0)