20 lines
457 B
C#
20 lines
457 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.Data = new
|
|
{
|
|
pepperoni_unit_price = 3.2,
|
|
cheese_unit_price = 3.5,
|
|
margherita_unit_price = 3.8,
|
|
};
|
|
return true;
|
|
}
|
|
}
|