Skip to content

Commit 5a89a7f

Browse files
committed
Mark DocumentClasses as internal
1 parent 0e2cd27 commit 5a89a7f

16 files changed

Lines changed: 37 additions & 42 deletions

Frontend/MainFE/Components/Models/AgentConfigDto.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace MaIN.Models.Rag;
44

5-
public class AgentContextDto
5+
public class AgentConfigDto
66
{
77
[JsonPropertyName("instruction")]
88
public string Instruction { get; set; }
@@ -13,4 +13,4 @@ public class AgentContextDto
1313
[JsonPropertyName("relations")]
1414
public List<string>? Relations { get; set; }
1515

16-
}
16+
}

Frontend/MainFE/Components/Models/AgentDto.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class AgentDto
2222
[JsonPropertyName("flow")]
2323
public bool Flow { get; set; }
2424
[JsonPropertyName("context")]
25-
public AgentContextDto Context { get; set; }
25+
public AgentConfigDto Context { get; set; }
2626
public AgentProcessingState State { get; set; }
2727
public bool IsProcessing { get; set; }
2828
public List<string>? AgentDependencies { get; set; } = [];
@@ -36,4 +36,4 @@ public string ProgressMessage
3636
set => _progressMessage = value;
3737
}
3838
private string? _progressMessage;
39-
}
39+
}

src/MaIN.Infrastructure/Mappers/AgentDocumentMapper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ internal static class AgentDocumentMapper
3535
Flow = agent.Flow,
3636
ToolsConfiguration = agent.ToolsConfiguration,
3737
Backend = agent.Backend,
38+
ChatId = agent.ChatId,
3839
Description = agent.Description,
3940
Behaviours = agent.Behaviours,
4041
CurrentBehaviour = agent.CurrentBehaviour,

src/MaIN.Infrastructure/Models/AgentConfigDocument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace MaIN.Infrastructure.Models;
44

5-
public class AgentConfigDocument
5+
internal class AgentConfigDocument
66
{
77
public string? Instruction { get; init; }
88
public AgentSourceDocument? Source { get; init; }
99
public List<string>? Steps { get; init; }
1010
public List<string>? Relations { get; init; }
11-
public Mcp? McpConfig { get; set; }
11+
public Mcp? McpConfig { get; init; }
1212
}

src/MaIN.Infrastructure/Models/AgentDocument.cs

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

55
namespace MaIN.Infrastructure.Models;
66

7-
public class AgentDocument
7+
internal class AgentDocument
88
{
99
[BsonId]
1010
public required string Id { get; init; }

src/MaIN.Infrastructure/Models/AgentFlowDocument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace MaIN.Infrastructure.Models;
44

5-
public class AgentFlowDocument
5+
internal class AgentFlowDocument
66
{
77
[BsonId]
88
public required string Id { get; init; }
99
public required string Name { get; init; }
1010
public required List<AgentDocument> Agents { get; init; }
1111
public required string Description { get; init; }
12-
}
12+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
namespace MaIN.Infrastructure.Models;
22

3-
public class AgentSourceDocument
3+
internal class AgentSourceDocument
44
{
55
public string? DetailsSerialized { get; init; }
66
public AgentSourceTypeDocument Type { get; init; }
77
public string? AdditionalMessage { get; init; }
8-
}
8+
}

src/MaIN.Infrastructure/Models/ChatDocument.cs

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

44
namespace MaIN.Infrastructure.Models;
55

6-
public class ChatDocument
6+
internal class ChatDocument
77
{
88
[BsonId]
99
public required string Id { get; init; }

src/MaIN.Infrastructure/Models/InterferenceParamsDocument.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
namespace MaIN.Infrastructure.Models;
44

5-
public class InferenceParamsDocument
5+
internal class InferenceParamsDocument
66
{
77
public float Temperature { get; set; }
88
public int ContextSize { get; set; }
9-
public int GpuLayerCount { get; init; }
10-
public uint SeqMax { get; init; }
9+
public int GpuLayerCount { get; init; }
10+
public uint SeqMax { get; init; }
1111
public uint BatchSize { get; init; }
12-
public uint UBatchSize { get; init; }
13-
public bool Embeddings { get; init; }
14-
public int TypeK { get; init; }
15-
public int TypeV { get; init; }
12+
public uint UBatchSize { get; init; }
13+
public bool Embeddings { get; init; }
14+
public int TypeK { get; init; }
15+
public int TypeV { get; init; }
1616
public int TokensKeep { get; set; }
1717
public int MaxTokens { get; set; }
1818
public int TopK { get; init; }
1919
public float TopP { get; init; }
2020
public Grammar? Grammar { get; set; }
21-
}
21+
}

src/MaIN.Infrastructure/Models/LLMTokenValueDocument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace MaIN.Infrastructure.Models;
44

5-
public class LLMTokenValueDocument
5+
internal class LLMTokenValueDocument
66
{
77
public required string Text { get; set; }
88
public TokenType Type { get; set; } //TODO add document representation of this domain enum
9-
}
9+
}

0 commit comments

Comments
 (0)