LiteOption class
Configuration options for a LiteGen request.
- Available extensions
Constructors
-
LiteOption({required String prompt, required List<
LiteCharacteristic> characteristics, required bool cacheSession, required String sessionId}) -
LiteOption.fromJson(Map<
String, dynamic> json) -
Creates LiteOption from a JSON map.
factory
Properties
- cacheSession → bool
-
Whether the server should persist the session context for future turns.
final
-
characteristics
→ List<
LiteCharacteristic> -
A list of traits or parameters that guide the AI's response.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- prompt → String
-
The user's input or instruction.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String
-
A unique ID to track the conversation thread.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the options to a JSON-compatible map for API consumption.
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void -
Available on LiteOption, provided by the LiteOptionValidator extension
Validates all properties of the LiteOption instance.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited