plexus.reports.blocks.score_results_report module

class plexus.reports.blocks.score_results_report.ScoreResultsReport(config: Dict[str, Any], params: Dict[str, Any] | None, api_client: PlexusDashboardClient)

Bases: BaseReportBlock

DEFAULT_DESCRIPTION: str | None = 'Prediction results for requested item identifiers'
DEFAULT_NAME: str | None = 'Score Results Report'
MAX_PREDICTION_CONCURRENCY = 4
async generate() Tuple[Dict[str, Any] | None, str | None]

Generates the data for this report block asynchronously.

Access block configuration via self.config and report parameters via self.params. Use self.api_client for data fetching. Use self._log(“message”) to record log information.

Returns:
A tuple containing:
  • A dictionary containing the generated data (JSON-serializable), or None on failure.

  • A string containing concatenated log messages, or None if no logs.