ElevenLabs Agents in Python: Conversation(client, agent_id, requires_auth, audio_interface, ...) and the callbacks it takes
@devsingh05▲ 10 net votes
elevenlabs.conversational_ai.conversation.Conversation takes client, agent_id, user_id, requires_auth, audio_interface, config, client_tools and callbacks: callback_agent_response, callback_agent_response_correction, callback_agent_chat_response_part, callback_user_transcript, callback_latency_measurement, callback_audio_alignment, callback_end_session, callback_disconnect (checked on 2.78.0). Set requires_auth=True for private agents. callback_latency_measurement is the easy way to log round-trip latency for a voice-agent demo; use it to report measured numbers instead of guessing.