2025-03-06 18:01:43 +00:00
|
|
|
using BotSharp.Abstraction.Plugins;
|
2025-03-06 21:10:17 +00:00
|
|
|
using BotSharp.Core.Realtime.Hooks;
|
2025-03-06 18:01:43 +00:00
|
|
|
using BotSharp.Core.Realtime.Services;
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Core.Realtime;
|
|
|
|
|
|
|
|
|
|
public class RealtimePlugin : IBotSharpPlugin
|
|
|
|
|
{
|
|
|
|
|
public string Id => "68c1c737-5c21-49de-b141-cd5c8d9bf978";
|
|
|
|
|
public string Name => "Realtime Hub";
|
|
|
|
|
public string? IconUrl => "https://thumbs.dreamstime.com/b/microphone-icon-sound-waves-voice-command-recording-message-sign-349007898.jpg";
|
|
|
|
|
public string Description => "Build low-latency, multi-modal experiences with the Realtime API.";
|
|
|
|
|
|
|
|
|
|
public void RegisterDI(IServiceCollection services, IConfiguration config)
|
|
|
|
|
{
|
|
|
|
|
services.AddScoped<IRealtimeHub, RealtimeHub>();
|
2025-03-06 21:10:17 +00:00
|
|
|
services.AddScoped<IConversationHook, RealtimeConversationHook>();
|
2025-03-06 18:01:43 +00:00
|
|
|
}
|
|
|
|
|
}
|