INNER CODE UNIT · Python

get_state

airweave-ai/error-monitoring-agent · backend/main.py:486

async def get_state():
    """
    Get current state storage information.
    
    Returns statistics and recent signatures for debugging/admin.
    """
    state = get_state_manager()
    signatures = state.get_all_signatures()
    mutes = state.get_active_mutes()
    
    return {
        "stats": state.get_stats(),
        "recent_signatures": list(signatures.keys())[-10:],  # Last 10
        "active_mutes": list(mutes.keys()),
    }


class MuteRequest(BaseModel):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…