BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/Models/FunctionCallFromLlm.cs

21 lines
528 B
C#
Raw Normal View History

2023-08-28 03:50:10 +00:00
using BotSharp.Abstraction.Routing.Models;
namespace BotSharp.Abstraction.Functions.Models;
public class FunctionCallFromLlm
{
[JsonPropertyName("function")]
2023-09-21 13:08:27 +00:00
public string Function { get; set; } = string.Empty;
[JsonPropertyName("reason")]
public string Reason { get; set; } = string.Empty;
2023-08-28 03:50:10 +00:00
[JsonPropertyName("parameters")]
2023-09-21 13:08:27 +00:00
public RetrievalArgs Parameters { get; set; } = new RetrievalArgs();
2023-09-19 12:17:50 +00:00
public override string ToString()
{
2023-09-21 13:08:27 +00:00
return $"{Function} ({Reason}) {Parameters}";
2023-09-19 12:17:50 +00:00
}
2023-08-28 03:50:10 +00:00
}