Oryksa class
Server client for Dart backends (shelf, dart_frog, serverpod...). Uses the SECRET
API key (oryk_live_...). Never put the key inside a Flutter app: in the app use
OryksaClient with a session token created here with createSession.
Constructors
Properties
Methods
-
account(
) → Future< Map< String, dynamic> > - Account, plan and usage.
-
addFaq(
List< Map< items) → Future<String, String> >Map< String, dynamic> > - Add questions and answers to the Brain.
-
chat(
String message, {String? conversationId, String? customerName}) → Future< OryksaReply> -
Chat with the AI employee. Reuse
conversationIdto keep the context. -
close(
) → void - Closes the underlying HTTP client.
-
createSession(
{String? conversationId, String? customerName, int ttlMinutes = 60}) → Future< Map< String, dynamic> > -
Short-lived token for one app user. Send only
client_tokento the app. -
learnApp(
{required String name, String? description, String? url, String? agentName, List< String> ? languages, List<Map< screens = const [], Map<String, String> >String, Object?> settings = const {}, List<Map< faq = const []}) → Future<String, String> >Map< String, dynamic> > - Teach the AI employee about your app: what it is, its screens, settings and FAQ. Call it on every release so the Brain stays in sync with the app.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setPages(
List< Map< pages, {String? businessSummary, String? siteUrl}) → Future<String, String> >Map< String, dynamic> > - Replace the app pages the AI knows (Brain).
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAgent(
Map< String, dynamic> fields) → Future<Map< String, dynamic> > - Update the AI employee profile (name, business, languages...).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited