dashai_get_prediction
Retrieve class counts for a completed prediction by providing its prediction ID. Returns aggregated counts and status without exposing raw row data.
Instructions
Returns class counts for a finished prediction — never the rows.
dashAI stores predictions as an Arrow dataset on disk and GET /predict/ only returns the SQL row (id, status, paths). This tool reads that row and, when the job is finished, aggregates the output column. The label list never leaves the function.
Args: params (GetPrediction): contains prediction_id from dashai_predict.
Returns: str: JSON {prediction_id, run_id, dataset_id, status, finished, n, n_classes, class_counts}. Paths and row lists are stripped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |