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

27 lines
609 B
C#
Raw Normal View History

2023-09-27 20:49:44 +00:00
using System.Text.Json;
namespace BotSharp.Abstraction.Functions.Models;
public class FunctionParametersDef
{
[JsonPropertyName("type")]
2023-10-24 21:38:34 +00:00
public string Type { get; set; } = "string";
2023-09-27 20:49:44 +00:00
/// <summary>
/// ParameterPropertyDef
/// {
/// "field_name": {}
/// }
/// </summary>
[JsonPropertyName("properties")]
public JsonDocument Properties { get; set; } = JsonSerializer.Deserialize<JsonDocument>("{}");
[JsonPropertyName("required")]
public List<string> Required { get; set; } = new List<string>();
public FunctionParametersDef()
{
}
2023-09-27 20:49:44 +00:00
}