Lydia class

Main client to manage Lydia sessions.

Inheritance

Constructors

Lydia(String access_key)

Properties

accessKey String
read / writeinherited
endpoint String
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

close() → void
Closes the http.Client.
inherited
createSession({String language = "en"}) Future<LydiaSession>
Creates and returns a new LydiaSession.
getSession(String sessionID) Future<LydiaSession>
Returns existing LydiaSession.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
send(String path, {bool accessKey = true, Map payload}) Future<Map<String, dynamic>>
Handles sending requests to the server.
inherited
thinkThought(String sessionID, String message) Future<String>
Processes user input and returns text response of the AI.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited