# utils.py """ Utility functions for the app """ import streamlit as st from typing import List, Dict, Any def display_agent_results(agents: List[Dict[str, Any]], agent_type: str = "selling"): """Display agent recommendations in a clean format""" if not agents: st.warning("No agents found matching your criteria.") return for agent in agents: with st.container(): col1, col2 = st.columns([2, 3]) with col1: st.subheader(f"🏢 {agent['AgentName']}") st.write(f"**Office:** {agent['OfficeName']}") score_color = ( "green" if agent["Score"] >= 80 else "orange" if agent["Score"] >= 60 else "red" ) st.markdown( f"