2018-10-03 06:00:07 +00:00
|
|
|
|
using BotSharp.Platform.Models;
|
2018-10-03 01:44:11 +00:00
|
|
|
|
using BotSharp.Platform.Models.AiRequest;
|
|
|
|
|
|
using BotSharp.Platform.Models.AiResponse;
|
2018-08-08 21:39:00 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2018-05-22 00:39:33 +00:00
|
|
|
|
|
2019-03-17 00:55:55 +00:00
|
|
|
|
namespace BotSharp.Platform.Abstractions
|
2018-05-22 00:39:33 +00:00
|
|
|
|
{
|
2018-10-03 14:13:32 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// BotEngine is the NLU of bot platform
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public interface IBotEngine
|
2018-05-22 00:39:33 +00:00
|
|
|
|
{
|
2018-10-05 06:39:39 +00:00
|
|
|
|
Task<AiResponse> TextRequest(AiRequest request);
|
2018-07-15 12:31:52 +00:00
|
|
|
|
|
2018-08-28 14:58:35 +00:00
|
|
|
|
Task Train(BotTrainOptions options);
|
2018-05-22 00:39:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|