Airflow AI SDK Migration

•
387
•

Migrates Airflow projects from the legacy AI SDK to the official Common AI provider using PydanticAI standards.

This skill automates the transition of Airflow data engineering workflows from the legacy airflow-ai-sdk to the official apache-airflow-providers-common-ai package. It handles the complex refactoring required for Airflow 3.0 compatibility, including updating LLM decorators, migrating code-based model configurations to Airflow connections, and replacing deprecated features like @task.embed. By following AIP-99 standards, it ensures your AI agentic workflows are production-ready and built on the robust PydanticAI framework.

Key Features

01Converts hardcoded model strings into standardized 'pydanticai' Airflow connections
02387 GitHub stars
03Refactors imports from airflow_ai_sdk to Pydantic and the common-ai provider
04Provides automated inventory tools to identify all necessary migration touchpoints
05Automated migration of @task.llm, @task.agent, and @task.llm_branch decorators
06Replaces legacy @task.embed with optimized plain @task implementations

Use Cases

01Upgrading existing Airflow AI pipelines for compatibility with Airflow 3.0+
02Transitioning from experimental AI SDKs to the official, supported Apache Airflow provider
03Standardizing LLM configuration across teams using Airflow's connection management