diff --git a/src/Plugins/BotSharp.Plugin.FileHandler/BotSharp.Plugin.FileHandler.csproj b/src/Plugins/BotSharp.Plugin.FileHandler/BotSharp.Plugin.FileHandler.csproj
index 888b1896..410616b6 100644
--- a/src/Plugins/BotSharp.Plugin.FileHandler/BotSharp.Plugin.FileHandler.csproj
+++ b/src/Plugins/BotSharp.Plugin.FileHandler/BotSharp.Plugin.FileHandler.csproj
@@ -28,10 +28,6 @@
-
-
-
-
diff --git a/src/Plugins/BotSharp.Plugin.FileHandler/FileHandlerPlugin.cs b/src/Plugins/BotSharp.Plugin.FileHandler/FileHandlerPlugin.cs
index a8ecac6d..51fa33f1 100644
--- a/src/Plugins/BotSharp.Plugin.FileHandler/FileHandlerPlugin.cs
+++ b/src/Plugins/BotSharp.Plugin.FileHandler/FileHandlerPlugin.cs
@@ -7,8 +7,8 @@ public class FileHandlerPlugin : IBotSharpPlugin
{
public string Id => "65be5aee-48df-4ff8-a50a-05c8bcd2a793";
public string Name => "File Handler";
- public string Description => "AI reads files, such as image, pdf, excel";
- public string IconUrl => "https://lirp.cdn-website.com/6f8d6d8a/dms3rep/multi/opt/API_Icon-640w.png";
+ public string Description => "AI handles files.";
+ public string IconUrl => "https://cdn-icons-png.flaticon.com/512/2567/2567656.png";
public string[] AgentIds => [];
public void RegisterDI(IServiceCollection services, IConfiguration config)
@@ -21,5 +21,4 @@ public class FileHandlerPlugin : IBotSharpPlugin
services.AddScoped();
}
-
}
\ No newline at end of file
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Hooks/ImageHandlerUtilityHook.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Hooks/ImageHandlerUtilityHook.cs
index 825fc027..1a0f7b38 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Hooks/ImageHandlerUtilityHook.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Hooks/ImageHandlerUtilityHook.cs
@@ -2,26 +2,14 @@ namespace BotSharp.Plugin.ImageHandler.Hooks;
public class ImageHandlerUtilityHook : IAgentUtilityHook
{
- private const string READ_IMAGE_FN = "util-file-read_image";
- private const string GENERATE_IMAGE_FN = "util-file-generate_image";
- private const string EDIT_IMAGE_FN = "util-file-edit_image";
+ private const string READ_IMAGE_FN = "util-image-read_image";
+ private const string GENERATE_IMAGE_FN = "util-image-generate_image";
+ private const string EDIT_IMAGE_FN = "util-image-edit_image";
public void AddUtilities(List utilities)
{
var items = new List
{
- new AgentUtility
- {
- Category = "image",
- Name = UtilityName.ImageGenerator,
- Items = [
- new UtilityItem
- {
- FunctionName = GENERATE_IMAGE_FN,
- TemplateName = $"{GENERATE_IMAGE_FN}.fn"
- }
- ]
- },
new AgentUtility
{
Category = "image",
@@ -35,6 +23,18 @@ public class ImageHandlerUtilityHook : IAgentUtilityHook
]
},
new AgentUtility
+ {
+ Category = "image",
+ Name = UtilityName.ImageGenerator,
+ Items = [
+ new UtilityItem
+ {
+ FunctionName = GENERATE_IMAGE_FN,
+ TemplateName = $"{GENERATE_IMAGE_FN}.fn"
+ }
+ ]
+ },
+ new AgentUtility
{
Category = "image",
Name = UtilityName.ImageEditor,
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/ImageHandlerPlugin.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/ImageHandlerPlugin.cs
index e2ed8cf4..1a626834 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/ImageHandlerPlugin.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/ImageHandlerPlugin.cs
@@ -4,12 +4,12 @@ using Microsoft.Extensions.Configuration;
namespace BotSharp.Plugin.ImageHandler;
-public class FileHandlerPlugin : IBotSharpPlugin
+public class ImageHandlerPlugin : IBotSharpPlugin
{
public string Id => "bac8bbf3-da91-4c92-98d8-db14d68e75ae";
public string Name => "Image Handler";
public string Description => "AI handles images.";
- public string IconUrl => "https://lirp.cdn-website.com/6f8d6d8a/dms3rep/multi/opt/API_Icon-640w.png";
+ public string IconUrl => "https://cdn-icons-png.flaticon.com/512/8002/8002135.png";
public string[] AgentIds => [];
public void RegisterDI(IServiceCollection services, IConfiguration config)
@@ -23,5 +23,4 @@ public class FileHandlerPlugin : IBotSharpPlugin
services.AddScoped();
services.AddScoped();
}
-
}
\ No newline at end of file
diff --git a/src/WebStarter/appsettings.json b/src/WebStarter/appsettings.json
index e5794bb0..b067b052 100644
--- a/src/WebStarter/appsettings.json
+++ b/src/WebStarter/appsettings.json
@@ -431,24 +431,6 @@
},
"FileHandler": {
- "Image": {
- "Reading": {
- "LlmProvider": "openai",
- "LlmModel": "gpt-5-mini",
- "ImageDetailLevel": "auto"
- },
- "Generation": {
- "LlmProvider": "openai",
- "LlmModel": "gpt-image-1"
- },
- "Edit": {
- "LlmProvider": "openai",
- "LlmModel": "gpt-image-1",
- "ImageConverter": {
- "Provider": "file-handler"
- }
- }
- },
"Pdf": {
"Reading": {
"LlmProvider": "google-ai",
@@ -462,7 +444,24 @@
}
},
- "Image"
+ "ImageHandler": {
+ "Reading": {
+ "LlmProvider": "openai",
+ "LlmModel": "gpt-5-mini",
+ "ImageDetailLevel": "auto"
+ },
+ "Generation": {
+ "LlmProvider": "openai",
+ "LlmModel": "gpt-image-1"
+ },
+ "Edit": {
+ "LlmProvider": "openai",
+ "LlmModel": "gpt-image-1",
+ "ImageConverter": {
+ "Provider": "image-handler"
+ }
+ }
+ },
"AudioHandler": {
"Audio": {