CactusLM class

Constructors

CactusLM({bool enableToolFiltering = true, ToolFilterConfig? toolFilterConfig})

Properties

defaultCompletionParams CactusCompletionParams
getter/setter pair
defaultInitParams CactusInitParams
getter/setter pair
enableToolFiltering bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolFilterConfig ToolFilterConfig?
getter/setter pair

Methods

downloadModel({String model = "qwen3-0.6", CactusProgressCallback? downloadProcessCallback}) Future<void>
generateCompletion({required List<ChatMessage> messages, CactusCompletionParams? params}) Future<CactusCompletionResult>
generateCompletionStream({required List<ChatMessage> messages, CactusCompletionParams? params}) Future<CactusStreamedCompletionResult>
generateEmbedding({required String text, String? modelName}) Future<CactusEmbeddingResult>
getModels() Future<List<CactusModel>>
initializeModel({CactusInitParams? params}) Future<void>
isLoaded() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
toString() String
A string representation of this object.
inherited
unload() → void

Operators

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