The agent's participant if connected to the room, otherwise undefined
The room the agent was called into
Adds a promise to be awaited whenever a new participant joins the room.
FunctionExistsError if an entrypoint already exists
Adds a promise to be awaited when shutdown is called.
Connects the agent to the room.
Optional
e2ee: E2EEOptionsOptional
rtcConfig: RtcConfigurationIt is recommended to run this command as early in the function as possible, as executing it later may cause noticeable delay between user and agent joins.
@livekit/rtc-node for more information about the parameters.
The job and environment context as seen by the agent, accessible by the entrypoint function.