Skip to content

datarobot_genai.drtools.panels.compose

compose

Panel-composition tools (ported from wren-mcp, MODEL-24090).

These tools compose several primitives — the DataRobot SDK (scoped through :class:ThreadSafeDataRobotClient), the panel store, and the predictive delegates — to reproduce wren-mcp behaviors that have no single delegate equivalent: materializing AI Catalog datasets as panels, round-tripping panels back to the Catalog, SQL over datasets, prediction history/scoring into lineage-linked child panels, AutoPilot progress reports, and deterministic what-if adjustments.

Every panel write goes through :func:_get_store after the _require_mcp_sandbox() entitlement gate, and Dataset payloads are Parquet (matching the in-tree datasource.py convention). Composition results land in staging by default (wren's contract: staged first, promoted via move_panel).

wren → genai name mapping:

  • get_datarobot_dataset_as_panelcreate_dataset_panel_from_catalog
  • upload_panel_dataset_to_datarobotupload_dataset_panel_to_catalog
  • query_datarobot_datasetquery_datasets_to_panel
  • get_prediction_history, get_autopilot_status, predict_with_deployment, apply_what_if keep their names.