AgentState

Represents the runtime state of an AgentParticipant.

The state describes what the agent is doing at a given moment — useful for driving UI affordances such as a "thinking" indicator or a speaking waveform. Read the current state via getAgentState and subscribe to changes via onAgentStateChanged.

See also

ParticipantEventListener.onAgentStateChanged()

Entries

Link copied to clipboard

The agent is idle and not currently processing input or producing output. This is the initial state.

Link copied to clipboard

The agent is producing speech output (the agent's audio is playing).

Link copied to clipboard

The agent is processing input and preparing a response.

Link copied to clipboard

The agent is listening to user input (for example, capturing speech).