Deploys DataRobot models to production, manages deployments, configures prediction environments, performs model swaps, and retrieves endpoints for predictions.
npx claudepluginhub datarobot-oss/datarobot-agent-skills --plugin datarobot-agent-skillsThis skill uses the workspace's default tool permissions.
This skill provides comprehensive guidance for deploying models, managing deployment configurations, and operating production deployments.
Guides DataRobot model predictions via real-time scoring, batch predictions, and dataset template generation. Validates inputs and retrieves deployment features for ML deployments.
Deploys trained ML models to production via REST APIs, Docker containers, Kubernetes clusters, with data validation, error handling, and performance monitoring.
Guides prediction monitoring in ML deployments with step-by-step instructions, best practices, code generation, and configs for MLOps pipelines, model serving, inference, and production optimization.
Share bugs, ideas, or general feedback.
This skill provides comprehensive guidance for deploying models, managing deployment configurations, and operating production deployments.
Most common use case: Deploy a trained model to production
create_deployment(model_id, deployment_name) to deploy modelget_deployment_endpoint(deployment_id) to retrieve prediction URLExample: "Deploy the best model from project abc123 as 'Sales Prediction v1'"
Use this skill when you need to:
User request: "Deploy the best model from project abc123 to production with the name 'Sales Prediction v1'."
Agent workflow:
User request: "Replace the model in deployment xyz789 with the latest model from project abc123."
Agent workflow:
deployment.validate_replacement_model(...))deployment.perform_model_replace(...))This skill guides you to use the DataRobot Python SDK directly. Install the SDK if needed:
pip install datarobot
Use these DataRobot SDK methods for deployment management:
Deployments:
dr.Deployment.create_from_learning_model(model_id, label) - Create deploymentdr.Deployment.get(deployment_id) - Get deployment detailsdr.Deployment.list(project_id) - List deploymentsdeployment.delete() - Delete deploymentModel Replacement (champion swap):
deployment.validate_replacement_model(new_model_id=...) - Validate replacement eligibilitydeployment.perform_model_replace(new_model_id=..., reason=...) - Replace champion model (async)Challenger Models (limited via SDK):
deployment.list_challengers() - List challenger models (if enabled/configured)deployment.get_challenger_models_settings() / deployment.update_challenger_models_settings(...) - Configure challenger models settingsDeployment Info:
deployment.get_features() - Get required featuresSee the Common Patterns section below for complete examples.
import datarobot as dr
import os
# Initialize client
client = dr.Client(
token=os.getenv("DATAROBOT_API_TOKEN"),
endpoint=os.getenv("DATAROBOT_ENDPOINT")
)
# Get best model from project
models = dr.Model.list("abc123")
best_model = max(models, key=lambda m: m.metrics.get('AUC', 0))
# Create deployment
deployment = dr.Deployment.create_from_learning_model(
model_id=best_model.id,
label="Sales Prediction v1",
description="Production deployment for sales forecasting"
)
print(f"Deployment created: {deployment.id}")
import datarobot as dr
# Create deployment with primary model
deployment = dr.Deployment.create_from_learning_model(
model_id=primary_model.id,
label="Sales Prediction v2"
)
# List challengers (if challenger models are configured/enabled)
challengers = deployment.list_challengers()
print(f"Challengers: {len(challengers)}")
Common errors and solutions:
pip install datarobot
import datarobot as dr
import os
client = dr.Client(
token=os.getenv("DATAROBOT_API_TOKEN"),
endpoint=os.getenv("DATAROBOT_ENDPOINT", "https://app.datarobot.com")
)