File tree Expand file tree Collapse file tree 11 files changed +11
-18
lines changed
Expand file tree Collapse file tree 11 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public static class AIHub
1313 private static IHttpClientFactory _httpClientFactory = null ! ;
1414
1515 internal static void Initialize ( IAIHubServices services ,
16- MaINSettings settings ,
16+ MaINSettings settings ,
1717 IHttpClientFactory httpClientFactory )
1818 {
1919 _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 ;
Original file line number Diff line number Diff line change 1212
1313namespace MaIN . Core . Hub . Contexts ;
1414
15- public class AgentContext
15+ public sealed class AgentContext
1616{
1717 private readonly IAgentService _agentService ;
1818 private InferenceParams ? _inferenceParams ;
Original file line number Diff line number Diff line change 1010
1111namespace MaIN . Core . Hub . Contexts ;
1212
13- public class ChatContext
13+ public sealed class ChatContext
1414{
1515 private readonly IChatService _chatService ;
1616 private bool _preProcess ;
Original file line number Diff line number Diff line change 44using MaIN . Domain . Entities ;
55using MaIN . Domain . Entities . Agents ;
66using MaIN . Domain . Entities . Agents . AgentSource ;
7- using MaIN . Services . Dtos ;
8- using MaIN . Services . Mappers ;
97using MaIN . Services . Services . Abstract ;
108using MaIN . Services . Services . Models ;
119
1210namespace MaIN . Core . Hub . Contexts ;
1311
14- public class FlowContext
12+ public sealed class FlowContext
1513{
1614 private readonly IAgentFlowService _flowService ;
1715 private readonly IAgentService _agentService ;
Original file line number Diff line number Diff line change 1-
21using MaIN . Domain . Configuration ;
32using MaIN . Domain . Entities ;
43using MaIN . Services . Constants ;
5- using MaIN . Services . Services ;
64using MaIN . Services . Services . Abstract ;
75using MaIN . Services . Services . Models ;
86
97namespace MaIN . Core . Hub . Contexts ;
108
11- public class McpContext
9+ public sealed class McpContext
1210{
1311 private readonly IMcpService _mcpService ;
1412 private Mcp ? _mcpConfig ;
Original file line number Diff line number Diff line change 77
88namespace MaIN . Core . Hub . Contexts ;
99
10- public class ModelContext
10+ public sealed class ModelContext
1111{
1212 private readonly MaINSettings _settings ;
1313 private readonly IHttpClientFactory _httpClientFactory ;
Original file line number Diff line number Diff line change 55
66namespace MaIN . Core . Hub . Utils ;
77
8- public class KnowledgeBuilder
8+ public sealed class KnowledgeBuilder
99{
1010 private Agent ? _agent ;
1111 private KnowledgeIndex ? _index ;
Original file line number Diff line number Diff line change 33
44namespace 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 ( ) ;
Original file line number Diff line number Diff line change 33
44namespace 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
Original file line number Diff line number Diff line change 1- using MaIN . Services . Services ;
21using MaIN . Services . Services . Abstract ;
32
43namespace MaIN . Core . Interfaces ;
You can’t perform that action at this time.
0 commit comments