BotSharp/src/Infrastructure/BotSharp.Abstraction/Functions/IFunctionCallback.cs

17 lines
457 B
C#
Raw Normal View History

2023-07-30 18:22:07 +00:00
namespace BotSharp.Abstraction.Functions;
public interface IFunctionCallback
{
2025-04-15 16:28:37 +00:00
string Provider => "Botsharp";
2023-07-30 18:22:07 +00:00
string Name { get; }
2024-04-30 21:25:58 +00:00
/// <summary>
/// Indicator message used to provide UI feedback for function execution
/// </summary>
string Indication => string.Empty;
2025-01-09 22:30:25 +00:00
Task<string> GetIndication(RoleDialogModel message) => Task.FromResult(message.Indication ?? Indication);
2024-09-13 12:21:03 +00:00
2023-08-14 22:14:05 +00:00
Task<bool> Execute(RoleDialogModel message);
2023-07-30 18:22:07 +00:00
}