def get_average_latency(self) -> Union[int, float]:
        """
        Get the average latency of your conversational agent.
        """
        if len(self._latencies) > 1:
            return mean(self._latencies)
        elif len(self._latencies) == 1:
            return self._latencies[0]
        else:
            warnings.warn(
                message="There are no recorded latencies", category=UserWarning
            )
            return 0

        Get the average latency of your conversational agent.
        
llama-index-integrations/voice_agents/llama-index-voice-agents-elevenlabs/llama_index/voice_agents/elevenlabs/base.py