BotSharp/src/Infrastructure/BotSharp.Abstraction/Realtime/IRealtimeHub.cs

20 lines
596 B
C#
Raw Normal View History

2025-03-06 21:10:17 +00:00
using BotSharp.Abstraction.MLTasks;
2025-02-07 22:40:57 +00:00
using BotSharp.Abstraction.Realtime.Models;
using System.Net.WebSockets;
namespace BotSharp.Abstraction.Realtime;
/// <summary>
/// Realtime hub interface. Manage the WebSocket connection include User, Agent and Model.
/// </summary>
public interface IRealtimeHub
{
2025-03-06 21:10:17 +00:00
RealtimeHubConnection HubConn { get; }
RealtimeHubConnection SetHubConnection(string conversationId);
IRealTimeCompletion Completer { get; }
IRealTimeCompletion SetCompleter(string provider);
Task Listen(WebSocket userWebSocket, Action<string> onUserMessageReceived);
2025-02-07 22:40:57 +00:00
}