BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/Models/FunctionDef.cs
2024-03-31 14:28:16 -05:00

21 lines
552 B
C#

namespace BotSharp.Abstraction.Functions.Models;
public class FunctionDef
{
public string Name { get; set; }
public string Description { get; set; }
[JsonPropertyName("visibility_expression")]
public string? VisibilityExpression { get; set; }
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Impact { get; set; }
public FunctionParametersDef Parameters { get; set; } = new FunctionParametersDef();
public override string ToString()
{
return $"{Name}: {Description}";
}
}