18 lines
533 B
C#
18 lines
533 B
C#
using BotSharp.Abstraction.MLTasks;
|
|
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
|
|
{
|
|
RealtimeHubConnection HubConn { get; }
|
|
RealtimeHubConnection SetHubConnection(string conversationId);
|
|
|
|
IRealTimeCompletion Completer { get; }
|
|
|
|
Task ConnectToModel(Func<string, Task>? responseToUser = null, Func<string, Task>? init = null);
|
|
}
|