getAgentState

The agent's last reported AgentState. Starts at AgentState.IDLE and is updated just before onAgentStateChanged fires, so reading it from that callback already gives the new value.