SeemGen/Models/ChatGPTMethodResult.cs

22 lines
577 B
C#

using System.Text.Json.Serialization;
namespace BLAIzor.Models
{
public class ChatGPTMethodResult : ChatGPTResultBase
{
[JsonConstructor]
public ChatGPTMethodResult(string type, string text, string methodToCall, string? parameter = "")
: base(type, text)
{
MethodToCall = methodToCall;
Parameter = parameter;
}
[JsonPropertyName("methodToCall")]
public string? MethodToCall { get; set; }
[JsonPropertyName("parameter")]
public string? Parameter { get; set; }
}
}