LiteGen class
Lightweight content generation service.
Use this class for faster, lower-latency AI completions. Access the singleton instance via LiteGen.instance.
Properties
- client → HttpClient
-
Internal HTTP client configured for the Tuul LiteGen endpoints.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Returns true if the singleton has been successfully initialized.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
headers(
) → Map< String, String> - Generates the necessary headers for Tuul API authentication.
-
initialize(
String apiKey) → void -
Initializes the singleton with your
apiKey. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
{required LiteOption liteOptions}) → Future< AppResponse< LiteMessage> > - Performs an atomic (non-streaming) generation request.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited