WebConversationHandle constructor
WebConversationHandle(
- JsLiteRtLmConversation _conversation, {
- required bool enableThinking,
- required Map<
String, Object?> extraContext, - required void onGeneration(),
- required Future<
JsLiteRtLmConversation> rebuild(), - List<
Object?> preface = const [], - bool vision = false,
- int? maxImages,
- int maxTokens = 0,
- bool audio = false,
- ToolCallReader toolCallsOf = nativeToolCalls,
- void onClose()?,
- LiteRtLmPageLock? pageLock,
Implementation
WebConversationHandle(
this._conversation, {
required this._enableThinking,
required this._extraContext,
required this._onGeneration,
required this._rebuild,
this._preface = const [],
this._vision = false,
this._maxImages,
this._maxTokens = 0,
this._audio = false,
this.toolCallsOf = nativeToolCalls,
this._onClose,
LiteRtLmPageLock? pageLock,
}) : _pageLock = pageLock ?? liteRtLmPageLock;