-
-
Notifications
You must be signed in to change notification settings - Fork 630
Expand file tree
/
Copy pathAgentTemplate.cs
More file actions
41 lines (33 loc) · 928 Bytes
/
AgentTemplate.cs
File metadata and controls
41 lines (33 loc) · 928 Bytes
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
40
41
namespace BotSharp.Abstraction.Agents.Models;
public class AgentTemplate : AgentTemplateConfig
{
public string Content { get; set; } = string.Empty;
public AgentTemplate()
{
}
public AgentTemplate(string name, string content)
{
Name = name;
Content = content;
}
public override string ToString()
{
return Name;
}
}
public class AgentTemplateConfig
{
public string Name { get; set; }
/// <summary>
/// Response format: json, xml, markdown, yaml, etc.
/// </summary>
[JsonPropertyName("response_format")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ResponseFormat { get; set; }
[JsonPropertyName("llm_config")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public AgentTemplateLlmConfig? LlmConfig { get; set; }
}
public class AgentTemplateLlmConfig : LlmConfigBase
{
}