Agent

abstract class Agent

A representation of an LiveKit agent participant.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val agentParticipant: RemoteParticipant?

The io.livekit.android.room.participant.Participant for this agent.

Link copied to clipboard
abstract val agentState: AgentState

The state of the agent.

Link copied to clipboard
abstract val attributes: AgentAttributes?

The agent attributes for the agent.

Link copied to clipboard
abstract val audioTrack: TrackReference?

The agent's audio track if available.

Link copied to clipboard
abstract val failureReasons: List<String>

A list of failure reasons that have occurred for this agent.

Link copied to clipboard
abstract val isAvailable: Boolean

Whether the agent is connected and available.

Link copied to clipboard
abstract val videoTrack: TrackReference?

The agent's video track if available.

Functions

Link copied to clipboard
abstract suspend fun waitUntilAvailable()

A helper function that suspends until the agent is available.

Link copied to clipboard
abstract suspend fun waitUntilCamera()

A helper function that suspends until the agent's video track is available.

Link copied to clipboard
abstract suspend fun waitUntilMicrophone()

A helper function that suspends until the agent's audio track is available.