Zastava996
Posts: 2
Joined: Tue Oct 20, 2020 1:27 pm

BotConfiguration.ProcessingMode in Syn.Bot v4.5.1 not recognized

Tue Oct 20, 2020 1:37 pm

Hi everyone,
I'm currently using Syn.Bot v4.5.1 and I am trying the Deep Mode, but it seems that it is not recognized. (I've tried with Syn.Bot v4.0.3 too but the problem persists)

The code is very simple:

Visual Basic Code

using System;
using Syn.Bot.Oscova;
namespace DeepTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var bot = new OscovaBot();
            bot.Configuration.ProcessingMode = ProcessingMode.Deep;

            bot.Dialogs.Add(new AppDialog());
            bot.Trainer.StartTraining();

            bot.MainUser.ResponseReceived += (sender, eventArgs) =>
            {
                Console.WriteLine($"Bot: {eventArgs.Response.Text}");
            };

            Console.Write("User:");
            var userMessage = Console.ReadLine();
            var result = bot.Evaluate(userMessage);
            result.Invoke();
            Console.ReadLine();
        }
    }
}
And the error is the following:
'BotConfiguration' does not contain a definition for 'ProcessingMode' and no accessible extension method 'ProcessingMode' accepting a first argument of type 'BotConfiguration' could be found (are you missing a using directive or an assembly reference?)

Thanks in advance

User avatar
Fantom
Help & Support
Posts: 320
Joined: Fri Oct 25, 2013 9:20 pm

Re: BotConfiguration.ProcessingMode in Syn.Bot v4.5.1 not recognized

Sat Nov 14, 2020 10:27 pm

We are moving from Forum to StackOverflow. To get your answers within 24 hours you can post a question with the keyword OSCOVA, SIML, VA Framework or Syn Bot Framework and we'll respond you there.

Having said that.

You are receiving the exception because Processing Mode has been deprecated in later version. You must upgrade your NuGet package reference.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests