(self, agent_id)
Lists connections for an agent, or returns empty list if there is no such agent.
Lists connections for an agent, or returns empty list if there is no such agent.
Lists connections for an agent or returns empty list if there is no such agent .
def list_connections_for_agent(self, agent_id):
        """
        Lists connections for an agent, or returns empty list if there is no such agent.
        """
        try:
            return self.agents[agent_id].list_connections()
        except KeyError:
            return []
def list_connections_for_agent ( self , agent_id ) : try : return self . agents [ agent_id ] . list_connections ( ) except KeyError : return [ ]