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_panel→create_dataset_panel_from_catalogupload_panel_dataset_to_datarobot→upload_dataset_panel_to_catalogquery_datarobot_dataset→query_datasets_to_panelget_prediction_history,get_autopilot_status,predict_with_deployment,apply_what_ifkeep their names.