sendChatRequest abstract method

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

Sends a single, complete chat request to the LLM.

Implementation

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