Skip to content

Commit 916bc21

Browse files
committed
Merge remote-tracking branch 'origin/main' into feature/custom_exceptions
# Conflicts: # src/MaIN.Core/Hub/Contexts/FlowContext.cs
2 parents c6bc62c + 563ca6b commit 916bc21

File tree

11 files changed

+11
-16
lines changed

11 files changed

+11
-16
lines changed

src/MaIN.Core/Hub/AiHub.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static class AIHub
1414
private static IHttpClientFactory _httpClientFactory = null!;
1515

1616
internal static void Initialize(IAIHubServices services,
17-
MaINSettings settings,
17+
MaINSettings settings,
1818
IHttpClientFactory httpClientFactory)
1919
{
2020
_services = services;
@@ -38,7 +38,7 @@ public static void DisableLLamaLogs()
3838
{
3939
NativeLogConfig.llama_log_set((_,_) => {});
4040
}
41-
41+
4242
public static void DisableNotificationsLogs()
4343
{
4444
INotificationService.Disable = true;

src/MaIN.Core/Hub/Contexts/AgentContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace MaIN.Core.Hub.Contexts;
1616

17-
public class AgentContext
17+
public sealed class AgentContext
1818
{
1919
private readonly IAgentService _agentService;
2020
private InferenceParams? _inferenceParams;

src/MaIN.Core/Hub/Contexts/ChatContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace MaIN.Core.Hub.Contexts;
1414

15-
public class ChatContext
15+
public sealed class ChatContext
1616
{
1717
private readonly IChatService _chatService;
1818
private bool _preProcess;

src/MaIN.Core/Hub/Contexts/FlowContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace MaIN.Core.Hub.Contexts;
1515

16-
public class FlowContext
16+
public sealed class FlowContext
1717
{
1818
private readonly IAgentFlowService _flowService;
1919
private readonly IAgentService _agentService;

src/MaIN.Core/Hub/Contexts/McpContext.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
21
using MaIN.Domain.Configuration;
32
using MaIN.Domain.Entities;
43
using MaIN.Domain.Exceptions;
54
using MaIN.Domain.Exceptions.MPC;
65
using MaIN.Services.Constants;
7-
using MaIN.Services.Services;
86
using MaIN.Services.Services.Abstract;
97
using MaIN.Services.Services.Models;
108

119
namespace MaIN.Core.Hub.Contexts;
1210

13-
public class McpContext
11+
public sealed class McpContext
1412
{
1513
private readonly IMcpService _mcpService;
1614
private Mcp? _mcpConfig;

src/MaIN.Core/Hub/Contexts/ModelContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace MaIN.Core.Hub.Contexts;
1111

12-
public class ModelContext
12+
public sealed class ModelContext
1313
{
1414
private readonly MaINSettings _settings;
1515
private readonly IHttpClientFactory _httpClientFactory;

src/MaIN.Core/Hub/Utils/KnowledgeBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace MaIN.Core.Hub.Utils;
77

8-
public class KnowledgeBuilder
8+
public sealed class KnowledgeBuilder
99
{
1010
private Agent? _agent;
1111
private KnowledgeIndex? _index;

src/MaIN.Core/Hub/Utils/StepBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace MaIN.Core.Hub.Utils;
55

6-
public class StepBuilder
6+
public sealed class StepBuilder
77
{
88
private readonly List<string> Steps = new();
99
public static StepBuilder Instance => new();

src/MaIN.Core/Hub/Utils/ToolConfigurationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace MaIN.Core.Hub.Utils;
55
//TODO try to share logic of adding tool to the list across methods https://github.com/wisedev-code/MaIN.NET/pull/98#discussion_r2454997846
6-
public class ToolsConfigurationBuilder
6+
public sealed class ToolsConfigurationBuilder
77
{
88
private readonly ToolsConfiguration _config = new() { Tools = [] };
99

src/MaIN.Core/Interfaces/IAIHubService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using MaIN.Services.Services;
21
using MaIN.Services.Services.Abstract;
32

43
namespace MaIN.Core.Interfaces;

0 commit comments

Comments
 (0)