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

25 lines
677 B
C#
Raw Normal View History

2023-07-30 18:22:07 +00:00
namespace BotSharp.Abstraction.Functions.Models;
2023-07-26 21:05:30 +00:00
public class FunctionDef
{
2024-05-02 22:07:12 +00:00
[JsonPropertyName("name")]
public string Name { get; set; } = null!;
[JsonPropertyName("description")]
public string Description { get; set; } = null!;
2023-11-30 02:56:23 +00:00
2024-03-31 19:28:16 +00:00
[JsonPropertyName("visibility_expression")]
public string? VisibilityExpression { get; set; }
2023-11-30 02:56:23 +00:00
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2023-10-25 18:02:50 +00:00
public string? Impact { get; set; }
2023-11-30 02:56:23 +00:00
2024-05-02 22:07:12 +00:00
[JsonPropertyName("parameters")]
2023-09-28 03:31:58 +00:00
public FunctionParametersDef Parameters { get; set; } = new FunctionParametersDef();
2023-07-27 21:56:57 +00:00
public override string ToString()
{
return $"{Name}: {Description}";
}
2023-07-26 21:05:30 +00:00
}