def _is_databricks_client_available():
    """
    Checks if the connection requirements to attach to a Databricks serverless cluster
    are available in the environment for automatic client selection purposes in
    toolkit instantiation.

    Returns:
        bool: True if the requirements are available, False otherwise.
    """
    try:
        from databricks.connect.session import DatabricksSession

        if hasattr(DatabricksSession.builder, "serverless"):
            return True
    except Exception:
        return False

    Checks if the connection requirements to attach to a Databricks serverless cluster
    are available in the environment for automatic client selection purposes in
    toolkit instantiation.

    Returns:
        bool: True if the requirements are available, False otherwise.
    
ai/core/src/unitycatalog/ai/core/base.py