chat method

  1. @override
Future<OryksaReply> chat(
  1. String message, {
  2. required String locale,
  3. OryksaAppContext? appContext,
  4. bool voice = false,
})
override

Sends a message to the AI and waits for the reply (the assistant panel).

Implementation

@override
Future<OryksaReply> chat(String message, {required String locale, OryksaAppContext? appContext, bool voice = false}) {
  final lang = oryksaTvChatLang(locale);
  return client.sendAndWaitReply(message, appContext: appContext, voice: voice, lang: lang.isEmpty ? null : lang);
}