tessl install tessl/pypi-apache-airflow-providers-dbt-cloud@4.4.0Provider package for integrating Apache Airflow with dbt Cloud for data transformation workflow orchestration
Agent Success
Agent success rate when using this tile
84%
Improvement
Agent success rate improvement when using this tile compared to baseline
1x
Baseline
Agent success rate without this tile
84%
Build a connection validation utility for dbt Cloud that verifies API connectivity and retrieves basic account information.
Create a Python module that provides functionality to:
The utility should accept:
@generates
def create_connection(token: str, account_id: int = None, tenant: str = None):
"""
Create a connection to dbt Cloud API.
Args:
token: API authentication token
account_id: Optional account ID for multi-account scenarios
tenant: Optional custom tenant/host for private dbt Cloud instances
Returns:
A connection object that can be used for API interactions
"""
pass
def test_connection(connection) -> bool:
"""
Test if the connection to dbt Cloud API is valid.
Args:
connection: The connection object to test
Returns:
True if connection is valid, False otherwise
"""
pass
def get_accounts(connection) -> list:
"""
Retrieve list of accounts accessible with the current credentials.
Args:
connection: The connection object to use
Returns:
List of dictionaries containing account information (id, name, etc.)
"""
passProvides dbt Cloud API integration capabilities for Apache Airflow.