Skip to main content

getPredictSummary

The getPredictSummary function fetches the prediction summary for a consultation. This summary is generated based on the analysis of the consultation using a machine learning model and provides a brief overview or final result.

Parameters

  • consultation_id: (int) - The ID of the consultation for which the prediction summary is being fetched.

Returns

  • Future<PredictSummary>: A future that resolves with a PredictSummary object containing the consultation’s prediction summary.

Fields

  • summary: (String) - A textual summary of the consultation's prediction result.

Example Usage

ApiService apiService = ApiService();
final predictSummary = await apiService.getPredictSummary(12345);
print(predictSummary.summary); // Output: "This is a summary based on the consultation analysis."