forked from SciSharp/BotSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgentLlmConfig.cs
More file actions
87 lines (73 loc) · 2.45 KB
/
AgentLlmConfig.cs
File metadata and controls
87 lines (73 loc) · 2.45 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
namespace BotSharp.Abstraction.Agents.Models;
public class AgentLlmConfig
{
public AgentLlmConfig() { }
public AgentLlmConfig(AgentTemplateLlmConfig templateLlmConfig)
{
Provider = templateLlmConfig.Provider;
Model = templateLlmConfig.Model;
MaxOutputTokens = templateLlmConfig.MaxOutputTokens;
ReasoningEffortLevel = templateLlmConfig.ReasoningEffortLevel;
}
/// <summary>
/// Is inherited from default Agent Settings
/// </summary>
[JsonPropertyName("is_inherit")]
public bool IsInherit { get; set; }
/// <summary>
/// Completion Provider
/// </summary>
[JsonPropertyName("provider")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Provider { get; set; }
/// <summary>
/// Model name
/// </summary>
[JsonPropertyName("model")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Model { get; set; }
/// <summary>
/// Max recursion depth
/// </summary>
[JsonPropertyName("max_recursion_depth")]
public int MaxRecursionDepth { get; set; } = 3;
/// <summary>
/// Max output token
/// </summary>
[JsonPropertyName("max_output_tokens")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? MaxOutputTokens { get; set; }
/// <summary>
/// Reasoning effort level
/// </summary>
[JsonPropertyName("reasoning_effort_level")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ReasoningEffortLevel { get; set; }
/// <summary>
/// Image composition config
/// </summary>
[JsonPropertyName("image_composition")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public LlmImageCompositionConfig? ImageComposition { get; set; }
/// <summary>
/// Audio transcription config
/// </summary>
[JsonPropertyName("audio_transcription")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public LlmAudioTranscriptionConfig? AudioTranscription { get; set; }
/// <summary>
/// Realtime config
/// </summary>
[JsonPropertyName("realtime")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public LlmRealtimeConfig? Realtime { get; set; }
}
public class LlmImageCompositionConfig : LlmProviderModel
{
}
public class LlmAudioTranscriptionConfig : LlmProviderModel
{
}
public class LlmRealtimeConfig : LlmProviderModel
{
}