Merge pull request #1188 from iceljc/master

Refine file llm processor
This commit is contained in:
iceljc 2025-10-15 14:38:34 -05:00 committed by GitHub
commit b6a57d1ce5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
96 changed files with 158 additions and 52 deletions

View file

@ -1,4 +1,4 @@
using BotSharp.Abstraction.Repositories.Models;
using BotSharp.Abstraction.Repositories.Options;
namespace BotSharp.Abstraction.Agents.Options;

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Chart.Models;
using BotSharp.Abstraction.Chart.Options;
namespace BotSharp.Abstraction.Chart;

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Chart.Models;
namespace BotSharp.Abstraction.Chart.Options;
public class ChartCodeOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Chart.Models;
namespace BotSharp.Abstraction.Chart.Options;
public class ChartDataOptions
{

View file

@ -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; }
}

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Contexts;
public class FileSelectContext
{

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.Files.Options;
namespace BotSharp.Abstraction.Files.Converters;
public interface IImageConverter

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Files.Options;
using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.Abstraction.Files;

View file

@ -1,3 +1,4 @@
using BotSharp.Abstraction.Files.Options;
using System.IO;
namespace BotSharp.Abstraction.Files;

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Options;
public class FileLlmProcessOptions
{
@ -27,11 +27,21 @@ public class FileLlmProcessOptions
/// </summary>
public string? Instruction { get; set; }
/// <summary>
/// Message from user
/// </summary>
public string? UserMessage { get; set; }
/// <summary>
/// Template name in Agent
/// </summary>
public string? TemplateName { get; set; }
/// <summary>
/// The upstream where the file llm is invoked
/// </summary>
public string? InvokeFrom { get; set; }
/// <summary>
/// Data that is used to render instruction
/// </summary>

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Options;
public class ImageConvertOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Options;
public class MessageFileOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Options;
public class SelectFileOptions : LlmConfigBase
{

View file

@ -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<RoleDialogModel> GetFileLlmInferenceAsync(Agent agent, string text, IEnumerable<InstructFileModel> files, FileLlmProcessOptions? options = null)
Task<FileLlmInferenceResponse> GetFileLlmInferenceAsync(Agent agent, string text, IEnumerable<InstructFileModel> files, FileLlmProcessOptions? options = null)
=> throw new NotImplementedException();
}

View file

@ -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; }
}

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Graph.Models;
using BotSharp.Abstraction.Graph.Options;
namespace BotSharp.Abstraction.Graph;

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Graph.Models;
namespace BotSharp.Abstraction.Graph.Options;
public class GraphSearchOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs.Contexts;
public class CodeInstructContext
{

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Hooks;
using BotSharp.Abstraction.Instructs.Contexts;
using BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs;

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.Abstraction.Instructs;

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs.Options;
public class CodeInstructOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs.Options;
public class FileInstructOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs.Options;
public class InstructOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Abstraction.Knowledges.Filters;
public class KnowledgeFileFilter : Pagination
{

View file

@ -1,3 +1,4 @@
using BotSharp.Abstraction.Knowledges.Options;
using System.Text.RegularExpressions;
namespace BotSharp.Abstraction.Knowledges.Helpers;

View file

@ -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;

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Abstraction.Knowledges.Options;
public class ChunkOption
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Abstraction.Knowledges.Responses;
public class UploadKnowledgeResponse
{

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Realtime.Models;
using BotSharp.Abstraction.Realtime.Options;
namespace BotSharp.Abstraction.MLTasks;

View file

@ -1,5 +1,6 @@
using BotSharp.Abstraction.MLTasks;
using BotSharp.Abstraction.Realtime.Models;
using BotSharp.Abstraction.Realtime.Options;
namespace BotSharp.Abstraction.Realtime;

View file

@ -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
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Realtime.Models;
namespace BotSharp.Abstraction.Realtime.Options;
public class RealtimeOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Realtime.Models.Session;
namespace BotSharp.Abstraction.Realtime.Sessions;
public class ChatSessionUpdate
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Realtime.Models;
namespace BotSharp.Abstraction.Realtime.Sessions;
public class RealtimeSession
{

View file

@ -1,4 +1,6 @@
namespace BotSharp.Abstraction.Realtime.Models;
using BotSharp.Abstraction.Realtime.Models;
namespace BotSharp.Abstraction.Realtime.Settings;
public class RealtimeModelSettings
{

View file

@ -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.Tasks.Models;
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;

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Repositories.Models;
namespace BotSharp.Abstraction.Repositories.Options;
public class AgentCodeScriptDbUpdateOptions
{

View file

@ -1,4 +1,4 @@
using BotSharp.Abstraction.SideCar.Models;
using BotSharp.Abstraction.SideCar.Options;
namespace BotSharp.Abstraction.SideCar;

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.SideCar.Models;
namespace BotSharp.Abstraction.SideCar.Options;
public class SideCarOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.VectorStorage.Filters;
public class VectorCollectionConfigFilter
{

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.VectorStorage.Models;
using BotSharp.Abstraction.VectorStorage.Options;
namespace BotSharp.Abstraction.VectorStorage;

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.VectorStorage.Options;
public class VectorCollectionCreateOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.VectorStorage.Options;
public class VectorCollectionIndexOptions
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.VectorStorage.Options;
public class VectorQueryOptions
{

View file

@ -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
{

View file

@ -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;

View file

@ -3,6 +3,8 @@ using BotSharp.Abstraction.Functions.Models;
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;

View file

@ -14,6 +14,7 @@
limitations under the License.
******************************************************************************/
using BotSharp.Abstraction.SideCar.Options;
using BotSharp.Core.Infrastructures;
namespace BotSharp.Core.SideCar.Services;

View file

@ -16,6 +16,6 @@ global using BotSharp.Abstraction.Conversations.Models;
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;

View file

@ -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;

View file

@ -1,4 +1,4 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.Core.Files.Services;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Files.Converters;
using BotSharp.Abstraction.Files.Options;
using Microsoft.EntityFrameworkCore;
using System.IO;

View file

@ -1,4 +1,3 @@
using Microsoft.AspNetCore.Builder;
using System.Buffers;
using System.ClientModel;
using System.Net.WebSockets;

View file

@ -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 partial class InstructService
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 @@ public partial class InstructService
{
MessageId = message.MessageId,
Template = scriptName,
Text = result?.Result?.ToString()
Text = result?.Result ?? result?.ErrorMsg
};
if (context?.Arguments != null)

View file

@ -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;

View file

@ -1,4 +1,3 @@
using BotSharp.Abstraction.Repositories.Models;
using System.IO;
namespace BotSharp.Core.Repository;

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.VectorStorage.Filters;
using BotSharp.Abstraction.VectorStorage.Models;
using System.IO;

View file

@ -35,10 +35,13 @@ global using BotSharp.Abstraction.Utilities;
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;

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Instructs.Options;
using BotSharp.OpenAPI.ViewModels.Instructs;
namespace BotSharp.OpenAPI.Controllers;

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
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;

View file

@ -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;

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.Chart.Options;
namespace BotSharp.OpenAPI.ViewModels.Conversations;
public class ConversationChartDataRequest : ChartDataOptions

View file

@ -1,4 +1,4 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.OpenAPI.ViewModels.Instructs;

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.Knowledges.Filters;
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
public class GetKnowledgeDocsRequest : KnowledgeFileFilter

View file

@ -1,4 +1,4 @@
using BotSharp.Abstraction.VectorStorage.Models;
using BotSharp.Abstraction.VectorStorage.Options;
namespace BotSharp.OpenAPI.ViewModels.Knowledges.Request;

View file

@ -1,3 +1,4 @@
using BotSharp.Abstraction.Knowledges.Options;
using System.Text.Json.Serialization;
namespace BotSharp.OpenAPI.ViewModels.Knowledges;

View file

@ -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;

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Models;
using BotSharp.Abstraction.Realtime.Options;
using System.Text.Json.Serialization;
namespace BotSharp.Plugin.ChatHub.Models.Stream;

View file

@ -71,7 +71,7 @@ public class HandleEmailSenderFn : IFunctionCallback
var fileInstruct = _services.GetRequiredService<IFileInstructService>();
var convSettings = _services.GetRequiredService<ConversationSetting>();
var selecteds = await fileInstruct.SelectMessageFiles(convService.ConversationId, new SelectFileOptions
var selecteds = await fileInstruct.SelectMessageFiles(convService.ConversationId, options: new()
{
IsIncludeBotFiles = true,
IsAttachFiles = true,

View file

@ -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;

View file

@ -1,3 +1,4 @@
using BotSharp.Abstraction.Graph.Options;
using BotSharp.Plugin.Graph.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;

View file

@ -2,6 +2,7 @@ using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Formats.Png;
using System.IO;
using BotSharp.Abstraction.Files.Options;
namespace BotSharp.Plugin.ImageHandler.Converters;

View file

@ -61,7 +61,7 @@ public class ComposeImageFn : IFunctionCallback
var fileInstruct = _services.GetRequiredService<IFileInstructService>();
var convSettings = _services.GetRequiredService<ConversationSetting>();
var selecteds = await fileInstruct.SelectMessageFiles(_conversationId, new SelectFileOptions
var selecteds = await fileInstruct.SelectMessageFiles(_conversationId, new()
{
Description = description,
IsIncludeBotFiles = true,

View file

@ -62,7 +62,7 @@ public class EditImageFn : IFunctionCallback
var fileInstruct = _services.GetRequiredService<IFileInstructService>();
var convSettings = _services.GetRequiredService<ConversationSetting>();
var selecteds = await fileInstruct.SelectMessageFiles(_conversationId, new SelectFileOptions
var selecteds = await fileInstruct.SelectMessageFiles(_conversationId, options: new()
{
Description = description,
IsIncludeBotFiles = true,

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.VectorStorage.Filters;
namespace BotSharp.Plugin.KnowledgeBase.Helpers;
public static class KnowledgeSettingHelper

View file

@ -1,3 +1,6 @@
using BotSharp.Abstraction.Graph.Options;
using BotSharp.Abstraction.VectorStorage.Options;
namespace BotSharp.Plugin.KnowledgeBase.Hooks;
public class KnowledgeHook : IKnowledgeHook

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.VectorStorage.Enums;
using BotSharp.Abstraction.VectorStorage.Options;
using System.Linq;
using Tensorflow.NumPy;

View file

@ -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;

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.Graph.Options;
namespace BotSharp.Plugin.KnowledgeBase.Services;
public partial class KnowledgeService

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Models;
using BotSharp.Abstraction.VectorStorage.Options;
namespace BotSharp.Plugin.KnowledgeBase.Services;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.Realtime.Sessions;
namespace BotSharp.Plugin.OpenAI.Models.Realtime;
public class RealtimeSessionUpdate

View file

@ -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;

View file

@ -30,7 +30,7 @@ global using BotSharp.Abstraction.MLTasks.Utilities;
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;

View file

@ -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;

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Utilities;
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;

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.Instructs.Options;
namespace BotSharp.Plugin.SqlDriver.Functions;
public class SqlValidateFn : IFunctionCallback

View file

@ -1,3 +1,4 @@
using BotSharp.Abstraction.Chart.Options;
using BotSharp.Abstraction.Options;
using BotSharp.Abstraction.Repositories;
using BotSharp.Core.Infrastructures;

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Files.Converters;
using BotSharp.Abstraction.Files.Options;
using BotSharp.Abstraction.Files.Utilities;
using System.Net.Mime;

View file

@ -3,7 +3,8 @@ using BotSharp.Abstraction.MLTasks;
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;

View file

@ -1,5 +1,6 @@
using BotSharp.Abstraction.Files;
using BotSharp.Abstraction.Files.Models;
using BotSharp.Abstraction.Files.Options;
namespace BotSharp.Plugin.Google.Core
{