hundreds-rainbow-68836
04/15/2026, 4:46 AMtall-airline-16756
04/15/2026, 4:46 AMtall-airline-16756
04/15/2026, 4:46 AMagent_state and `user_state`:
• agent_state
◦ initializing — session is setting up; no audio/video processing yet
◦ listening — agent is listening for user input
◦ thinking — agent is processing input and generating a response
◦ speaking — agent is speaking; audio being generated
◦ idle — agent is ready but not currently processing input
• user_state
◦ speaking — user has started speaking
◦ listening — user has stopped speaking
◦ away — user is not present (disconnected or inactive); triggered after user_away_timeout (default 15.0s)
If you want, I can point you to the docs for these fields or show where user_away_timeout is configured.
Sources: Agent session | LiveKit Documentation | Turns overview | LiveKit Documentation, with interactive elements