Package 

Class Agent


  • 
    public abstract class Agent
    
                        

    A representation of an LiveKit agent participant.

    • Constructor Detail

      • Agent

        Agent()
    • Method Detail

      • getAgentParticipant

         abstract RemoteParticipant getAgentParticipant()

        The RemoteParticipant for this agent.

      • getAttributes

         abstract AgentAttributes getAttributes()

        The agent attributes for the agent.

      • getCanListen

         abstract Boolean getCanListen()

        Whether the agent is capable of accepting input (including while the agent is thinking or speaking).

        Note that this may not the agent is actually connected - the audio pre-connect buffer could be active and recording user input before the agent actually connects.

      • getIsFinished

         abstract Boolean getIsFinished()

        Indicates when the client has diconnected from the agent.

      • getIsPending

         abstract Boolean getIsPending()

        Indicates when the agent currently connecting or setting itself up.

      • waitUntilAvailable

         abstract Unit waitUntilAvailable()

        A helper function that suspends until the agent is available.

      • waitUntilCamera

         abstract Unit waitUntilCamera()

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

      • waitUntilMicrophone

         abstract Unit waitUntilMicrophone()

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