2023-08-28 03:50:10 +00:00
|
|
|
using BotSharp.Abstraction.Routing.Models;
|
|
|
|
|
using System.Text.Json;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.Functions.Models;
|
|
|
|
|
|
|
|
|
|
public class FunctionCallFromLlm
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("function")]
|
|
|
|
|
public string Function { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("parameters")]
|
|
|
|
|
public RetrievalArgs Parameters { get; set; }
|
2023-09-19 12:17:50 +00:00
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"{Function}: {Parameters}";
|
|
|
|
|
}
|
2023-08-28 03:50:10 +00:00
|
|
|
}
|