databricks-model-serving

Deploy and query MLflow models and GenAI agents on Databricks Model Serving endpoints.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/AarushiShah/coding-agents-databricks-apps --skill databricks-model-serving-aarushishah
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-model-serving
Source: https://github.com/AarushiShah/coding-agents-databricks-apps/tree/main/.claude/skills/databricks-model-serving
Command: npx skills add https://github.com/AarushiShah/coding-agents-databricks-apps --skill databricks-model-serving-aarushishah

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mlflow, databricks-langchain, langgraph, databricks-agents, pydantic, databricks-sdk, and includes references (resource) components.

What problem does it solve? Deploying ML models and LLM agents to production REST endpoints on Databricks involves many steps—logging to Unity Catalog, configuring resources for authentication, handling long async deployments, and querying endpoints correctly. This Skill provides the complete workflow with tested code patterns. ## Core Features & Use Cases - Classical ML Deployment: Use MLflow autolog to train, register, and serve sklearn, xgboost, and PyTorch models with scale-to-zero endpoints. - GenAI Agent Deployment: Build ResponsesAgent and LangGraph agents with UC Function and Vector Search tools, then deploy via async jobs to avoid timeouts. - Endpoint Querying: Query deployed endpoints via MCP tools, Python SDK, REST API, or OpenAI-compatible clients. - Use Case: Build a LangGraph agent that calls Unity Catalog functions, log it to Unity Catalog with auto-authentication resources, deploy it via a Databricks job, and query it with chat messages. ## Quick Start Ask the agent to deploy a GenAI agent to a Databricks Model Serving endpoint using the ResponsesAgent pattern and then query it with a test message.

Frequently Asked Questions about databricks-model-serving

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an MLflow model to a Databricks serving endpoint?

Register the model to Unity Catalog with mlflow autolog or log_model, then create an endpoint using the MLflow deployments SDK, Databricks SDK, or the Serving UI. Specify the entity name, version, workload size, and scale-to-zero settings.

How do I build a LangGraph agent for Databricks Model Serving?

Subclass MLflow 3's ResponsesAgent, implement predict and predict_stream methods, and use ChatDatabricks with a Foundation Model endpoint. Export the agent with mlflow.models.set_model and log it with mlflow.pyfunc.log_model referencing the agent file.

Why does my ResponsesAgent return an invalid output format error?

ResponsesAgent requires helper methods instead of raw dictionaries for output items. Use self.create_text_output_item(text, id) for text responses, and the function call helpers for tool calls and results.

How do I add Unity Catalog functions as agent tools?

Use UCFunctionToolkit from databricks-langchain with function names like catalog.schema.function, then bind the tools to your LLM. Register DatabricksFunction resources when logging the model so authentication passes through automatically.

Why does agent deployment time out on Databricks?

Agent deployment takes about 15 minutes, exceeding synchronous tool timeouts. Use a job-based approach: create a deployment job with manage_jobs, trigger it with run_now, and poll status with get_serving_endpoint_status.

What Databricks Runtime version is needed for GenAI agents?

DBR 16.1 or later is recommended because it pre-installs MLflow 3, LangChain, and pydantic. You still need to pip install databricks-langchain, langgraph, and databricks-agents for agent development.