BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/IFunctionCallback.cs
2025-04-15 11:28:37 -05:00

17 lines
457 B
C#

namespace BotSharp.Abstraction.Functions;
public interface IFunctionCallback
{
string Provider => "Botsharp";
string Name { get; }
/// <summary>
/// Indicator message used to provide UI feedback for function execution
/// </summary>
string Indication => string.Empty;
Task<string> GetIndication(RoleDialogModel message) => Task.FromResult(message.Indication ?? Indication);
Task<bool> Execute(RoleDialogModel message);
}