diff --git a/src/Infrastructure/BotSharp.Abstraction/Agents/Options/AgentCodeScriptUpdateOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Agents/Options/AgentCodeScriptUpdateOptions.cs
index 4b5e9e957..476e42fc9 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Agents/Options/AgentCodeScriptUpdateOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Agents/Options/AgentCodeScriptUpdateOptions.cs
@@ -1,4 +1,4 @@
-using BotSharp.Abstraction.Repositories.Models;
+using BotSharp.Abstraction.Repositories.Options;
namespace BotSharp.Abstraction.Agents.Options;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Chart/IBotSharpChartService.cs b/src/Infrastructure/BotSharp.Abstraction/Chart/IBotSharpChartService.cs
index 1a433e6fc..0e1cab8c4 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Chart/IBotSharpChartService.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Chart/IBotSharpChartService.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Chart.Models;
+using BotSharp.Abstraction.Chart.Options;
namespace BotSharp.Abstraction.Chart;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Chart/Models/ChartCodeOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Chart/Options/ChartCodeOptions.cs
similarity index 93%
rename from src/Infrastructure/BotSharp.Abstraction/Chart/Models/ChartCodeOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Chart/Options/ChartCodeOptions.cs
index beac046db..6827d1803 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Chart/Models/ChartCodeOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Chart/Options/ChartCodeOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Chart.Models;
+namespace BotSharp.Abstraction.Chart.Options;
public class ChartCodeOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Chart/Models/ChartDataOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Chart/Options/ChartDataOptions.cs
similarity index 80%
rename from src/Infrastructure/BotSharp.Abstraction/Chart/Models/ChartDataOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Chart/Options/ChartDataOptions.cs
index 249ec080c..f037c930a 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Chart/Models/ChartDataOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Chart/Options/ChartDataOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Chart.Models;
+namespace BotSharp.Abstraction.Chart.Options;
public class ChartDataOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/CodeInterpreter/Models/CodeInterpretResult.cs b/src/Infrastructure/BotSharp.Abstraction/CodeInterpreter/Models/CodeInterpretResult.cs
index 30b44a97c..2958cca81 100644
--- a/src/Infrastructure/BotSharp.Abstraction/CodeInterpreter/Models/CodeInterpretResult.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/CodeInterpreter/Models/CodeInterpretResult.cs
@@ -2,7 +2,7 @@ namespace BotSharp.Abstraction.CodeInterpreter.Models;
public class CodeInterpretResult
{
- public object Result { get; set; }
+ public string Result { get; set; } = string.Empty;
public bool Success { get; set; }
public string? ErrorMsg { get; set; }
}
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/Models/FileSelectContext.cs b/src/Infrastructure/BotSharp.Abstraction/Files/Contexts/FileSelectContext.cs
similarity index 89%
rename from src/Infrastructure/BotSharp.Abstraction/Files/Models/FileSelectContext.cs
rename to src/Infrastructure/BotSharp.Abstraction/Files/Contexts/FileSelectContext.cs
index 0a9f6f1dc..0ec5cd71a 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/Models/FileSelectContext.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/Contexts/FileSelectContext.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Files.Models;
+namespace BotSharp.Abstraction.Files.Contexts;
public class FileSelectContext
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/Converters/IImageConverter.cs b/src/Infrastructure/BotSharp.Abstraction/Files/Converters/IImageConverter.cs
index 3fa856e4a..e217cb521 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/Converters/IImageConverter.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/Converters/IImageConverter.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.Files.Options;
+
namespace BotSharp.Abstraction.Files.Converters;
public interface IImageConverter
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/IFileInstructService.cs b/src/Infrastructure/BotSharp.Abstraction/Files/IFileInstructService.cs
index f32ddaa74..bf72b86e6 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/IFileInstructService.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/IFileInstructService.cs
@@ -1,4 +1,5 @@
-using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Files.Options;
+using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.Abstraction.Files;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/IFileStorageService.cs b/src/Infrastructure/BotSharp.Abstraction/Files/IFileStorageService.cs
index 716b86e2d..a7b6908fb 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/IFileStorageService.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/IFileStorageService.cs
@@ -1,3 +1,4 @@
+using BotSharp.Abstraction.Files.Options;
using System.IO;
namespace BotSharp.Abstraction.Files;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/Models/FileLlmProcessOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Files/Options/FileLlmProcessOptions.cs
similarity index 74%
rename from src/Infrastructure/BotSharp.Abstraction/Files/Models/FileLlmProcessOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Files/Options/FileLlmProcessOptions.cs
index 16278d8a9..eafae5040 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/Models/FileLlmProcessOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/Options/FileLlmProcessOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Files.Models;
+namespace BotSharp.Abstraction.Files.Options;
public class FileLlmProcessOptions
{
@@ -27,11 +27,21 @@ public class FileLlmProcessOptions
///
public string? Instruction { get; set; }
+ ///
+ /// Message from user
+ ///
+ public string? UserMessage { get; set; }
+
///
/// Template name in Agent
///
public string? TemplateName { get; set; }
+ ///
+ /// The upstream where the file llm is invoked
+ ///
+ public string? InvokeFrom { get; set; }
+
///
/// Data that is used to render instruction
///
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/Models/ImageConvertOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Files/Options/ImageConvertOptions.cs
similarity index 75%
rename from src/Infrastructure/BotSharp.Abstraction/Files/Models/ImageConvertOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Files/Options/ImageConvertOptions.cs
index 2147521a6..f2b9dc2b6 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/Models/ImageConvertOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/Options/ImageConvertOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Files.Models;
+namespace BotSharp.Abstraction.Files.Options;
public class ImageConvertOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/Models/MessageFileOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Files/Options/MessageFileOptions.cs
similarity index 89%
rename from src/Infrastructure/BotSharp.Abstraction/Files/Models/MessageFileOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Files/Options/MessageFileOptions.cs
index a647ad611..a13e94fe9 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/Models/MessageFileOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/Options/MessageFileOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Files.Models;
+namespace BotSharp.Abstraction.Files.Options;
public class MessageFileOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/Models/SelectFileOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Files/Options/SelectFileOptions.cs
similarity index 96%
rename from src/Infrastructure/BotSharp.Abstraction/Files/Models/SelectFileOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Files/Options/SelectFileOptions.cs
index 4fa4946ee..2f8d348ea 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/Models/SelectFileOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/Options/SelectFileOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Files.Models;
+namespace BotSharp.Abstraction.Files.Options;
public class SelectFileOptions : LlmConfigBase
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/Proccessors/IFileLlmProcessor.cs b/src/Infrastructure/BotSharp.Abstraction/Files/Proccessors/IFileLlmProcessor.cs
index f21027216..ebc057927 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Files/Proccessors/IFileLlmProcessor.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/Proccessors/IFileLlmProcessor.cs
@@ -1,9 +1,12 @@
+using BotSharp.Abstraction.Files.Options;
+using BotSharp.Abstraction.Files.Responses;
+
namespace BotSharp.Abstraction.Files.Proccessors;
public interface IFileLlmProcessor
{
public string Provider { get; }
- Task GetFileLlmInferenceAsync(Agent agent, string text, IEnumerable files, FileLlmProcessOptions? options = null)
+ Task GetFileLlmInferenceAsync(Agent agent, string text, IEnumerable files, FileLlmProcessOptions? options = null)
=> throw new NotImplementedException();
}
diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/Responses/FileLlmInferenceResponse.cs b/src/Infrastructure/BotSharp.Abstraction/Files/Responses/FileLlmInferenceResponse.cs
new file mode 100644
index 000000000..fa11b1f9b
--- /dev/null
+++ b/src/Infrastructure/BotSharp.Abstraction/Files/Responses/FileLlmInferenceResponse.cs
@@ -0,0 +1,8 @@
+namespace BotSharp.Abstraction.Files.Responses;
+
+public class FileLlmInferenceResponse
+{
+ public string Result { get; set; } = string.Empty;
+ public bool Success { get; set; }
+ public string? ErrorMsg { get; set; }
+}
diff --git a/src/Infrastructure/BotSharp.Abstraction/Graph/IGraphDb.cs b/src/Infrastructure/BotSharp.Abstraction/Graph/IGraphDb.cs
index b15503e22..5f30d7500 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Graph/IGraphDb.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Graph/IGraphDb.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Graph.Models;
+using BotSharp.Abstraction.Graph.Options;
namespace BotSharp.Abstraction.Graph;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Graph/Models/GraphSearchOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Graph/Options/GraphSearchOptions.cs
similarity index 62%
rename from src/Infrastructure/BotSharp.Abstraction/Graph/Models/GraphSearchOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Graph/Options/GraphSearchOptions.cs
index 294aeea78..9b84a5e08 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Graph/Models/GraphSearchOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Graph/Options/GraphSearchOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Graph.Models;
+namespace BotSharp.Abstraction.Graph.Options;
public class GraphSearchOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/CodeInstructContext.cs b/src/Infrastructure/BotSharp.Abstraction/Instructs/Contexts/CodeInstructContext.cs
similarity index 72%
rename from src/Infrastructure/BotSharp.Abstraction/Instructs/Models/CodeInstructContext.cs
rename to src/Infrastructure/BotSharp.Abstraction/Instructs/Contexts/CodeInstructContext.cs
index 2be0368f1..d6dae85f6 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/CodeInstructContext.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Instructs/Contexts/CodeInstructContext.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Instructs.Models;
+namespace BotSharp.Abstraction.Instructs.Contexts;
public class CodeInstructContext
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructHook.cs b/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructHook.cs
index a7e3c1dfd..c275691b4 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructHook.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructHook.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Hooks;
+using BotSharp.Abstraction.Instructs.Contexts;
using BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructService.cs b/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructService.cs
index 30fc88ad7..ab457f138 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructService.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Instructs/IInstructService.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.Abstraction.Instructs;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/CodeInstructOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Instructs/Options/CodeInstructOptions.cs
similarity index 79%
rename from src/Infrastructure/BotSharp.Abstraction/Instructs/Models/CodeInstructOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Instructs/Options/CodeInstructOptions.cs
index 721266531..e40816099 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/CodeInstructOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Instructs/Options/CodeInstructOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Instructs.Models;
+namespace BotSharp.Abstraction.Instructs.Options;
public class CodeInstructOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/FileInstructOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Instructs/Options/FileInstructOptions.cs
similarity index 65%
rename from src/Infrastructure/BotSharp.Abstraction/Instructs/Models/FileInstructOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Instructs/Options/FileInstructOptions.cs
index a51db8821..a4f3a8589 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/FileInstructOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Instructs/Options/FileInstructOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Instructs.Models;
+namespace BotSharp.Abstraction.Instructs.Options;
public class FileInstructOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/InstructOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Instructs/Options/InstructOptions.cs
similarity index 94%
rename from src/Infrastructure/BotSharp.Abstraction/Instructs/Models/InstructOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Instructs/Options/InstructOptions.cs
index 90f208bde..cc5a76cd5 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Instructs/Models/InstructOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Instructs/Options/InstructOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Instructs.Models;
+namespace BotSharp.Abstraction.Instructs.Options;
public class InstructOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/KnowledgeFileFilter.cs b/src/Infrastructure/BotSharp.Abstraction/Knowledges/Filters/KnowledgeFileFilter.cs
similarity index 86%
rename from src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/KnowledgeFileFilter.cs
rename to src/Infrastructure/BotSharp.Abstraction/Knowledges/Filters/KnowledgeFileFilter.cs
index d275cf349..ec2504181 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/KnowledgeFileFilter.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Knowledges/Filters/KnowledgeFileFilter.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Knowledges.Models;
+namespace BotSharp.Abstraction.Knowledges.Filters;
public class KnowledgeFileFilter : Pagination
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Knowledges/Helpers/TextChopper.cs b/src/Infrastructure/BotSharp.Abstraction/Knowledges/Helpers/TextChopper.cs
index a3f88a56d..a3bec7e3c 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Knowledges/Helpers/TextChopper.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Knowledges/Helpers/TextChopper.cs
@@ -1,3 +1,4 @@
+using BotSharp.Abstraction.Knowledges.Options;
using System.Text.RegularExpressions;
namespace BotSharp.Abstraction.Knowledges.Helpers;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Knowledges/IKnowledgeService.cs b/src/Infrastructure/BotSharp.Abstraction/Knowledges/IKnowledgeService.cs
index a0c84031f..767615fe5 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Knowledges/IKnowledgeService.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Knowledges/IKnowledgeService.cs
@@ -1,5 +1,10 @@
using BotSharp.Abstraction.Graph.Models;
+using BotSharp.Abstraction.Graph.Options;
+using BotSharp.Abstraction.Knowledges.Filters;
+using BotSharp.Abstraction.Knowledges.Options;
+using BotSharp.Abstraction.Knowledges.Responses;
using BotSharp.Abstraction.VectorStorage.Models;
+using BotSharp.Abstraction.VectorStorage.Options;
namespace BotSharp.Abstraction.Knowledges;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/ChunkOption.cs b/src/Infrastructure/BotSharp.Abstraction/Knowledges/Options/ChunkOption.cs
similarity index 90%
rename from src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/ChunkOption.cs
rename to src/Infrastructure/BotSharp.Abstraction/Knowledges/Options/ChunkOption.cs
index 72c474bff..8da1a83eb 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/ChunkOption.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Knowledges/Options/ChunkOption.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Knowledges.Models;
+namespace BotSharp.Abstraction.Knowledges.Options;
public class ChunkOption
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/UploadKnowledgeResponse.cs b/src/Infrastructure/BotSharp.Abstraction/Knowledges/Responses/UploadKnowledgeResponse.cs
similarity index 89%
rename from src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/UploadKnowledgeResponse.cs
rename to src/Infrastructure/BotSharp.Abstraction/Knowledges/Responses/UploadKnowledgeResponse.cs
index a1dad405e..a173140e7 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/UploadKnowledgeResponse.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Knowledges/Responses/UploadKnowledgeResponse.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Knowledges.Models;
+namespace BotSharp.Abstraction.Knowledges.Responses;
public class UploadKnowledgeResponse
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/MLTasks/IRealTimeCompletion.cs b/src/Infrastructure/BotSharp.Abstraction/MLTasks/IRealTimeCompletion.cs
index 65ae2dbc1..29f461544 100644
--- a/src/Infrastructure/BotSharp.Abstraction/MLTasks/IRealTimeCompletion.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/MLTasks/IRealTimeCompletion.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Realtime.Models;
+using BotSharp.Abstraction.Realtime.Options;
namespace BotSharp.Abstraction.MLTasks;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Realtime/IRealtimeHub.cs b/src/Infrastructure/BotSharp.Abstraction/Realtime/IRealtimeHub.cs
index e75f46998..ed7db778e 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Realtime/IRealtimeHub.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Realtime/IRealtimeHub.cs
@@ -1,5 +1,6 @@
using BotSharp.Abstraction.MLTasks;
using BotSharp.Abstraction.Realtime.Models;
+using BotSharp.Abstraction.Realtime.Options;
namespace BotSharp.Abstraction.Realtime;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/Session/ChatSessionOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Realtime/Options/ChatSessionOptions.cs
similarity index 83%
rename from src/Infrastructure/BotSharp.Abstraction/Realtime/Models/Session/ChatSessionOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Realtime/Options/ChatSessionOptions.cs
index f4318fbb0..3235fce87 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/Session/ChatSessionOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Realtime/Options/ChatSessionOptions.cs
@@ -1,7 +1,7 @@
using Microsoft.Extensions.Logging;
using System.Text.Json;
-namespace BotSharp.Abstraction.Realtime.Models.Session;
+namespace BotSharp.Abstraction.Realtime.Options;
public class ChatSessionOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Realtime/Options/RealtimeOptions.cs
similarity index 87%
rename from src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Realtime/Options/RealtimeOptions.cs
index a720c88b0..316c657dc 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Realtime/Options/RealtimeOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Realtime.Models;
+namespace BotSharp.Abstraction.Realtime.Options;
public class RealtimeOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/Session/ChatSessionUpdate.cs b/src/Infrastructure/BotSharp.Abstraction/Realtime/Sessions/ChatSessionUpdate.cs
similarity index 70%
rename from src/Infrastructure/BotSharp.Abstraction/Realtime/Models/Session/ChatSessionUpdate.cs
rename to src/Infrastructure/BotSharp.Abstraction/Realtime/Sessions/ChatSessionUpdate.cs
index 7de2d0fdb..e692aacf4 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/Session/ChatSessionUpdate.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Realtime/Sessions/ChatSessionUpdate.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Realtime.Models.Session;
+namespace BotSharp.Abstraction.Realtime.Sessions;
public class ChatSessionUpdate
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeSession.cs b/src/Infrastructure/BotSharp.Abstraction/Realtime/Sessions/RealtimeSession.cs
similarity index 91%
rename from src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeSession.cs
rename to src/Infrastructure/BotSharp.Abstraction/Realtime/Sessions/RealtimeSession.cs
index 59f191c9e..256f4a23d 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeSession.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Realtime/Sessions/RealtimeSession.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Realtime.Models;
+namespace BotSharp.Abstraction.Realtime.Sessions;
public class RealtimeSession
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeModelSettings.cs b/src/Infrastructure/BotSharp.Abstraction/Realtime/Settings/RealtimeModelSettings.cs
similarity index 91%
rename from src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeModelSettings.cs
rename to src/Infrastructure/BotSharp.Abstraction/Realtime/Settings/RealtimeModelSettings.cs
index 14f5923fb..b66616fc7 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeModelSettings.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Realtime/Settings/RealtimeModelSettings.cs
@@ -1,4 +1,6 @@
-namespace BotSharp.Abstraction.Realtime.Models;
+using BotSharp.Abstraction.Realtime.Models;
+
+namespace BotSharp.Abstraction.Realtime.Settings;
public class RealtimeModelSettings
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs b/src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs
index 63ca3da3e..2b1f59224 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs
@@ -1,7 +1,8 @@
+using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.Loggers.Models;
using BotSharp.Abstraction.Plugins.Models;
using BotSharp.Abstraction.Repositories.Filters;
-using BotSharp.Abstraction.Repositories.Models;
+using BotSharp.Abstraction.Repositories.Options;
using BotSharp.Abstraction.Roles.Models;
using BotSharp.Abstraction.Shared;
using BotSharp.Abstraction.Statistics.Enums;
@@ -10,6 +11,7 @@
using BotSharp.Abstraction.Translation.Models;
using BotSharp.Abstraction.Users.Enums;
using BotSharp.Abstraction.Users.Models;
+using BotSharp.Abstraction.VectorStorage.Filters;
using BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.Repositories;
diff --git a/src/Infrastructure/BotSharp.Abstraction/Repositories/Models/AgentCodeScriptDbUpdateOptions.cs b/src/Infrastructure/BotSharp.Abstraction/Repositories/Options/AgentCodeScriptDbUpdateOptions.cs
similarity index 62%
rename from src/Infrastructure/BotSharp.Abstraction/Repositories/Models/AgentCodeScriptDbUpdateOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/Repositories/Options/AgentCodeScriptDbUpdateOptions.cs
index 9217445b9..5f6045129 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Repositories/Models/AgentCodeScriptDbUpdateOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Repositories/Options/AgentCodeScriptDbUpdateOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.Repositories.Models;
+namespace BotSharp.Abstraction.Repositories.Options;
public class AgentCodeScriptDbUpdateOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/SideCar/IConversationSideCar.cs b/src/Infrastructure/BotSharp.Abstraction/SideCar/IConversationSideCar.cs
index 81b0cf9c0..e561e6ae5 100644
--- a/src/Infrastructure/BotSharp.Abstraction/SideCar/IConversationSideCar.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/SideCar/IConversationSideCar.cs
@@ -1,4 +1,4 @@
-using BotSharp.Abstraction.SideCar.Models;
+using BotSharp.Abstraction.SideCar.Options;
namespace BotSharp.Abstraction.SideCar;
diff --git a/src/Infrastructure/BotSharp.Abstraction/SideCar/Models/SideCarOptions.cs b/src/Infrastructure/BotSharp.Abstraction/SideCar/Options/SideCarOptions.cs
similarity index 92%
rename from src/Infrastructure/BotSharp.Abstraction/SideCar/Models/SideCarOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/SideCar/Options/SideCarOptions.cs
index bc6609c09..4686a4a1b 100644
--- a/src/Infrastructure/BotSharp.Abstraction/SideCar/Models/SideCarOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/SideCar/Options/SideCarOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.SideCar.Models;
+namespace BotSharp.Abstraction.SideCar.Options;
public class SideCarOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionConfigFilter.cs b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Filters/VectorCollectionConfigFilter.cs
similarity index 86%
rename from src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionConfigFilter.cs
rename to src/Infrastructure/BotSharp.Abstraction/VectorStorage/Filters/VectorCollectionConfigFilter.cs
index 8b612bbaf..14d5126d4 100644
--- a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionConfigFilter.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Filters/VectorCollectionConfigFilter.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.VectorStorage.Models;
+namespace BotSharp.Abstraction.VectorStorage.Filters;
public class VectorCollectionConfigFilter
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/IVectorDb.cs b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/IVectorDb.cs
index 36e55c443..c862785a1 100644
--- a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/IVectorDb.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/IVectorDb.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.VectorStorage.Models;
+using BotSharp.Abstraction.VectorStorage.Options;
namespace BotSharp.Abstraction.VectorStorage;
diff --git a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionCreateOptions.cs b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorCollectionCreateOptions.cs
similarity index 77%
rename from src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionCreateOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorCollectionCreateOptions.cs
index 343bfb301..e66f08347 100644
--- a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionCreateOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorCollectionCreateOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.VectorStorage.Models;
+namespace BotSharp.Abstraction.VectorStorage.Options;
public class VectorCollectionCreateOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionIndexOptions.cs b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorCollectionIndexOptions.cs
similarity index 88%
rename from src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionIndexOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorCollectionIndexOptions.cs
index 809bbf6bb..1f49a0cff 100644
--- a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionIndexOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorCollectionIndexOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.VectorStorage.Models;
+namespace BotSharp.Abstraction.VectorStorage.Options;
public class VectorCollectionIndexOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorQueryOptions.cs b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorQueryOptions.cs
similarity index 78%
rename from src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorQueryOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorQueryOptions.cs
index 37bad6080..062c43cfb 100644
--- a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorQueryOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorQueryOptions.cs
@@ -1,4 +1,4 @@
-namespace BotSharp.Abstraction.VectorStorage.Models;
+namespace BotSharp.Abstraction.VectorStorage.Options;
public class VectorQueryOptions
{
diff --git a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorSearchOptions.cs b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorSearchOptions.cs
similarity index 87%
rename from src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorSearchOptions.cs
rename to src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorSearchOptions.cs
index ef888bb5f..1e0141a86 100644
--- a/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorSearchOptions.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Options/VectorSearchOptions.cs
@@ -1,6 +1,7 @@
using BotSharp.Abstraction.Knowledges.Enums;
+using BotSharp.Abstraction.VectorStorage.Models;
-namespace BotSharp.Abstraction.VectorStorage.Models;
+namespace BotSharp.Abstraction.VectorStorage.Options;
public class VectorSearchOptions
{
diff --git a/src/Infrastructure/BotSharp.Core.Realtime/RealtimePlugin.cs b/src/Infrastructure/BotSharp.Core.Realtime/RealtimePlugin.cs
index 5e1f1478e..ba30bf729 100644
--- a/src/Infrastructure/BotSharp.Core.Realtime/RealtimePlugin.cs
+++ b/src/Infrastructure/BotSharp.Core.Realtime/RealtimePlugin.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Plugins;
+using BotSharp.Abstraction.Realtime.Settings;
using BotSharp.Abstraction.Settings;
using BotSharp.Core.Realtime.Hooks;
using BotSharp.Core.Realtime.Services;
diff --git a/src/Infrastructure/BotSharp.Core.Realtime/Services/RealtimeHub.cs b/src/Infrastructure/BotSharp.Core.Realtime/Services/RealtimeHub.cs
index b0a088ccc..ab42a084d 100644
--- a/src/Infrastructure/BotSharp.Core.Realtime/Services/RealtimeHub.cs
+++ b/src/Infrastructure/BotSharp.Core.Realtime/Services/RealtimeHub.cs
@@ -3,6 +3,8 @@
using BotSharp.Abstraction.Hooks;
using BotSharp.Abstraction.Models;
using BotSharp.Abstraction.Options;
+using BotSharp.Abstraction.Realtime.Options;
+using BotSharp.Abstraction.Realtime.Settings;
using BotSharp.Abstraction.Routing.Enums;
using BotSharp.Core.Infrastructures;
diff --git a/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs b/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs
index 4b6364409..bb8bb5380 100644
--- a/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs
+++ b/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs
@@ -14,6 +14,7 @@ You may obtain a copy of the License at
limitations under the License.
******************************************************************************/
+using BotSharp.Abstraction.SideCar.Options;
using BotSharp.Core.Infrastructures;
namespace BotSharp.Core.SideCar.Services;
diff --git a/src/Infrastructure/BotSharp.Core.SideCar/Using.cs b/src/Infrastructure/BotSharp.Core.SideCar/Using.cs
index e391d790f..d48d41cc7 100644
--- a/src/Infrastructure/BotSharp.Core.SideCar/Using.cs
+++ b/src/Infrastructure/BotSharp.Core.SideCar/Using.cs
@@ -16,6 +16,6 @@
global using BotSharp.Abstraction.Models;
global using BotSharp.Abstraction.Routing;
global using BotSharp.Abstraction.SideCar;
-global using BotSharp.Abstraction.SideCar.Models;
+global using BotSharp.Abstraction.SideCar.Options;
global using BotSharp.Abstraction.Utilities;
global using BotSharp.Core.SideCar.Settings;
diff --git a/src/Infrastructure/BotSharp.Core/Evaluations/Services/EvaluatingService.Evaluate.cs b/src/Infrastructure/BotSharp.Core/Evaluations/Services/EvaluatingService.Evaluate.cs
index 8cdbc0da0..16e25b865 100644
--- a/src/Infrastructure/BotSharp.Core/Evaluations/Services/EvaluatingService.Evaluate.cs
+++ b/src/Infrastructure/BotSharp.Core/Evaluations/Services/EvaluatingService.Evaluate.cs
@@ -1,6 +1,6 @@
using BotSharp.Abstraction.Evaluations.Models;
using BotSharp.Abstraction.Instructs;
-using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
using BotSharp.Abstraction.Models;
namespace BotSharp.Core.Evaluations.Services;
diff --git a/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Audio.cs b/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Audio.cs
index 339cb0495..62a1356cc 100644
--- a/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Audio.cs
+++ b/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Audio.cs
@@ -1,4 +1,4 @@
-using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.Core.Files.Services;
diff --git a/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Image.cs b/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Image.cs
index 7ee3bc7f3..dbd9de90f 100644
--- a/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Image.cs
+++ b/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Image.cs
@@ -1,5 +1,6 @@
using BotSharp.Abstraction.Instructs;
using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
using System.IO;
namespace BotSharp.Core.Files.Services;
diff --git a/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Pdf.cs b/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Pdf.cs
index 723dd2ca5..2e4792222 100644
--- a/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Pdf.cs
+++ b/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.Pdf.cs
@@ -1,6 +1,7 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Instructs;
using BotSharp.Abstraction.Files.Converters;
+using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.Core.Files.Services;
diff --git a/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.SelectFile.cs b/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.SelectFile.cs
index 581832d73..c20ea7f36 100644
--- a/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.SelectFile.cs
+++ b/src/Infrastructure/BotSharp.Core/Files/Services/Instruct/FileInstructService.SelectFile.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.Files.Contexts;
+using BotSharp.Abstraction.Files.Options;
using BotSharp.Abstraction.MLTasks;
using BotSharp.Abstraction.Models;
using BotSharp.Abstraction.Templating;
diff --git a/src/Infrastructure/BotSharp.Core/Files/Services/Storage/LocalFileStorageService.Conversation.cs b/src/Infrastructure/BotSharp.Core/Files/Services/Storage/LocalFileStorageService.Conversation.cs
index 6050edcff..e4f5fc5c9 100644
--- a/src/Infrastructure/BotSharp.Core/Files/Services/Storage/LocalFileStorageService.Conversation.cs
+++ b/src/Infrastructure/BotSharp.Core/Files/Services/Storage/LocalFileStorageService.Conversation.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Files.Converters;
+using BotSharp.Abstraction.Files.Options;
using Microsoft.EntityFrameworkCore;
using System.IO;
diff --git a/src/Infrastructure/BotSharp.Core/Infrastructures/Websocket/AsyncWebsocketDataResultEnumerator.cs b/src/Infrastructure/BotSharp.Core/Infrastructures/Websocket/AsyncWebsocketDataResultEnumerator.cs
index 246bb55a3..7c0bded44 100644
--- a/src/Infrastructure/BotSharp.Core/Infrastructures/Websocket/AsyncWebsocketDataResultEnumerator.cs
+++ b/src/Infrastructure/BotSharp.Core/Infrastructures/Websocket/AsyncWebsocketDataResultEnumerator.cs
@@ -1,4 +1,3 @@
-using Microsoft.AspNetCore.Builder;
using System.Buffers;
using System.ClientModel;
using System.Net.WebSockets;
diff --git a/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs b/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs
index f869ce359..267f46335 100644
--- a/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs
+++ b/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs
@@ -1,7 +1,10 @@
using BotSharp.Abstraction.CodeInterpreter;
+using BotSharp.Abstraction.Files.Options;
using BotSharp.Abstraction.Files.Proccessors;
using BotSharp.Abstraction.Instructs;
+using BotSharp.Abstraction.Instructs.Contexts;
using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
using BotSharp.Abstraction.MLTasks;
using BotSharp.Abstraction.Models;
@@ -116,10 +119,12 @@ public async Task Execute(
Provider = provider,
Model = model,
Instruction = instruction,
+ UserMessage = message.Content,
TemplateName = templateName,
+ InvokeFrom = $"{nameof(InstructService)}.{nameof(Execute)}",
Data = state.GetStates().ToDictionary(x => x.Key, x => (object)x.Value)
});
- result = inference?.Content ?? string.Empty;
+ result = inference.Result.IfNullOrEmptyAs(string.Empty);
}
else
{
@@ -253,7 +258,7 @@ await hook.OnResponseGenerated(new InstructResponseModel
{
MessageId = message.MessageId,
Template = scriptName,
- Text = result?.Result?.ToString()
+ Text = result?.Result ?? result?.ErrorMsg
};
if (context?.Arguments != null)
diff --git a/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Instruct.cs b/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Instruct.cs
index d257b8552..df1751cbd 100644
--- a/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Instruct.cs
+++ b/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Instruct.cs
@@ -1,4 +1,4 @@
-using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
using BotSharp.Abstraction.Options;
using BotSharp.Abstraction.Templating;
using System.Collections;
diff --git a/src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.AgentCodeScript.cs b/src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.AgentCodeScript.cs
index c332d147c..b085ad34b 100644
--- a/src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.AgentCodeScript.cs
+++ b/src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.AgentCodeScript.cs
@@ -1,4 +1,3 @@
-using BotSharp.Abstraction.Repositories.Models;
using System.IO;
namespace BotSharp.Core.Repository;
diff --git a/src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.KnowledgeBase.cs b/src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.KnowledgeBase.cs
index ae9d0405c..f245477f2 100644
--- a/src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.KnowledgeBase.cs
+++ b/src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.KnowledgeBase.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.Knowledges.Filters;
+using BotSharp.Abstraction.VectorStorage.Filters;
using BotSharp.Abstraction.VectorStorage.Models;
using System.IO;
diff --git a/src/Infrastructure/BotSharp.Core/Using.cs b/src/Infrastructure/BotSharp.Core/Using.cs
index f67baef04..07b0f1642 100644
--- a/src/Infrastructure/BotSharp.Core/Using.cs
+++ b/src/Infrastructure/BotSharp.Core/Using.cs
@@ -35,10 +35,13 @@
global using BotSharp.Abstraction.Loggers.Services;
global using BotSharp.Abstraction.Infrastructures.Events;
global using BotSharp.Abstraction.Templating.Constants;
-global using BotSharp.Abstraction.Realtime.Models.Session;
global using BotSharp.Abstraction.Conversations.Enums;
global using BotSharp.Abstraction.Hooks;
global using BotSharp.Abstraction.MessageHub.Models;
+global using BotSharp.Abstraction.Repositories.Models;
+global using BotSharp.Abstraction.Repositories.Options;
+global using BotSharp.Abstraction.Realtime.Options;
+global using BotSharp.Abstraction.Realtime.Sessions;
global using BotSharp.Core.Agents.Services;
global using BotSharp.Core.Conversations.Services;
global using BotSharp.Core.Infrastructures;
diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/ImageGenerationController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/ImageGenerationController.cs
index f99ebc42d..6dd03f641 100644
--- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/ImageGenerationController.cs
+++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/ImageGenerationController.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
using BotSharp.OpenAPI.ViewModels.Instructs;
namespace BotSharp.OpenAPI.Controllers;
diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs
index 4b656db79..cdb1dab49 100644
--- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs
+++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs
@@ -2,6 +2,7 @@
using BotSharp.Abstraction.Files.Utilities;
using BotSharp.Abstraction.Instructs;
using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
using BotSharp.Core.Infrastructures;
using BotSharp.OpenAPI.ViewModels.Instructs;
diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeBaseController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeBaseController.cs
index 7ad48dc8e..27588318d 100644
--- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeBaseController.cs
+++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeBaseController.cs
@@ -1,6 +1,9 @@
using BotSharp.Abstraction.Files.Utilities;
-using BotSharp.Abstraction.Graph.Models;
+using BotSharp.Abstraction.Graph.Options;
+using BotSharp.Abstraction.Knowledges.Options;
+using BotSharp.Abstraction.Knowledges.Responses;
using BotSharp.Abstraction.VectorStorage.Models;
+using BotSharp.Abstraction.VectorStorage.Options;
using BotSharp.OpenAPI.ViewModels.Knowledges;
using BotSharp.OpenAPI.ViewModels.Knowledges.Request;
diff --git a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/Request/ConversationChartDataRequest.cs b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/Request/ConversationChartDataRequest.cs
index 19fcd14e4..c887a16dc 100644
--- a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/Request/ConversationChartDataRequest.cs
+++ b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Conversations/Request/ConversationChartDataRequest.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.Chart.Options;
+
namespace BotSharp.OpenAPI.ViewModels.Conversations;
public class ConversationChartDataRequest : ChartDataOptions
diff --git a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Instructs/Request/InstructMessageModel.cs b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Instructs/Request/InstructMessageModel.cs
index 0091f02ad..4aa3c51f1 100644
--- a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Instructs/Request/InstructMessageModel.cs
+++ b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Instructs/Request/InstructMessageModel.cs
@@ -1,4 +1,4 @@
-using BotSharp.Abstraction.Instructs.Models;
+using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.OpenAPI.ViewModels.Instructs;
diff --git a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/GetKnowledgeDocsRequest.cs b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/GetKnowledgeDocsRequest.cs
index 40ffe3cb6..52022b70b 100644
--- a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/GetKnowledgeDocsRequest.cs
+++ b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/GetKnowledgeDocsRequest.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.Knowledges.Filters;
+
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
public class GetKnowledgeDocsRequest : KnowledgeFileFilter
diff --git a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorCollectionIndexRequest.cs b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorCollectionIndexRequest.cs
index fada70321..94e66ff03 100644
--- a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorCollectionIndexRequest.cs
+++ b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorCollectionIndexRequest.cs
@@ -1,4 +1,4 @@
-using BotSharp.Abstraction.VectorStorage.Models;
+using BotSharp.Abstraction.VectorStorage.Options;
namespace BotSharp.OpenAPI.ViewModels.Knowledges.Request;
diff --git a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorKnowledgeUploadRequest.cs b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorKnowledgeUploadRequest.cs
index 0934c508b..760519668 100644
--- a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorKnowledgeUploadRequest.cs
+++ b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorKnowledgeUploadRequest.cs
@@ -1,3 +1,4 @@
+using BotSharp.Abstraction.Knowledges.Options;
using System.Text.Json.Serialization;
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
diff --git a/src/Plugins/BotSharp.Plugin.ChatHub/ChatStreamMiddleware.cs b/src/Plugins/BotSharp.Plugin.ChatHub/ChatStreamMiddleware.cs
index a08fda080..8848a6328 100644
--- a/src/Plugins/BotSharp.Plugin.ChatHub/ChatStreamMiddleware.cs
+++ b/src/Plugins/BotSharp.Plugin.ChatHub/ChatStreamMiddleware.cs
@@ -1,4 +1,5 @@
-using BotSharp.Abstraction.Realtime.Models.Session;
+using BotSharp.Abstraction.Realtime.Options;
+using BotSharp.Abstraction.Realtime.Sessions;
using BotSharp.Core.Session;
using Microsoft.AspNetCore.Http;
using System.Net.WebSockets;
diff --git a/src/Plugins/BotSharp.Plugin.ChatHub/Models/Stream/ChatStreamRequest.cs b/src/Plugins/BotSharp.Plugin.ChatHub/Models/Stream/ChatStreamRequest.cs
index 13ef8f0e7..36dcbc347 100644
--- a/src/Plugins/BotSharp.Plugin.ChatHub/Models/Stream/ChatStreamRequest.cs
+++ b/src/Plugins/BotSharp.Plugin.ChatHub/Models/Stream/ChatStreamRequest.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Models;
+using BotSharp.Abstraction.Realtime.Options;
using System.Text.Json.Serialization;
namespace BotSharp.Plugin.ChatHub.Models.Stream;
diff --git a/src/Plugins/BotSharp.Plugin.EmailHandler/Functions/HandleEmailSenderFn.cs b/src/Plugins/BotSharp.Plugin.EmailHandler/Functions/HandleEmailSenderFn.cs
index e38233c3a..f4be0628a 100644
--- a/src/Plugins/BotSharp.Plugin.EmailHandler/Functions/HandleEmailSenderFn.cs
+++ b/src/Plugins/BotSharp.Plugin.EmailHandler/Functions/HandleEmailSenderFn.cs
@@ -71,7 +71,7 @@ private async Task> GetConversationFiles()
var fileInstruct = _services.GetRequiredService();
var convSettings = _services.GetRequiredService();
- var selecteds = await fileInstruct.SelectMessageFiles(convService.ConversationId, new SelectFileOptions
+ var selecteds = await fileInstruct.SelectMessageFiles(convService.ConversationId, options: new()
{
IsIncludeBotFiles = true,
IsAttachFiles = true,
diff --git a/src/Plugins/BotSharp.Plugin.GoogleAI/Providers/Realtime/RealTimeCompletionProvider.cs b/src/Plugins/BotSharp.Plugin.GoogleAI/Providers/Realtime/RealTimeCompletionProvider.cs
index 180d18c3f..51d2232fb 100644
--- a/src/Plugins/BotSharp.Plugin.GoogleAI/Providers/Realtime/RealTimeCompletionProvider.cs
+++ b/src/Plugins/BotSharp.Plugin.GoogleAI/Providers/Realtime/RealTimeCompletionProvider.cs
@@ -1,5 +1,7 @@
using BotSharp.Abstraction.Hooks;
-using BotSharp.Abstraction.Realtime.Models.Session;
+using BotSharp.Abstraction.Realtime.Options;
+using BotSharp.Abstraction.Realtime.Sessions;
+using BotSharp.Abstraction.Realtime.Settings;
using BotSharp.Core.Infrastructures.Streams;
using BotSharp.Core.Session;
using BotSharp.Plugin.GoogleAI.Models.Realtime;
diff --git a/src/Plugins/BotSharp.Plugin.Graph/GraphDb.cs b/src/Plugins/BotSharp.Plugin.Graph/GraphDb.cs
index ab6132dc4..93ae8fbc8 100644
--- a/src/Plugins/BotSharp.Plugin.Graph/GraphDb.cs
+++ b/src/Plugins/BotSharp.Plugin.Graph/GraphDb.cs
@@ -1,3 +1,4 @@
+using BotSharp.Abstraction.Graph.Options;
using BotSharp.Plugin.Graph.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Converters/ImageHandlerImageConverter.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Converters/ImageHandlerImageConverter.cs
index d058f335b..1a0d9d4e6 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Converters/ImageHandlerImageConverter.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Converters/ImageHandlerImageConverter.cs
@@ -2,6 +2,7 @@
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Formats.Png;
using System.IO;
+using BotSharp.Abstraction.Files.Options;
namespace BotSharp.Plugin.ImageHandler.Converters;
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs
index 39c772d56..4c1544e09 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs
@@ -61,7 +61,7 @@ private void SetImageOptions()
var fileInstruct = _services.GetRequiredService();
var convSettings = _services.GetRequiredService();
- var selecteds = await fileInstruct.SelectMessageFiles(_conversationId, new SelectFileOptions
+ var selecteds = await fileInstruct.SelectMessageFiles(_conversationId, new()
{
Description = description,
IsIncludeBotFiles = true,
diff --git a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs
index d98f672e2..8e73d639c 100644
--- a/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs
+++ b/src/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs
@@ -62,7 +62,7 @@ private void SetImageOptions()
var fileInstruct = _services.GetRequiredService();
var convSettings = _services.GetRequiredService();
- var selecteds = await fileInstruct.SelectMessageFiles(_conversationId, new SelectFileOptions
+ var selecteds = await fileInstruct.SelectMessageFiles(_conversationId, options: new()
{
Description = description,
IsIncludeBotFiles = true,
diff --git a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Helpers/KnowledgeSettingHelper.cs b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Helpers/KnowledgeSettingHelper.cs
index 669f4ad13..e1bebc582 100644
--- a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Helpers/KnowledgeSettingHelper.cs
+++ b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Helpers/KnowledgeSettingHelper.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.VectorStorage.Filters;
+
namespace BotSharp.Plugin.KnowledgeBase.Helpers;
public static class KnowledgeSettingHelper
diff --git a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Hooks/KnowledgeHook.cs b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Hooks/KnowledgeHook.cs
index 90aa0114d..adb441395 100644
--- a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Hooks/KnowledgeHook.cs
+++ b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Hooks/KnowledgeHook.cs
@@ -1,3 +1,6 @@
+using BotSharp.Abstraction.Graph.Options;
+using BotSharp.Abstraction.VectorStorage.Options;
+
namespace BotSharp.Plugin.KnowledgeBase.Hooks;
public class KnowledgeHook : IKnowledgeHook
diff --git a/src/Plugins/BotSharp.Plugin.KnowledgeBase/MemVecDb/MemoryVectorDb.cs b/src/Plugins/BotSharp.Plugin.KnowledgeBase/MemVecDb/MemoryVectorDb.cs
index 085653a25..c1641a263 100644
--- a/src/Plugins/BotSharp.Plugin.KnowledgeBase/MemVecDb/MemoryVectorDb.cs
+++ b/src/Plugins/BotSharp.Plugin.KnowledgeBase/MemVecDb/MemoryVectorDb.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.VectorStorage.Enums;
+using BotSharp.Abstraction.VectorStorage.Options;
using System.Linq;
using Tensorflow.NumPy;
diff --git a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Document.cs b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Document.cs
index f81961dbe..207879311 100644
--- a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Document.cs
+++ b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Document.cs
@@ -1,7 +1,10 @@
using BotSharp.Abstraction.Files;
using BotSharp.Abstraction.Files.Models;
using BotSharp.Abstraction.Files.Utilities;
+using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.Knowledges.Helpers;
+using BotSharp.Abstraction.Knowledges.Options;
+using BotSharp.Abstraction.Knowledges.Responses;
using BotSharp.Abstraction.VectorStorage.Enums;
using System.Net.Http;
using System.Net.Mime;
diff --git a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Graph.cs b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Graph.cs
index 7207bace1..f6bcac183 100644
--- a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Graph.cs
+++ b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Graph.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.Graph.Options;
+
namespace BotSharp.Plugin.KnowledgeBase.Services;
public partial class KnowledgeService
diff --git a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Index.cs b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Index.cs
index 59ef12024..4ea034487 100644
--- a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Index.cs
+++ b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Index.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Models;
+using BotSharp.Abstraction.VectorStorage.Options;
namespace BotSharp.Plugin.KnowledgeBase.Services;
diff --git a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Vector.cs b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Vector.cs
index 908fdc230..5d638f731 100644
--- a/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Vector.cs
+++ b/src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Vector.cs
@@ -1,5 +1,7 @@
using BotSharp.Abstraction.Files;
using BotSharp.Abstraction.VectorStorage.Enums;
+using BotSharp.Abstraction.VectorStorage.Filters;
+using BotSharp.Abstraction.VectorStorage.Options;
using Microsoft.AspNetCore.Http.HttpResults;
namespace BotSharp.Plugin.KnowledgeBase.Services;
diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.AgentCodeScript.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.AgentCodeScript.cs
index 8e8a8154d..fa2830f2a 100644
--- a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.AgentCodeScript.cs
+++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.AgentCodeScript.cs
@@ -1,6 +1,7 @@
using BotSharp.Abstraction.Agents.Models;
using BotSharp.Abstraction.Repositories.Filters;
using BotSharp.Abstraction.Repositories.Models;
+using BotSharp.Abstraction.Repositories.Options;
namespace BotSharp.Plugin.MongoStorage.Repository;
diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.KnowledgeBase.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.KnowledgeBase.cs
index f6bcba898..734968395 100644
--- a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.KnowledgeBase.cs
+++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.KnowledgeBase.cs
@@ -1,4 +1,6 @@
+using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.Knowledges.Models;
+using BotSharp.Abstraction.VectorStorage.Filters;
using BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Plugin.MongoStorage.Repository;
diff --git a/src/Plugins/BotSharp.Plugin.OpenAI/Models/Realtime/RealtimeSessionUpdate.cs b/src/Plugins/BotSharp.Plugin.OpenAI/Models/Realtime/RealtimeSessionUpdate.cs
index 395385d67..0dbf4fa52 100644
--- a/src/Plugins/BotSharp.Plugin.OpenAI/Models/Realtime/RealtimeSessionUpdate.cs
+++ b/src/Plugins/BotSharp.Plugin.OpenAI/Models/Realtime/RealtimeSessionUpdate.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.Realtime.Sessions;
+
namespace BotSharp.Plugin.OpenAI.Models.Realtime;
public class RealtimeSessionUpdate
diff --git a/src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/RealTimeCompletionProvider.cs b/src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/RealTimeCompletionProvider.cs
index 379941b40..fe2e1bbb9 100644
--- a/src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/RealTimeCompletionProvider.cs
+++ b/src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/RealTimeCompletionProvider.cs
@@ -1,4 +1,7 @@
using BotSharp.Abstraction.Hooks;
+using BotSharp.Abstraction.Realtime.Options;
+using BotSharp.Abstraction.Realtime.Sessions;
+using BotSharp.Abstraction.Realtime.Settings;
using BotSharp.Plugin.OpenAI.Models.Realtime;
using OpenAI.Chat;
diff --git a/src/Plugins/BotSharp.Plugin.OpenAI/Using.cs b/src/Plugins/BotSharp.Plugin.OpenAI/Using.cs
index b2bafc7ba..a1f2392d0 100644
--- a/src/Plugins/BotSharp.Plugin.OpenAI/Using.cs
+++ b/src/Plugins/BotSharp.Plugin.OpenAI/Using.cs
@@ -30,7 +30,7 @@
global using BotSharp.Abstraction.Options;
global using BotSharp.Abstraction.Realtime;
global using BotSharp.Abstraction.Realtime.Models;
-global using BotSharp.Abstraction.Realtime.Models.Session;
+global using BotSharp.Abstraction.Realtime.Sessions;
global using BotSharp.Core.Infrastructures;
global using BotSharp.Core.Session;
global using BotSharp.Plugin.OpenAI.Models;
diff --git a/src/Plugins/BotSharp.Plugin.Qdrant/QdrantDb.cs b/src/Plugins/BotSharp.Plugin.Qdrant/QdrantDb.cs
index 2ffbdb53d..32543f83e 100644
--- a/src/Plugins/BotSharp.Plugin.Qdrant/QdrantDb.cs
+++ b/src/Plugins/BotSharp.Plugin.Qdrant/QdrantDb.cs
@@ -1,5 +1,6 @@
using BotSharp.Abstraction.Options;
using BotSharp.Abstraction.Utilities;
+using BotSharp.Abstraction.VectorStorage.Options;
using BotSharp.Plugin.Qdrant.Models;
using Google.Protobuf.Collections;
using Microsoft.Extensions.DependencyInjection;
diff --git a/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelMemoryStoreProvider.cs b/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelMemoryStoreProvider.cs
index b8edde36c..f0358b344 100644
--- a/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelMemoryStoreProvider.cs
+++ b/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelMemoryStoreProvider.cs
@@ -2,6 +2,7 @@
using BotSharp.Abstraction.VectorStorage;
using BotSharp.Abstraction.VectorStorage.Enums;
using BotSharp.Abstraction.VectorStorage.Models;
+using BotSharp.Abstraction.VectorStorage.Options;
using Microsoft.SemanticKernel.Memory;
using System;
using System.Collections.Generic;
diff --git a/src/Plugins/BotSharp.Plugin.SqlDriver/Functions/SqlValidateFn.cs b/src/Plugins/BotSharp.Plugin.SqlDriver/Functions/SqlValidateFn.cs
index 1489c4a81..9cba8ecbc 100644
--- a/src/Plugins/BotSharp.Plugin.SqlDriver/Functions/SqlValidateFn.cs
+++ b/src/Plugins/BotSharp.Plugin.SqlDriver/Functions/SqlValidateFn.cs
@@ -1,3 +1,5 @@
+using BotSharp.Abstraction.Instructs.Options;
+
namespace BotSharp.Plugin.SqlDriver.Functions;
public class SqlValidateFn : IFunctionCallback
diff --git a/src/Plugins/BotSharp.Plugin.SqlDriver/Services/SqlChartService.cs b/src/Plugins/BotSharp.Plugin.SqlDriver/Services/SqlChartService.cs
index 7e091bc3b..5efef68f4 100644
--- a/src/Plugins/BotSharp.Plugin.SqlDriver/Services/SqlChartService.cs
+++ b/src/Plugins/BotSharp.Plugin.SqlDriver/Services/SqlChartService.cs
@@ -1,3 +1,4 @@
+using BotSharp.Abstraction.Chart.Options;
using BotSharp.Abstraction.Options;
using BotSharp.Abstraction.Repositories;
using BotSharp.Core.Infrastructures;
diff --git a/src/Plugins/BotSharp.Plugin.TencentCos/Services/TencentCosService.Conversation.cs b/src/Plugins/BotSharp.Plugin.TencentCos/Services/TencentCosService.Conversation.cs
index 0c774dd86..b72fc198a 100644
--- a/src/Plugins/BotSharp.Plugin.TencentCos/Services/TencentCosService.Conversation.cs
+++ b/src/Plugins/BotSharp.Plugin.TencentCos/Services/TencentCosService.Conversation.cs
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Files.Converters;
+using BotSharp.Abstraction.Files.Options;
using BotSharp.Abstraction.Files.Utilities;
using System.Net.Mime;
diff --git a/src/Plugins/BotSharp.Plugin.Twilio/TwilioStreamMiddleware.cs b/src/Plugins/BotSharp.Plugin.Twilio/TwilioStreamMiddleware.cs
index 95bf44751..78bcafed1 100644
--- a/src/Plugins/BotSharp.Plugin.Twilio/TwilioStreamMiddleware.cs
+++ b/src/Plugins/BotSharp.Plugin.Twilio/TwilioStreamMiddleware.cs
@@ -3,7 +3,8 @@
using BotSharp.Abstraction.Options;
using BotSharp.Abstraction.Realtime;
using BotSharp.Abstraction.Realtime.Models;
-using BotSharp.Abstraction.Realtime.Models.Session;
+using BotSharp.Abstraction.Realtime.Options;
+using BotSharp.Abstraction.Realtime.Sessions;
using BotSharp.Abstraction.Routing;
using BotSharp.Abstraction.Utilities;
using BotSharp.Core.Session;
diff --git a/tests/BotSharp.LLM.Tests/Core/NullFileStorageService.cs b/tests/BotSharp.LLM.Tests/Core/NullFileStorageService.cs
index 0e1be86cb..566d33e42 100644
--- a/tests/BotSharp.LLM.Tests/Core/NullFileStorageService.cs
+++ b/tests/BotSharp.LLM.Tests/Core/NullFileStorageService.cs
@@ -1,5 +1,6 @@
using BotSharp.Abstraction.Files;
using BotSharp.Abstraction.Files.Models;
+using BotSharp.Abstraction.Files.Options;
namespace BotSharp.Plugin.Google.Core
{