onAgentStateChanged

open fun onAgentStateChanged(agentState: AgentState)

Called when an AI agent moves between listening, thinking and speaking — drive the agent's on-screen indicator from this.

Fires only for a participant that is an AI agent. A state name the SDK does not recognise is reported as AgentState.IDLE.