INNER CODE UNIT · Python

get_available_sources

airweave-ai/error-monitoring-agent · backend/sources/__init__.py:86

def get_available_sources() -> Dict[str, Dict[str, Any]]:
    """
    Get status of all available data sources.
    
    Returns dict for API/UI showing which sources are configured.
    """
    result = {}
    
    for name, source_class in SOURCES.items():
        source = source_class()
        result[name] = {
            "name": source.name,
            "type": source.source_type,
            "configured": source.is_configured,
            "active": False,  # Will be set by caller
        }
    
    return result

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…