Skip to content

Commit c57ca81

Browse files
authored
Merge pull request #781 from iceljc/master
refine utility name
2 parents bf0baf4 + 8b7f804 commit c57ca81

File tree

82 files changed

+553
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+553
-163
lines changed

src/Infrastructure/BotSharp.Abstraction/Agents/AgentHookBase.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,14 @@ public virtual void OnAgentUtilityLoaded(Agent agent)
116116
return ([], []);
117117
}
118118

119+
var prefix = "util-";
119120
utilities = utilities?.Where(x => !string.IsNullOrEmpty(x.Name) && !x.Disabled)?.ToList() ?? [];
120121
var functionNames = utilities.SelectMany(x => x.Functions)
121-
.Where(x => !string.IsNullOrEmpty(x.Name))
122+
.Where(x => !string.IsNullOrEmpty(x.Name) && x.Name.StartsWith(prefix))
122123
.Select(x => x.Name)
123124
.Distinct().ToList();
124125
var templateNames = utilities.SelectMany(x => x.Templates)
125-
.Where(x => !string.IsNullOrEmpty(x.Name))
126+
.Where(x => !string.IsNullOrEmpty(x.Name) && x.Name.StartsWith(prefix))
126127
.Select(x => x.Name)
127128
.Distinct().ToList();
128129

src/Plugins/BotSharp.Plugin.AudioHandler/BotSharp.Plugin.AudioHandler.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\handle_audio_request.json" />
28-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\handle_audio_request.fn.liquid" />
27+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-audio-handle_audio_request.json" />
28+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-audio-handle_audio_request.fn.liquid" />
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\handle_audio_request.fn.liquid">
32+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-audio-handle_audio_request.fn.liquid">
3333
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3434
</Content>
35-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\handle_audio_request.json">
35+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-audio-handle_audio_request.json">
3636
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3737
</Content>
3838
</ItemGroup>

src/Plugins/BotSharp.Plugin.AudioHandler/Enums/UtilityName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ namespace BotSharp.Plugin.AudioHandler.Enums;
22

33
public class UtilityName
44
{
5-
public const string AudioHandler = "audio-handler";
5+
public const string AudioHandler = "audio.audio-handler";
66
}

src/Plugins/BotSharp.Plugin.AudioHandler/Functions/HandleAudioRequestFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace BotSharp.Plugin.AudioHandler.Functions;
55

66
public class HandleAudioRequestFn : IFunctionCallback
77
{
8-
public string Name => "handle_audio_request";
8+
public string Name => "util-audio-handle_audio_request";
99
public string Indication => "Handling audio request";
1010

1111
private readonly IServiceProvider _serviceProvider;

src/Plugins/BotSharp.Plugin.AudioHandler/Hooks/AudioHandlerUtilityHook.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ namespace BotSharp.Plugin.AudioHandler.Hooks;
22

33
public class AudioHandlerUtilityHook : IAgentUtilityHook
44
{
5-
private const string HANDLER_AUDIO = "handle_audio_request";
5+
private const string PREFIX = "util-audio-";
6+
private const string HANDLER_AUDIO = $"{PREFIX}handle_audio_request";
67

78
public void AddUtilities(List<AgentUtility> utilities)
89
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "handle_audio_request",
2+
"name": "util-audio-handle_audio_request",
33
"description": "If the user requests to transcribe or summarize audio content, you need to call this function to transcribe the audio content to raw texts or provide sunmmary based on raw texts transcribed from audio",
44
"parameters": {
55
"type": "object",

src/Plugins/BotSharp.Plugin.AudioHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/handle_audio_request.fn.liquid

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please call util-audio-handle_audio_request if user wants to transcribe or summarize the content of a audio file.

src/Plugins/BotSharp.Plugin.EmailHandler/BotSharp.Plugin.EmailHandler.csproj

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,23 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\handle_email_reader.json" />
15-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\handle_email_sender.json" />
16-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\handle_email_sender.fn.liquid" />
17-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\handle_email_reader.fn.liquid" />
18-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\select_attachment_prompt.liquid" />
14+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-email-handle_email_reader.json" />
15+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-email-handle_email_sender.json" />
16+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-email-handle_email_sender.fn.liquid" />
17+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-email-handle_email_reader.fn.liquid" />
1918
</ItemGroup>
2019

2120
<ItemGroup>
22-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\handle_email_reader.json">
21+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-email-handle_email_reader.json">
2322
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2423
</Content>
25-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\handle_email_sender.json">
24+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-email-handle_email_sender.json">
2625
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2726
</Content>
28-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\handle_email_sender.fn.liquid">
27+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-email-handle_email_sender.fn.liquid">
2928
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3029
</Content>
31-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\handle_email_reader.fn.liquid">
30+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-email-handle_email_reader.fn.liquid">
3231
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3332
</Content>
3433
</ItemGroup>
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
1+
namespace BotSharp.Plugin.EmailHandler.Enums;
62

7-
namespace BotSharp.Plugin.EmailHandler.Enums
3+
public class UtilityName
84
{
9-
public class UtilityName
10-
{
11-
public const string EmailHandler = "email-handler";
12-
}
5+
public const string EmailHandler = "email.email-handler";
136
}

src/Plugins/BotSharp.Plugin.EmailHandler/Functions/HandleEmailReaderFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BotSharp.Plugin.EmailReader.Functions;
77

88
public class HandleEmailReaderFn : IFunctionCallback
99
{
10-
public string Name => "handle_email_reader";
10+
public string Name => "util-email-handle_email_reader";
1111
public readonly static string PROMPT_SUMMARY = "Provide a text summary of the following content.";
1212
public readonly static string RICH_CONTENT_SUMMARIZE = "is_email_summarize: true. messageId";
1313
public readonly static string RICH_CONTENT_READ_EMAIL = "Read the email by messageId";

src/Plugins/BotSharp.Plugin.EmailHandler/Functions/HandleEmailSenderFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace BotSharp.Plugin.EmailHandler.Functions;
66

77
public class HandleEmailSenderFn : IFunctionCallback
88
{
9-
public string Name => "handle_email_sender";
9+
public string Name => "util-email-handle_email_sender";
1010
public string Indication => "Handling email send request";
1111

1212
private readonly IServiceProvider _services;

src/Plugins/BotSharp.Plugin.EmailHandler/Hooks/EmailHandlerUtilityHook.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ namespace BotSharp.Plugin.EmailHandler.Hooks;
55

66
public class EmailHandlerUtilityHook : IAgentUtilityHook
77
{
8-
private static string EMAIL_READER_FN = "handle_email_reader";
9-
private static string EMAIL_SENDER_FN = "handle_email_sender";
8+
private static string PREFIX = "util-email-";
9+
private static string EMAIL_READER_FN = $"{PREFIX}handle_email_reader";
10+
private static string EMAIL_SENDER_FN = $"{PREFIX}handle_email_sender";
1011

1112
public void AddUtilities(List<AgentUtility> utilities)
1213
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "handle_email_reader",
2+
"name": "util-email-handle_email_reader",
33
"description": "If the user wants to read messages from email inbox or user wants to mark an email message as read.If message id is provided, capture it but it is not required. Then call this function to read the email message or mark any message as read.",
44
"parameters": {
55
"type": "object",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "handle_email_sender",
2+
"name": "util-email-handle_email_sender",
33
"description": "If the user requests to send an email with or without attachments or files, you need to capture the email content and the recipient email address. If the user explicitly enter email subject use the same if not intelligently capture the email subject from the content. Then call this function to send out email.",
44
"parameters": {
55
"type": "object",

src/Plugins/BotSharp.Plugin.EmailHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/handle_email_reader.fn.liquid

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please call util-email-handle_email_reader if user wants to read messages from email inbox.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
** Please take a look at the conversation and decide whether user wants to send email.
22
** If yes, then decide whether user wants to send email with files/attachments/images or not.
33
** If user does not want to send email explicitly or only upload images or files, please do not respond anything email related message.
4-
** Please call handle_email_sender if user wants to send email.
4+
** Please call util-email-handle_email_sender if user wants to send email.

src/Plugins/BotSharp.Plugin.ExcelHandler/BotSharp.Plugin.ExcelHandler.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\handle_excel_request.json" />
17-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\handle_excel_request.fn.liquid" />
16+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-excel-handle_excel_request.json" />
17+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-excel-handle_excel_request.fn.liquid" />
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\handle_excel_request.json">
21+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-excel-handle_excel_request.json">
2222
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2323
</Content>
24-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\handle_excel_request.fn.liquid">
24+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-excel-handle_excel_request.fn.liquid">
2525
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2626
</Content>
2727
</ItemGroup>

src/Plugins/BotSharp.Plugin.ExcelHandler/Enums/UtilityName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ namespace BotSharp.Plugin.ExcelHandler.Enums;
22

33
public class UtilityName
44
{
5-
public const string ExcelHandler = "excel-handler";
5+
public const string ExcelHandler = "excel.excel-handler";
66
}

src/Plugins/BotSharp.Plugin.ExcelHandler/Functions/HandleExcelRequestFn.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using BotSharp.Abstraction.Files.Enums;
33
using BotSharp.Abstraction.Files.Models;
44
using BotSharp.Abstraction.Files.Utilities;
5-
using BotSharp.Plugin.ExcelHandler.Helpers.Sqlite;
65
using BotSharp.Plugin.ExcelHandler.Models;
76
using BotSharp.Plugin.ExcelHandler.Services;
87
using NPOI.SS.UserModel;
@@ -12,7 +11,7 @@ namespace BotSharp.Plugin.ExcelHandler.Functions;
1211

1312
public class HandleExcelRequestFn : IFunctionCallback
1413
{
15-
public string Name => "handle_excel_request";
14+
public string Name => "util-excel-handle_excel_request";
1615
public string Indication => "Handling excel request";
1716

1817
private readonly IServiceProvider _serviceProvider;

src/Plugins/BotSharp.Plugin.ExcelHandler/Hooks/ExcelHandlerUtilityHook.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ namespace BotSharp.Plugin.ExcelHandler.Hooks;
22

33
public class ExcelHandlerUtilityHook : IAgentUtilityHook
44
{
5-
private const string HANDLER_EXCEL = "handle_excel_request";
5+
private static string PREFIX = "util-excel-";
6+
private static string HANDLER_EXCEL = $"{PREFIX}handle_excel_request";
67

78
public void AddUtilities(List<AgentUtility> utilities)
89
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "handle_excel_request",
2+
"name": "util-excel-handle_excel_request",
33
"description": "If the user requests to read/load data from excel/csv files, you need to call this function to load the data from excel/csv files and transform into JSON format data",
44
"parameters": {
55
"type": "object",

src/Plugins/BotSharp.Plugin.ExcelHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/handle_excel_request.fn.liquid

Lines changed: 0 additions & 2 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Please call util-excel-handle_excel_request if user wants to load the data from a excel/csv file.
2+
util-excel-handle_excel_request can NOT generate excel/csv.

src/Plugins/BotSharp.Plugin.FileHandler/BotSharp.Plugin.FileHandler.csproj

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,43 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\edit_image.json" />
15-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\generate_image.json" />
16-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\read_image.json" />
17-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\read_pdf.json" />
18-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\edit_image.fn.liquid" />
19-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\generate_image.fn.liquid" />
20-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\read_image.fn.liquid" />
21-
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\read_pdf.fn.liquid" />
2214
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\select_edit_image_prompt.liquid" />
2315
</ItemGroup>
16+
17+
<ItemGroup>
18+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-file-generate_image.json" />
19+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-file-generate_image.fn.liquid" />
20+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-file-read_image.json" />
21+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-file-read_image.fn.liquid" />
22+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-file-read_pdf.json" />
23+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-file-read_pdf.fn.liquid" />
24+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-file-edit_image.json" />
25+
<None Remove="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-file-edit_image.fn.liquid" />
26+
</ItemGroup>
2427

2528
<ItemGroup>
26-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\generate_image.json">
29+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-file-generate_image.json">
2730
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2831
</Content>
29-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\read_image.json">
32+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-file-generate_image.fn.liquid">
3033
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3134
</Content>
32-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\generate_image.fn.liquid">
35+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-file-read_image.json">
3336
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3437
</Content>
35-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\read_image.fn.liquid">
38+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-file-read_image.fn.liquid">
3639
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3740
</Content>
38-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\read_pdf.json">
41+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-file-read_pdf.json">
3942
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4043
</Content>
41-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\read_pdf.fn.liquid">
44+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-file-read_pdf.fn.liquid">
4245
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4346
</Content>
44-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\edit_image.json">
47+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\functions\util-file-edit_image.json">
4548
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4649
</Content>
47-
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\edit_image.fn.liquid">
50+
<Content Include="data\agents\6745151e-6d46-4a02-8de4-1c4f21c7da95\templates\util-file-edit_image.fn.liquid">
4851
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4952
</Content>
5053
</ItemGroup>

src/Plugins/BotSharp.Plugin.FileHandler/Enums/UtilityName.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ namespace BotSharp.Plugin.FileHandler.Enums;
22

33
public class UtilityName
44
{
5-
public const string ImageGenerator = "image-generator";
6-
public const string ImageReader = "image-reader";
7-
public const string ImageEditor = "image-editor";
8-
public const string PdfReader = "pdf-reader";
5+
public const string ImageGenerator = "file.image-generator";
6+
public const string ImageReader = "file.image-reader";
7+
public const string ImageEditor = "file.image-editor";
8+
public const string PdfReader = "file.pdf-reader";
99
}

src/Plugins/BotSharp.Plugin.FileHandler/Functions/EditImageFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace BotSharp.Plugin.FileHandler.Functions;
44

55
public class EditImageFn : IFunctionCallback
66
{
7-
public string Name => "edit_image";
7+
public string Name => "util-file-edit_image";
88
public string Indication => "Editing image";
99

1010
private readonly IServiceProvider _services;

src/Plugins/BotSharp.Plugin.FileHandler/Functions/GenerateImageFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace BotSharp.Plugin.FileHandler.Functions;
22

33
public class GenerateImageFn : IFunctionCallback
44
{
5-
public string Name => "generate_image";
5+
public string Name => "util-file-generate_image";
66
public string Indication => "Generating image";
77

88
private readonly IServiceProvider _services;

src/Plugins/BotSharp.Plugin.FileHandler/Functions/ReadImageFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace BotSharp.Plugin.FileHandler.Functions;
22

33
public class ReadImageFn : IFunctionCallback
44
{
5-
public string Name => "read_image";
5+
public string Name => "util-file-read_image";
66
public string Indication => "Reading images";
77

88
private readonly IServiceProvider _services;

src/Plugins/BotSharp.Plugin.FileHandler/Functions/ReadPdfFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace BotSharp.Plugin.FileHandler.Functions;
22

33
public class ReadPdfFn : IFunctionCallback
44
{
5-
public string Name => "read_pdf";
5+
public string Name => "util-file-read_pdf";
66
public string Indication => "Reading pdf";
77

88
private readonly IServiceProvider _services;

src/Plugins/BotSharp.Plugin.FileHandler/Hooks/FileHandlerUtilityHook.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ namespace BotSharp.Plugin.FileHandler.Hooks;
22

33
public class FileHandlerUtilityHook : IAgentUtilityHook
44
{
5-
private const string READ_IMAGE_FN = "read_image";
6-
private const string READ_PDF_FN = "read_pdf";
7-
private const string GENERATE_IMAGE_FN = "generate_image";
8-
private const string EDIT_IMAGE_FN = "edit_image";
5+
private const string READ_IMAGE_FN = "util-file-read_image";
6+
private const string READ_PDF_FN = "util-file-read_pdf";
7+
private const string GENERATE_IMAGE_FN = "util-file-generate_image";
8+
private const string EDIT_IMAGE_FN = "util-file-edit_image";
99

1010
public void AddUtilities(List<AgentUtility> utilities)
1111
{

src/Plugins/BotSharp.Plugin.FileHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/functions/read_image.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)