BotSharp/tests/BotSharp.Plugin.PizzaBot/Functions/GetPizzaPricesFn.cs
2023-10-13 15:08:59 -05:00

20 lines
475 B
C#

using BotSharp.Abstraction.Conversations.Models;
namespace BotSharp.Plugin.PizzaBot.Functions;
public class GetPizzaPricesFn : IFunctionCallback
{
public string Name => "get_pizza_price";
public async Task<bool> Execute(RoleDialogModel message)
{
message.ExecutionData = new
{
pepperoni_unit_price = "$3.2",
cheese_unit_price = "$3.5",
margherita_unit_price = "$3.8",
};
return true;
}
}