Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

skvorn/pydantic-airflow-agent

Open more actions menu
 
 

Repository files navigation

PydanticAI Airflow Agent Demo

A demo project showing how to build an AI agent that interacts with Apache Airflow using natural language queries. Built with PydanticAI and Gemini 2.0.

"What's the status of our payment report DAG?" - Now you can simply ask your agent! 🚀

AI Airflow Agent

Overview

This project demonstrates how to:

  • Create a PydanticAI agent that interacts with Airflow's API
  • Handle natural language queries about DAG statuses
  • Return structured, type-safe responses
  • Implement function tools for models to retrieve extra information
  • Use Gemini 2.0 for enhanced language understanding

Prerequisites

  • Python 3.12
  • Poetry
  • Docker
  • Astro CLI
  • Google Cloud credentials (for Gemini 2.0)

Quick Start

# Install dependencies
poetry install

# Start Airflow
make airflow-start

# Run the agent
make run-agent

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.2%
  • Makefile 4.4%
  • Dockerfile 0.4%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.