createConversation method

void createConversation({
  1. String? systemMessage,
  2. String? promptTemplate,
  3. List<Map<String, dynamic>>? messages,
  4. List<Map<String, dynamic>>? tools,
  5. Map<String, dynamic>? extraContext,
  6. double temperature = 0.8,
  7. int topK = 40,
  8. double topP = 0.95,
  9. int seed = 1,
  10. bool npuBackend = false,
  11. String? loraPath,
})

Creates a conversation for generation/token operations.

Implementation

void createConversation({
  String? systemMessage,
  String? promptTemplate,
  List<Map<String, dynamic>>? messages,
  List<Map<String, dynamic>>? tools,
  Map<String, dynamic>? extraContext,
  double temperature = 0.8,
  int topK = 40,
  double topP = 0.95,
  int seed = 1,
  bool npuBackend = false,
  String? loraPath,
}) {
  throw UnsupportedError('LiteRT-LM runtime requires a native platform.');
}