commit
b6a57d1ce5
|
|
@ -1,4 +1,4 @@
|
|||
using BotSharp.Abstraction.Repositories.Models;
|
||||
using BotSharp.Abstraction.Repositories.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.Agents.Options;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Chart.Models;
|
||||
using BotSharp.Abstraction.Chart.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.Chart;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Chart.Models;
|
||||
namespace BotSharp.Abstraction.Chart.Options;
|
||||
|
||||
public class ChartCodeOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Chart.Models;
|
||||
namespace BotSharp.Abstraction.Chart.Options;
|
||||
|
||||
public class ChartDataOptions
|
||||
{
|
||||
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Files.Models;
|
||||
namespace BotSharp.Abstraction.Files.Contexts;
|
||||
|
||||
public class FileSelectContext
|
||||
{
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
using BotSharp.Abstraction.Files.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.Files.Converters;
|
||||
|
||||
public interface IImageConverter
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Instructs.Models;
|
||||
using BotSharp.Abstraction.Files.Options;
|
||||
using BotSharp.Abstraction.Instructs.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.Files;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
using BotSharp.Abstraction.Files.Options;
|
||||
using System.IO;
|
||||
|
||||
namespace BotSharp.Abstraction.Files;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Files.Models;
|
||||
namespace BotSharp.Abstraction.Files.Options;
|
||||
|
||||
public class ImageConvertOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Files.Models;
|
||||
namespace BotSharp.Abstraction.Files.Options;
|
||||
|
||||
public class MessageFileOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Files.Models;
|
||||
namespace BotSharp.Abstraction.Files.Options;
|
||||
|
||||
public class SelectFileOptions : LlmConfigBase
|
||||
{
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Graph.Models;
|
||||
using BotSharp.Abstraction.Graph.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.Graph;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Graph.Models;
|
||||
namespace BotSharp.Abstraction.Graph.Options;
|
||||
|
||||
public class GraphSearchOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Instructs.Models;
|
||||
namespace BotSharp.Abstraction.Instructs.Contexts;
|
||||
|
||||
public class CodeInstructContext
|
||||
{
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Hooks;
|
||||
using BotSharp.Abstraction.Instructs.Contexts;
|
||||
using BotSharp.Abstraction.Instructs.Models;
|
||||
|
||||
namespace BotSharp.Abstraction.Instructs;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Instructs.Models;
|
||||
using BotSharp.Abstraction.Instructs.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.Instructs;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Instructs.Models;
|
||||
namespace BotSharp.Abstraction.Instructs.Options;
|
||||
|
||||
public class CodeInstructOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Instructs.Models;
|
||||
namespace BotSharp.Abstraction.Instructs.Options;
|
||||
|
||||
public class FileInstructOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Instructs.Models;
|
||||
namespace BotSharp.Abstraction.Instructs.Options;
|
||||
|
||||
public class InstructOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Knowledges.Models;
|
||||
namespace BotSharp.Abstraction.Knowledges.Filters;
|
||||
|
||||
public class KnowledgeFileFilter : Pagination
|
||||
{
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
using BotSharp.Abstraction.Knowledges.Options;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace BotSharp.Abstraction.Knowledges.Helpers;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Knowledges.Models;
|
||||
namespace BotSharp.Abstraction.Knowledges.Options;
|
||||
|
||||
public class ChunkOption
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Knowledges.Models;
|
||||
namespace BotSharp.Abstraction.Knowledges.Responses;
|
||||
|
||||
public class UploadKnowledgeResponse
|
||||
{
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Realtime.Models;
|
||||
using BotSharp.Abstraction.Realtime.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.MLTasks;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using BotSharp.Abstraction.MLTasks;
|
||||
using BotSharp.Abstraction.Realtime.Models;
|
||||
using BotSharp.Abstraction.Realtime.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.Realtime;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Realtime.Models;
|
||||
namespace BotSharp.Abstraction.Realtime.Options;
|
||||
|
||||
public class RealtimeOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Realtime.Models.Session;
|
||||
namespace BotSharp.Abstraction.Realtime.Sessions;
|
||||
|
||||
public class ChatSessionUpdate
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Realtime.Models;
|
||||
namespace BotSharp.Abstraction.Realtime.Sessions;
|
||||
|
||||
public class RealtimeSession
|
||||
{
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
namespace BotSharp.Abstraction.Realtime.Models;
|
||||
using BotSharp.Abstraction.Realtime.Models;
|
||||
|
||||
namespace BotSharp.Abstraction.Realtime.Settings;
|
||||
|
||||
public class RealtimeModelSettings
|
||||
{
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.Repositories.Models;
|
||||
namespace BotSharp.Abstraction.Repositories.Options;
|
||||
|
||||
public class AgentCodeScriptDbUpdateOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using BotSharp.Abstraction.SideCar.Models;
|
||||
using BotSharp.Abstraction.SideCar.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.SideCar;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.SideCar.Models;
|
||||
namespace BotSharp.Abstraction.SideCar.Options;
|
||||
|
||||
public class SideCarOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.VectorStorage.Models;
|
||||
namespace BotSharp.Abstraction.VectorStorage.Filters;
|
||||
|
||||
public class VectorCollectionConfigFilter
|
||||
{
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.VectorStorage.Models;
|
||||
using BotSharp.Abstraction.VectorStorage.Options;
|
||||
|
||||
namespace BotSharp.Abstraction.VectorStorage;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.VectorStorage.Models;
|
||||
namespace BotSharp.Abstraction.VectorStorage.Options;
|
||||
|
||||
public class VectorCollectionCreateOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.VectorStorage.Models;
|
||||
namespace BotSharp.Abstraction.VectorStorage.Options;
|
||||
|
||||
public class VectorCollectionIndexOptions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace BotSharp.Abstraction.VectorStorage.Models;
|
||||
namespace BotSharp.Abstraction.VectorStorage.Options;
|
||||
|
||||
public class VectorQueryOptions
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
limitations under the License.
|
||||
******************************************************************************/
|
||||
|
||||
using BotSharp.Abstraction.SideCar.Options;
|
||||
using BotSharp.Core.Infrastructures;
|
||||
|
||||
namespace BotSharp.Core.SideCar.Services;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using BotSharp.Abstraction.Instructs.Models;
|
||||
using BotSharp.Abstraction.Instructs.Options;
|
||||
|
||||
namespace BotSharp.Core.Files.Services;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Files.Converters;
|
||||
using BotSharp.Abstraction.Files.Options;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.IO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using Microsoft.AspNetCore.Builder;
|
||||
using System.Buffers;
|
||||
using System.ClientModel;
|
||||
using System.Net.WebSockets;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using BotSharp.Abstraction.Repositories.Models;
|
||||
using System.IO;
|
||||
|
||||
namespace BotSharp.Core.Repository;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using BotSharp.Abstraction.Knowledges.Filters;
|
||||
using BotSharp.Abstraction.VectorStorage.Filters;
|
||||
using BotSharp.Abstraction.VectorStorage.Models;
|
||||
using System.IO;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Instructs.Models;
|
||||
using BotSharp.Abstraction.Instructs.Options;
|
||||
using BotSharp.OpenAPI.ViewModels.Instructs;
|
||||
|
||||
namespace BotSharp.OpenAPI.Controllers;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using BotSharp.Abstraction.Chart.Options;
|
||||
|
||||
namespace BotSharp.OpenAPI.ViewModels.Conversations;
|
||||
|
||||
public class ConversationChartDataRequest : ChartDataOptions
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using BotSharp.Abstraction.Instructs.Models;
|
||||
using BotSharp.Abstraction.Instructs.Options;
|
||||
|
||||
namespace BotSharp.OpenAPI.ViewModels.Instructs;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using BotSharp.Abstraction.Knowledges.Filters;
|
||||
|
||||
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
|
||||
|
||||
public class GetKnowledgeDocsRequest : KnowledgeFileFilter
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using BotSharp.Abstraction.VectorStorage.Models;
|
||||
using BotSharp.Abstraction.VectorStorage.Options;
|
||||
|
||||
namespace BotSharp.OpenAPI.ViewModels.Knowledges.Request;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
using BotSharp.Abstraction.Knowledges.Options;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Models;
|
||||
using BotSharp.Abstraction.Realtime.Options;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace BotSharp.Plugin.ChatHub.Models.Stream;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
using BotSharp.Abstraction.Graph.Options;
|
||||
using BotSharp.Plugin.Graph.Models;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using BotSharp.Abstraction.VectorStorage.Filters;
|
||||
|
||||
namespace BotSharp.Plugin.KnowledgeBase.Helpers;
|
||||
|
||||
public static class KnowledgeSettingHelper
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
using BotSharp.Abstraction.Graph.Options;
|
||||
using BotSharp.Abstraction.VectorStorage.Options;
|
||||
|
||||
namespace BotSharp.Plugin.KnowledgeBase.Hooks;
|
||||
|
||||
public class KnowledgeHook : IKnowledgeHook
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.VectorStorage.Enums;
|
||||
using BotSharp.Abstraction.VectorStorage.Options;
|
||||
using System.Linq;
|
||||
using Tensorflow.NumPy;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using BotSharp.Abstraction.Graph.Options;
|
||||
|
||||
namespace BotSharp.Plugin.KnowledgeBase.Services;
|
||||
|
||||
public partial class KnowledgeService
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Models;
|
||||
using BotSharp.Abstraction.VectorStorage.Options;
|
||||
|
||||
namespace BotSharp.Plugin.KnowledgeBase.Services;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using BotSharp.Abstraction.Realtime.Sessions;
|
||||
|
||||
namespace BotSharp.Plugin.OpenAI.Models.Realtime;
|
||||
|
||||
public class RealtimeSessionUpdate
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using BotSharp.Abstraction.Instructs.Options;
|
||||
|
||||
namespace BotSharp.Plugin.SqlDriver.Functions;
|
||||
|
||||
public class SqlValidateFn : IFunctionCallback
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
using BotSharp.Abstraction.Chart.Options;
|
||||
using BotSharp.Abstraction.Options;
|
||||
using BotSharp.Abstraction.Repositories;
|
||||
using BotSharp.Core.Infrastructures;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BotSharp.Abstraction.Files.Converters;
|
||||
using BotSharp.Abstraction.Files.Options;
|
||||
using BotSharp.Abstraction.Files.Utilities;
|
||||
using System.Net.Mime;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using BotSharp.Abstraction.Files;
|
||||
using BotSharp.Abstraction.Files.Models;
|
||||
using BotSharp.Abstraction.Files.Options;
|
||||
|
||||
namespace BotSharp.Plugin.Google.Core
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue