Hello Friends
I am using below code to call SIML package from .NET application. I got this code from "https://www.codeproject.com/Articles/86 ... ing-SIML-S" website. It is written in old version. Now I am using latest version of SIML.
Issue : I am getting error on "public SynBot Chatbot;". It says that SynBot not valid. I am missing assembly or references.
Could you please help me to call SIML package from .NET web application?
using System.IO;
using System.Windows;
using Syn.Bot;
namespace SIML_Chatbot_Demo
{
public partial class MainWindow
{
public SynBot Chatbot;
public MainWindow()
{
InitializeComponent();
Chatbot = new SynBot();
Chatbot.PackageManager.LoadFromString(File.ReadAllText("Knowledge.simlpk"));
}
private void SendButton_OnClick(object sender, RoutedEventArgs e)
{
var result = Chatbot.Chat(InputBox.Text);
OutputBox.Text = string.Format("User: {0}\nBot: {1}\n{2}", InputBox.Text, result.BotMessage, OutputBox.Text);
InputBox.Text = string.Empty;
}
}
}
Thanks
Chetan