BotSharp/src/Plugins/BotSharp.Plugin.ChatHub/ChatHubPlugin.cs

25 lines
942 B
C#
Raw Normal View History

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
{
2024-01-12 22:20:22 +00:00
public string Id => "6e52d42d-1e23-406b-8599-36af36c83209";
2023-11-22 16:27:55 +00:00
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>();
2024-01-24 23:47:57 +00:00
services.AddScoped<IConversationHook, StreamingLogHook>();
2023-11-22 16:27:55 +00:00
}
}