17 lines
457 B
C#
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);
|
|
}
|