migrate-from-model-serving

Migrate MLflow ResponsesAgent from Databricks Model Serving to Databricks Apps.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/bcheng004/agent-langgraph-advanced-workshop --skill migrate-from-model-serving-bcheng004
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrate-from-model-serving
Source: https://github.com/bcheng004/agent-langgraph-advanced-workshop/tree/main/.claude/skills/migrate-from-model-serving
Command: npx skills add https://github.com/bcheng004/agent-langgraph-advanced-workshop --skill migrate-from-model-serving-bcheng004

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the challenge of re-platforming an MLflow ResponsesAgent from Databricks Model Serving to Databricks Apps without losing behavior, streaming support, or stateful memory features.

Core Features & Use Cases

  • End-to-end migration plan: Converts a deployed Model Serving agent (predict/predict_stream) into an Apps-ready server using MLflow GenAI Server conventions.
  • Sync or async transformation path: Keeps code synchronous for minimal changes, or converts I/O to async for higher concurrency.
  • Stateful agent support: Preserves short-term (thread_id/checkpointer) and long-term (user_id/store) memory patterns by wiring the appropriate Lakebase integrations.
  • Deployment-ready deliverables: Produces the expected directory layout and guides updating databricks bundle configuration with resources extracted from the original model.

Quick Start

Tell the AI: Migrate my ResponsesAgent from Databricks Model Serving to a Databricks App, using my Databricks CLI profile, naming the app as my-app-name, and choosing async migration.

Frequently Asked Questions about migrate-from-model-serving

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

FAQPage Schema
How do I migrate an MLflow agent from Databricks Model Serving to Databricks Apps?

Migrating a Databricks Model Serving agent to Databricks Apps requires downloading model artifacts, extracting code, transforming class-based ResponsesAgent entry points into @invoke and @stream decorated functions, and deploying via Databricks Asset Bundles with correct serving and UC resource permissions.

What is the best way to preserve streaming behavior when moving a ResponsesAgent to Databricks Apps?

The best way to preserve streaming behavior is converting the class-based predict_stream method into an @stream decorated function following MLflow GenAI Server conventions, keeping synchronous execution for minimal changes or switching to asynchronous for higher concurrency.

Does migrating to Databricks Apps support stateful memory like checkpointer and store?

Migrating to Databricks Apps supports stateful memory by configuring Lakebase integrations, preserving short-term memory patterns like thread_id and checkpointer alongside long-term memory patterns like user_id and store.

How do I convert a class-based MLflow ResponsesAgent endpoint into decorated functions?

Converting a class-based MLflow ResponsesAgent endpoint into decorated functions requires extracting original model code and resources, then transforming predict and predict_stream methods into @invoke and @stream decorated functions compatible with MLflow GenAI Server conventions.

Can I switch my Databricks agent from synchronous to asynchronous execution during migration?

You can switch your Databricks agent from synchronous to asynchronous execution during migration, keeping code synchronous for minimal changes or converting I/O operations to async execution to achieve higher concurrency in the new Databricks Apps environment.

How do I configure Databricks Asset Bundles for a migrated agent?

Configuring Databricks Asset Bundles for a migrated agent requires producing the expected directory layout and updating bundle configuration with resources extracted from the original model, validating authentication, and applying correct Unity Catalog resource permissions for serving.