sendStreamingChatRequest abstract method

Stream<Map<String, dynamic>> sendStreamingChatRequest(
  1. List<Map<String, dynamic>> messages,
  2. List<Map<String, dynamic>>? tools, {
  3. double? temperature,
  4. int? maxCompletionTokens,
  5. double? topP,
  6. String? reasoningEffort,
  7. dynamic stop,
  8. CancellationToken? cancellationToken,
})

Sends a streaming chat request to the LLM, yielding chunks as they arrive.

Implementation

Stream<Map<String, dynamic>> sendStreamingChatRequest(
  List<Map<String, dynamic>> messages,
  List<Map<String, dynamic>>? tools, {
  double? temperature,
  int? maxCompletionTokens,
  double? topP,
  String? reasoningEffort,
  dynamic stop,
  CancellationToken? cancellationToken,
});