diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/BotSharp.Plugin.ImageHandler.csproj b/src/Plugins/BotSharp.Plugin.ImageHandler/BotSharp.Plugin.ImageHandler.csproj
index f7310a8ad..493c82149 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/BotSharp.Plugin.ImageHandler.csproj
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/BotSharp.Plugin.ImageHandler.csproj
@@ -11,36 +11,39 @@
-
-
+
+
+
+
+
+
+
+
-
+
PreserveNewest
-
-
-
-
+
PreserveNewest
-
+
PreserveNewest
-
+
PreserveNewest
-
+
PreserveNewest
-
+
PreserveNewest
-
+
PreserveNewest
-
+
PreserveNewest
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs
index c7ec3a623..39c772d56 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs
@@ -4,7 +4,7 @@ namespace BotSharp.Plugin.ImageHandler.Functions;
public class ComposeImageFn : IFunctionCallback
{
- public string Name => "util-file-compose_images";
+ public string Name => "util-image-compose_images";
public string Indication => "Composing images";
private readonly IServiceProvider _services;
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs
index 317727710..d98f672e2 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs
@@ -4,7 +4,7 @@ namespace BotSharp.Plugin.ImageHandler.Functions;
public class EditImageFn : IFunctionCallback
{
- public string Name => "util-file-edit_image";
+ public string Name => "util-image-edit_image";
public string Indication => "Editing image";
private readonly IServiceProvider _services;
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/GenerateImageFn.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/GenerateImageFn.cs
index ccb3e43cc..12fa23006 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/GenerateImageFn.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/GenerateImageFn.cs
@@ -2,7 +2,7 @@ namespace BotSharp.Plugin.ImageHandler.Functions;
public class GenerateImageFn : IFunctionCallback
{
- public string Name => "util-file-generate_image";
+ public string Name => "util-image-generate_image";
public string Indication => "Generating image";
private readonly IServiceProvider _services;
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ReadImageFn.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ReadImageFn.cs
index 9a42f47d4..c88f7420e 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ReadImageFn.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ReadImageFn.cs
@@ -4,7 +4,7 @@ namespace BotSharp.Plugin.ImageHandler.Functions;
public class ReadImageFn : IFunctionCallback
{
- public string Name => "util-file-read_image";
+ public string Name => "util-image-read_image";
public string Indication => "Reading images";
private readonly IServiceProvider _services;
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Hooks/ImageHandlerUtilityHook.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Hooks/ImageHandlerUtilityHook.cs
index 906c739b8..6bd798469 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Hooks/ImageHandlerUtilityHook.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Hooks/ImageHandlerUtilityHook.cs
@@ -2,10 +2,10 @@ 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 COMPOSE_IMAGES_FN = "util-file-edit_images";
+ 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";
+ private const string COMPOSE_IMAGES_FN = "util-image-compose_images";
public void AddUtilities(List utilities)
{
@@ -13,7 +13,7 @@ public void AddUtilities(List utilities)
{
new AgentUtility
{
- Category = "file",
+ Category = "image",
Name = UtilityName.ImageReader,
Items = [
new UtilityItem
@@ -25,7 +25,7 @@ public void AddUtilities(List utilities)
},
new AgentUtility
{
- Category = "file",
+ Category = "image",
Name = UtilityName.ImageGenerator,
Items = [
new UtilityItem
@@ -37,7 +37,7 @@ public void AddUtilities(List utilities)
},
new AgentUtility
{
- Category = "file",
+ Category = "image",
Name = UtilityName.ImageEditor,
Items = [
new UtilityItem
@@ -49,7 +49,7 @@ public void AddUtilities(List utilities)
},
new AgentUtility
{
- Category = "file",
+ Category = "image",
Name = UtilityName.ImageComposer,
Items = [
new UtilityItem
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-compose_images.json b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-compose_images.json
similarity index 90%
rename from src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-compose_images.json
rename to src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-compose_images.json
index 443667e9f..38ba78398 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-compose_images.json
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-compose_images.json
@@ -1,5 +1,5 @@
{
- "name": "util-file-compose_images",
+ "name": "util-image-compose_images",
"description": "Use multiple input images to compose a new scene or transfer the style from one image to another",
"parameters": {
"type": "object",
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-edit_image.json b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-edit_image.json
similarity index 91%
rename from src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-edit_image.json
rename to src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-edit_image.json
index 84a32e566..5392c6f11 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-edit_image.json
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-edit_image.json
@@ -1,5 +1,5 @@
{
- "name": "util-file-edit_image",
+ "name": "util-image-edit_image",
"description": "If the user requests you editting or changing an image or a picture, you can call this function to edit an image.",
"parameters": {
"type": "object",
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-generate_image.json b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-generate_image.json
similarity index 90%
rename from src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-generate_image.json
rename to src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-generate_image.json
index ba96aef0d..014eb436b 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-generate_image.json
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-generate_image.json
@@ -1,5 +1,5 @@
{
- "name": "util-file-generate_image",
+ "name": "util-image-generate_image",
"description": "If the user requests you providing or generating image or picture, you can call this function to generate image.",
"parameters": {
"type": "object",
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-read_image.json b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-read_image.json
similarity index 96%
rename from src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-read_image.json
rename to src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-read_image.json
index 57a6d90da..7e1efae52 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-file-read_image.json
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/util-image-read_image.json
@@ -1,5 +1,5 @@
{
- "name": "util-file-read_image",
+ "name": "util-image-read_image",
"description": "If the user's request is related to describing or analyzing images, you can call this function to analyze images.",
"parameters": {
"type": "object",
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-compose_images.fn.liquid b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-compose_images.fn.liquid
deleted file mode 100644
index 30a1f3890..000000000
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-compose_images.fn.liquid
+++ /dev/null
@@ -1 +0,0 @@
-Please call util-file-compose_images if user wants to use multiple input images to compose a new scene or transfer the style from one image to another.
\ No newline at end of file
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-edit_image.fn.liquid b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-edit_image.fn.liquid
deleted file mode 100644
index 54b722c91..000000000
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-edit_image.fn.liquid
+++ /dev/null
@@ -1 +0,0 @@
-Please call util-file-edit_image if user wants to edit, change or modify an image in the conversation.
\ No newline at end of file
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-read_image.fn.liquid b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-read_image.fn.liquid
deleted file mode 100644
index c245d21dc..000000000
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-read_image.fn.liquid
+++ /dev/null
@@ -1,2 +0,0 @@
-Please call function util-file-read_image if user wants to describe an image or images.
-You can also call function util-file-read_image to access the image or images that user uploaded.
\ No newline at end of file
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-compose_images.fn.liquid b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-compose_images.fn.liquid
new file mode 100644
index 000000000..16870090c
--- /dev/null
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-compose_images.fn.liquid
@@ -0,0 +1 @@
+Please call util-image-compose_images if user wants to use multiple input images to compose a new scene or transfer the style from one image to another.
\ No newline at end of file
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-edit_image.fn.liquid b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-edit_image.fn.liquid
new file mode 100644
index 000000000..7ddaeb606
--- /dev/null
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-edit_image.fn.liquid
@@ -0,0 +1 @@
+Please call util-image-edit_image if user wants to edit, change or modify an image in the conversation.
\ No newline at end of file
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-generate_image.fn.liquid b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-generate_image.fn.liquid
similarity index 53%
rename from src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-generate_image.fn.liquid
rename to src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-generate_image.fn.liquid
index cf863dcf4..18a3192d6 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-file-generate_image.fn.liquid
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-generate_image.fn.liquid
@@ -1 +1 @@
-** When the user explicitly requests you to generate an image about a specific subject, call util-file-generate_image.
+** When the user explicitly requests you to generate an image about a specific subject, call util-image-generate_image.
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-read_image.fn.liquid b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-read_image.fn.liquid
new file mode 100644
index 000000000..1115ef155
--- /dev/null
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-image-read_image.fn.liquid
@@ -0,0 +1,2 @@
+Please call function util-image-read_image if user wants to describe an image or images.
+You can also call function util-image-read_image to access the image or images that user uploaded.
\ No newline at end of file