BotSharp/src/Infrastructure/BotSharp.Abstraction/Agents/Models/AgentLlmConfig.cs

38 lines
1 KiB
C#
Raw Normal View History

2023-12-13 18:12:25 +00:00
namespace BotSharp.Abstraction.Agents.Models;
public class AgentLlmConfig
{
2023-12-26 03:16:41 +00:00
/// <summary>
/// Is inherited from default Agent Settings
/// </summary>
[JsonPropertyName("is_inherit")]
public bool IsInherit { get; set; }
2023-12-13 18:12:25 +00:00
/// <summary>
/// Completion Provider
/// </summary>
[JsonPropertyName("provider")]
2023-12-13 20:41:47 +00:00
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2023-12-13 18:12:25 +00:00
public string? Provider { get; set; }
/// <summary>
/// Model name
/// </summary>
[JsonPropertyName("model")]
2023-12-13 20:41:47 +00:00
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2023-12-13 18:12:25 +00:00
public string? Model { get; set; }
2024-01-26 04:42:57 +00:00
2025-02-05 23:50:32 +00:00
/// <summary>
/// Max recursion depth
/// </summary>
2024-01-26 04:42:57 +00:00
[JsonPropertyName("max_recursion_depth")]
public int MaxRecursionDepth { get; set; } = 3;
2025-02-05 23:50:32 +00:00
/// <summary>
/// Max output token
/// </summary>
[JsonPropertyName("max_output_tokens")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? MaxOutputTokens { get; set; }
2023-12-13 18:12:25 +00:00
}