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

21 lines
600 B
C#
Raw Normal View History

2025-05-15 07:25:08 +00:00
using BotSharp.Abstraction.Hooks;
2025-04-02 15:35:03 +00:00
using BotSharp.Abstraction.MLTasks;
2025-05-19 19:54:40 +00:00
using BotSharp.Abstraction.Realtime.Models;
2025-04-02 15:35:03 +00:00
2025-03-12 19:03:38 +00:00
namespace BotSharp.Abstraction.Realtime;
2025-05-15 07:25:08 +00:00
public interface IRealtimeHook : IHookBase
2025-03-12 19:03:38 +00:00
{
2025-08-07 20:38:16 +00:00
Task OnModelReady(Agent agent, IRealTimeCompletion completer)
=> Task.CompletedTask;
string[] OnModelTranscriptPrompt(Agent agent)
=> [];
Task OnTranscribeCompleted(RoleDialogModel message, TranscriptionData data)
=> Task.CompletedTask;
Task<bool> ShouldReconnect(RealtimeHubConnection conn, RoleDialogModel message)
=> Task.FromResult(false);
2025-03-12 19:03:38 +00:00
}