Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BotSharp.Abstraction.Repositories.Models;
using BotSharp.Abstraction.Repositories.Options;

namespace BotSharp.Abstraction.Agents.Options;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Chart.Models;
using BotSharp.Abstraction.Chart.Options;

namespace BotSharp.Abstraction.Chart;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Chart.Models;
namespace BotSharp.Abstraction.Chart.Options;

public class ChartCodeOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Chart.Models;
namespace BotSharp.Abstraction.Chart.Options;

public class ChartDataOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Contexts;

public class FileSelectContext
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using BotSharp.Abstraction.Files.Options;

namespace BotSharp.Abstraction.Files.Converters;

public interface IImageConverter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Files.Options;
using BotSharp.Abstraction.Instructs.Options;

namespace BotSharp.Abstraction.Files;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using BotSharp.Abstraction.Files.Options;
using System.IO;

namespace BotSharp.Abstraction.Files;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Options;

public class FileLlmProcessOptions
{
Expand Down Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Options;

public class ImageConvertOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Options;

public class MessageFileOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Files.Models;
namespace BotSharp.Abstraction.Files.Options;

public class SelectFileOptions : LlmConfigBase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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();
}
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions src/Infrastructure/BotSharp.Abstraction/Graph/IGraphDb.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Graph.Models;
using BotSharp.Abstraction.Graph.Options;

namespace BotSharp.Abstraction.Graph;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Graph.Models;
namespace BotSharp.Abstraction.Graph.Options;

public class GraphSearchOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs.Contexts;

public class CodeInstructContext
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Hooks;
using BotSharp.Abstraction.Instructs.Contexts;
using BotSharp.Abstraction.Instructs.Models;

namespace BotSharp.Abstraction.Instructs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Instructs.Options;

namespace BotSharp.Abstraction.Instructs;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs.Options;

public class CodeInstructOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs.Options;

public class FileInstructOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Instructs.Models;
namespace BotSharp.Abstraction.Instructs.Options;

public class InstructOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Abstraction.Knowledges.Filters;

public class KnowledgeFileFilter : Pagination
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using BotSharp.Abstraction.Knowledges.Options;
using System.Text.RegularExpressions;

namespace BotSharp.Abstraction.Knowledges.Helpers;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Abstraction.Knowledges.Options;

public class ChunkOption
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Abstraction.Knowledges.Responses;

public class UploadKnowledgeResponse
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.Realtime.Models;
using BotSharp.Abstraction.Realtime.Options;

namespace BotSharp.Abstraction.MLTasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using BotSharp.Abstraction.MLTasks;
using BotSharp.Abstraction.Realtime.Models;
using BotSharp.Abstraction.Realtime.Options;

namespace BotSharp.Abstraction.Realtime;

Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Realtime.Models;
namespace BotSharp.Abstraction.Realtime.Options;

public class RealtimeOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Realtime.Models.Session;
namespace BotSharp.Abstraction.Realtime.Sessions;

public class ChatSessionUpdate
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Realtime.Models;
namespace BotSharp.Abstraction.Realtime.Sessions;

public class RealtimeSession
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace BotSharp.Abstraction.Realtime.Models;
using BotSharp.Abstraction.Realtime.Models;

namespace BotSharp.Abstraction.Realtime.Settings;

public class RealtimeModelSettings
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -44,7 +46,7 @@
List<User> GetUsersByAffiliateId(string affiliateId) => throw new NotImplementedException();
User? GetUserByUserName(string userName) => throw new NotImplementedException();
void UpdateUserName(string userId, string userName) => throw new NotImplementedException();
Dashboard? GetDashboard(string id = null) => throw new NotImplementedException();

Check warning on line 49 in src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Cannot convert null literal to non-nullable reference type.

Check warning on line 49 in src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Cannot convert null literal to non-nullable reference type.

Check warning on line 49 in src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot convert null literal to non-nullable reference type.

Check warning on line 49 in src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Cannot convert null literal to non-nullable reference type.

Check warning on line 49 in src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Cannot convert null literal to non-nullable reference type.

Check warning on line 49 in src/Infrastructure/BotSharp.Abstraction/Repositories/IBotSharpRepository.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Cannot convert null literal to non-nullable reference type.
void CreateUser(User user) => throw new NotImplementedException();
void UpdateExistUser(string userId, User user) => throw new NotImplementedException();
void UpdateUserVerified(string userId) => throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Repositories.Models;
namespace BotSharp.Abstraction.Repositories.Options;

public class AgentCodeScriptDbUpdateOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BotSharp.Abstraction.SideCar.Models;
using BotSharp.Abstraction.SideCar.Options;

namespace BotSharp.Abstraction.SideCar;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.SideCar.Models;
namespace BotSharp.Abstraction.SideCar.Options;

public class SideCarOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.VectorStorage.Filters;

public class VectorCollectionConfigFilter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BotSharp.Abstraction.VectorStorage.Models;
using BotSharp.Abstraction.VectorStorage.Options;

namespace BotSharp.Abstraction.VectorStorage;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.VectorStorage.Options;

public class VectorCollectionCreateOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.VectorStorage.Options;

public class VectorCollectionIndexOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Abstraction.VectorStorage.Options;

public class VectorQueryOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/BotSharp.Core.SideCar/Using.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BotSharp.Abstraction.Instructs.Models;
using BotSharp.Abstraction.Instructs.Options;

namespace BotSharp.Core.Files.Services;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Loading
Loading