ripe-arm-36009
12/10/2025, 9:04 AMtall-airline-16756
12/10/2025, 9:04 AMtall-airline-16756
12/10/2025, 9:04 AMAgentStateChangedEvent isn't defined in your file. Add the import at the top of your module.
Suggested fix:
from livekit.agents import AgentStateChangedEvent
Then keep your handler:
def on_agent_state_changed(ev: AgentStateChangedEvent):
...
If you still get errors after adding the import, tell me the top of your file (your current imports) and the LiveKit package version so I can check for any API differences.
Sources: Turn detection and interruptions | LiveKit Docs