BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/IFunctionCallback.cs
LAPTOP-3CFGGVOS\rabbit 829d0c6e4e optimize indication
2024-09-13 20:21:03 +08:00

16 lines
400 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(Indication);
Task<bool> Execute(RoleDialogModel message);
}