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
4 changes: 2 additions & 2 deletions src/MaIN.Core/Hub/AiHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static class AIHub
private static IHttpClientFactory _httpClientFactory = null!;

internal static void Initialize(IAIHubServices services,
MaINSettings settings,
MaINSettings settings,
IHttpClientFactory httpClientFactory)
{
_services = services;
Expand All @@ -38,7 +38,7 @@ public static void DisableLLamaLogs()
{
NativeLogConfig.llama_log_set((_,_) => {});
}

public static void DisableNotificationsLogs()
{
INotificationService.Disable = true;
Expand Down
2 changes: 1 addition & 1 deletion src/MaIN.Core/Hub/Contexts/AgentContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace MaIN.Core.Hub.Contexts;

public class AgentContext
public sealed class AgentContext
{
private readonly IAgentService _agentService;
private InferenceParams? _inferenceParams;
Expand Down
2 changes: 1 addition & 1 deletion src/MaIN.Core/Hub/Contexts/ChatContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace MaIN.Core.Hub.Contexts;

public class ChatContext
public sealed class ChatContext
{
private readonly IChatService _chatService;
private bool _preProcess;
Expand Down
4 changes: 1 addition & 3 deletions src/MaIN.Core/Hub/Contexts/FlowContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
using MaIN.Domain.Entities;
using MaIN.Domain.Entities.Agents;
using MaIN.Domain.Entities.Agents.AgentSource;
using MaIN.Services.Dtos;
using MaIN.Services.Mappers;
using MaIN.Services.Services.Abstract;
using MaIN.Services.Services.Models;

namespace MaIN.Core.Hub.Contexts;

public class FlowContext
public sealed class FlowContext
{
private readonly IAgentFlowService _flowService;
private readonly IAgentService _agentService;
Expand Down
4 changes: 1 addition & 3 deletions src/MaIN.Core/Hub/Contexts/McpContext.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@

using MaIN.Domain.Configuration;
using MaIN.Domain.Entities;
using MaIN.Services.Constants;
using MaIN.Services.Services;
using MaIN.Services.Services.Abstract;
using MaIN.Services.Services.Models;

namespace MaIN.Core.Hub.Contexts;

public class McpContext
public sealed class McpContext
{
private readonly IMcpService _mcpService;
private Mcp? _mcpConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/MaIN.Core/Hub/Contexts/ModelContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace MaIN.Core.Hub.Contexts;

public class ModelContext
public sealed class ModelContext
{
private readonly MaINSettings _settings;
private readonly IHttpClientFactory _httpClientFactory;
Expand Down
2 changes: 1 addition & 1 deletion src/MaIN.Core/Hub/Utils/KnowledgeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace MaIN.Core.Hub.Utils;

public class KnowledgeBuilder
public sealed class KnowledgeBuilder
{
private Agent? _agent;
private KnowledgeIndex? _index;
Expand Down
2 changes: 1 addition & 1 deletion src/MaIN.Core/Hub/Utils/StepBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace MaIN.Core.Hub.Utils;

public class StepBuilder
public sealed class StepBuilder
{
private readonly List<string> Steps = new();
public static StepBuilder Instance => new();
Expand Down
2 changes: 1 addition & 1 deletion src/MaIN.Core/Hub/Utils/ToolConfigurationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

Expand Down
1 change: 0 additions & 1 deletion src/MaIN.Core/Interfaces/IAIHubService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using MaIN.Services.Services;
using MaIN.Services.Services.Abstract;

namespace MaIN.Core.Interfaces;
Expand Down
4 changes: 1 addition & 3 deletions src/MaIN.Core/Services/AIHubService.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using MaIN.Core.Interfaces;
using MaIN.Services.Services;
using MaIN.Services.Services.Abstract;

namespace MaIN.Core.Services;

public class AIHubServices(
public sealed class AIHubServices(
IChatService chatService,
IAgentService agentService,
IAgentFlowService flowService,
Expand All @@ -14,6 +13,5 @@ public class AIHubServices(
public IChatService ChatService { get; } = chatService;
public IAgentService AgentService { get; } = agentService;
public IAgentFlowService FlowService { get; } = flowService;

public IMcpService McpService { get; } = mcpService;
}
Loading