commit
e968627f9b
|
|
@ -9,5 +9,7 @@ public interface IFunctionCallback
|
|||
/// </summary>
|
||||
string Indication => string.Empty;
|
||||
|
||||
Task<string> GetIndication(RoleDialogModel message) => Task.FromResult(Indication);
|
||||
|
||||
Task<bool> Execute(RoleDialogModel message);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public partial class RoutingService
|
|||
var progressService = _services.GetService<IConversationProgressService>();
|
||||
|
||||
// Before executing functions
|
||||
clonedMessage.Indication = function.Indication;
|
||||
clonedMessage.Indication = await function.GetIndication(message);
|
||||
if (progressService?.OnFunctionExecuting != null)
|
||||
{
|
||||
await progressService.OnFunctionExecuting(clonedMessage);
|
||||
|
|
|
|||
Loading…
Reference in a new issue