2023-08-30 22:40:45 +00:00
|
|
|
using BotSharp.Abstraction.Agents;
|
|
|
|
|
using BotSharp.Plugin.PizzaBot.Hooks;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Plugin.PizzaBot;
|
|
|
|
|
|
|
|
|
|
public class PizzaBotPlugin : IBotSharpPlugin
|
|
|
|
|
{
|
2023-11-13 16:47:27 +00:00
|
|
|
public string Name => "Pizza AI Assistant";
|
2023-11-16 18:20:43 +00:00
|
|
|
public string Description => "An example of an enterprise-grade AI Chatbot.";
|
2024-01-06 22:24:22 +00:00
|
|
|
public string IconUrl => "https://cdn-icons-png.flaticon.com/512/6978/6978255.png";
|
|
|
|
|
public bool WithAgent => true;
|
2023-11-16 18:20:43 +00:00
|
|
|
|
2023-08-30 22:40:45 +00:00
|
|
|
public void RegisterDI(IServiceCollection services, IConfiguration config)
|
|
|
|
|
{
|
|
|
|
|
// Register hooks
|
|
|
|
|
services.AddScoped<IAgentHook, PizzaBotAgentHook>();
|
|
|
|
|
}
|
|
|
|
|
}
|