BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/IFunctionCallback.cs
2025-01-09 16:30:25 -06:00

16 lines
422 B
C#

namespace BotSharp.Abstraction.Functions;
public interface IFunctionCallback
{
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);
}