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

18 lines
533 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;
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; }
2025-04-12 00:14:37 +00:00
Task ConnectToModel(Func<string, Task>? responseToUser = null, Func<string, Task>? init = null);
2025-02-07 22:40:57 +00:00
}