parseAll static method

List<FunctionCallResponse> parseAll(
  1. String text, {
  2. ModelType? modelType,
})

Parse all function calls from text (for parallel tool calls)

Implementation

static List<FunctionCallResponse> parseAll(String text, {ModelType? modelType}) {
  if (text.trim().isEmpty) return [];

  try {
    return FunctionCallFormatFactory.create(modelType).parseAll(text);
  } catch (e) {
    debugPrint('FunctionCallParser: Error parsing function calls: $e');
    return [];
  }
}