2023-07-30 18:22:07 +00:00
|
|
|
namespace BotSharp.Abstraction.Functions.Models;
|
2023-07-26 21:05:30 +00:00
|
|
|
|
|
|
|
|
public class FunctionDef
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Description { 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
|
|
|
|
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
|
|
|
}
|