File tree Expand file tree Collapse file tree 11 files changed +11
-16
lines changed
Expand file tree Collapse file tree 11 files changed +11
-16
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 1414
1515namespace MaIN . Core . Hub . Contexts ;
1616
17- public class AgentContext
17+ public sealed class AgentContext
1818{
1919 private readonly IAgentService _agentService ;
2020 private InferenceParams ? _inferenceParams ;
Original file line number Diff line number Diff line change 1212
1313namespace MaIN . Core . Hub . Contexts ;
1414
15- public class ChatContext
15+ public sealed class ChatContext
1616{
1717 private readonly IChatService _chatService ;
1818 private bool _preProcess ;
Original file line number Diff line number Diff line change 1313
1414namespace 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 ;
Original file line number Diff line number Diff line change 1-
21using MaIN . Domain . Configuration ;
32using MaIN . Domain . Entities ;
43using MaIN . Domain . Exceptions ;
54using MaIN . Domain . Exceptions . MPC ;
65using MaIN . Services . Constants ;
7- using MaIN . Services . Services ;
86using MaIN . Services . Services . Abstract ;
97using MaIN . Services . Services . Models ;
108
119namespace MaIN . Core . Hub . Contexts ;
1210
13- public class McpContext
11+ public sealed class McpContext
1412{
1513 private readonly IMcpService _mcpService ;
1614 private Mcp ? _mcpConfig ;
Original file line number Diff line number Diff line change 99
1010namespace 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 ;
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