WebConversationHandle constructor

WebConversationHandle(
  1. JsLiteRtLmConversation _conversation, {
  2. required bool enableThinking,
  3. required Map<String, Object?> extraContext,
  4. required void onGeneration(),
  5. required Future<JsLiteRtLmConversation> rebuild(
    1. List<Object?> replay
    ),
  6. List<Object?> preface = const [],
  7. bool vision = false,
  8. int? maxImages,
  9. int maxTokens = 0,
  10. bool audio = false,
  11. ToolCallReader toolCallsOf = nativeToolCalls,
  12. void onClose()?,
  13. 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;