2024-06-06 18:30:39 +00:00
|
|
|
using BotSharp.Core.Files.Hooks;
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Core.Files;
|
|
|
|
|
|
|
|
|
|
public class FilePlugin : IBotSharpPlugin
|
|
|
|
|
{
|
|
|
|
|
public string Id => "6a8473c0-04eb-4346-be32-24755ce5973d";
|
|
|
|
|
|
|
|
|
|
public string Name => "File";
|
|
|
|
|
|
2024-06-06 19:57:41 +00:00
|
|
|
public string Description => "Provides file analysis.";
|
2024-06-06 18:30:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
public void RegisterDI(IServiceCollection services, IConfiguration config)
|
|
|
|
|
{
|
|
|
|
|
services.AddScoped<IBotSharpFileService, BotSharpFileService>();
|
|
|
|
|
|
|
|
|
|
services.AddScoped<IAgentHook, AttachmentProcessingHook>();
|
2024-06-26 03:38:01 +00:00
|
|
|
services.AddScoped<IAgentToolHook, FileAnalyzerToolHook>();
|
2024-06-06 18:30:39 +00:00
|
|
|
}
|
|
|
|
|
}
|