completeWithTools abstract method

Future<ChatResponse> completeWithTools(
  1. List<ChatMessage> messages, {
  2. String? system,
  3. int? maxTokens,
  4. List<Tool> tools = const [],
})

Like ChatModel.complete, but the model may answer with ChatResponse.toolCalls instead of (or as well as) text.

Implementation

Future<ChatResponse> completeWithTools(
  List<ChatMessage> messages, {
  String? system,
  int? maxTokens,
  List<Tool> tools = const [],
});