2023-09-27 20:49:44 +00:00
|
|
|
using System.Text.Json;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.Functions.Models;
|
|
|
|
|
|
|
|
|
|
public class FunctionParametersDef
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("type")]
|
2024-01-26 22:23:10 +00:00
|
|
|
public string Type { get; set; } = "object";
|
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>();
|
2023-09-28 17:16:39 +00:00
|
|
|
|
|
|
|
|
public FunctionParametersDef()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2023-09-27 20:49:44 +00:00
|
|
|
}
|