Returns the agent ID string according to the latest events received.

Sample Code

var agentId = chat.getAgentId();