2024-01-10 14:18:59 +00:00
|
|
|
using BotSharp.Abstraction.Loggers;
|
2023-11-22 16:27:55 +00:00
|
|
|
using BotSharp.Plugin.ChatHub.Hooks;
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Plugin.ChatHub;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The dialogue channel connects users, AI assistants and customer service representatives.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ChatHubPlugin : IBotSharpPlugin
|
|
|
|
|
{
|
|
|
|
|
public string Name => "Chat Hub";
|
2023-12-26 03:16:41 +00:00
|
|
|
public string Description => "A communication channel connects agents and users in real-time.";
|
2024-01-06 22:24:22 +00:00
|
|
|
public string IconUrl => "https://media.zeemly.com/media/product/chatrandom.png";
|
|
|
|
|
|
2023-11-22 16:27:55 +00:00
|
|
|
public void RegisterDI(IServiceCollection services, IConfiguration config)
|
|
|
|
|
{
|
|
|
|
|
// Register hooks
|
|
|
|
|
services.AddScoped<IConversationHook, ChatHubConversationHook>();
|
2024-01-10 14:18:59 +00:00
|
|
|
services.AddScoped<IContentGeneratingHook, StreamingLogHook>();
|
2023-11-22 16:27:55 +00:00
|
|
|
}
|
|
|
|
|
}
|