BotSharp/BotSharp.Platform.Abstraction/IBotEngine.cs
geffzhang 83b9a2347e refactor di and modify async/await
feat : refactor di and modify async/await
2018-10-05 14:39:39 +08:00

18 lines
424 B
C#

using BotSharp.Platform.Models;
using BotSharp.Platform.Models.AiRequest;
using BotSharp.Platform.Models.AiResponse;
using System.Threading.Tasks;
namespace BotSharp.Platform.Abstraction
{
/// <summary>
/// BotEngine is the NLU of bot platform
/// </summary>
public interface IBotEngine
{
Task<AiResponse> TextRequest(AiRequest request);
Task Train(BotTrainOptions options);
}
}