-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathAgentDto.cs
More file actions
39 lines (36 loc) · 1.25 KB
/
AgentDto.cs
File metadata and controls
39 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Text.Json.Serialization;
using MainFE.Components.Models;
namespace MaIN.Models.Rag;
public class AgentDto
{
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("model")]
public string Model { get; set; }
[JsonPropertyName("order")]
public int Order { get; set; }
[JsonPropertyName("description")]
public string? Description { get; set; }
[JsonPropertyName("behaviours")]
public Dictionary<string,string> Behaviours { get; set; }
[JsonPropertyName("started")]
public bool Started { get; set; }
[JsonPropertyName("flow")]
public bool Flow { get; set; }
[JsonPropertyName("config")]
public AgentConfigDto Config { get; set; }
public AgentProcessingState State { get; set; }
public bool IsProcessing { get; set; }
public List<string>? AgentDependencies { get; set; } = [];
public string? Behaviour { get; set; } = "Default";
public string ProgressMessage
{
get => string.IsNullOrEmpty(_progressMessage)
? (IsProcessing ? "Thinking" : "Waiting")
: _progressMessage;
set => _progressMessage = value;
}
private string? _progressMessage;
}