Example
The following agent will use Airflow to save and read a DAG file.cookbook/14_tools/airflow_tools.py
Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
dags_dir | Path or str | None | Directory for DAG files |
enable_save_dag_file | bool | True | Enables functionality to save Airflow DAG files |
enable_read_dag_file | bool | True | Enables functionality to read Airflow DAG files |
all | bool | False | Enables all functionality when set to True |
Toolkit Functions
| Function | Description |
|---|---|
save_dag_file | Saves python code for an Airflow DAG to a file |
read_dag_file | Reads an Airflow DAG file and returns the contents |
Developer Resources
- View Tools