Class: MeetingRoom
Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:58
One room per run, made at dispatch: a publish-only token for the bot, a subscribe-only token for the agent.
Constructors
Constructor
new MeetingRoom(
service,options?):MeetingRoom
Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:70
Parameters
service
The host's room service on its LiveKit server SDK.
options?
MeetingRoomOptions = {}
The name prefix, the timeouts, the tokens' lifetime and the two identities; each has a default.
Returns
MeetingRoom
Methods
agentToken()
agentToken(
roomName):Promise<string>
Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:105
Mints the listening agent's subscribe-only token for a run's room, when the agent is about to connect. The manager keeps no token, and one minted at dispatch may have expired by the time the agent joins, since a run can wait in the waiting room longer than a token lives.
Parameters
roomName
string
The run's room, as its dispatch record names it (run.dispatch.roomName).
Returns
Promise<string>
create()
create(
runId):Promise<MeetingRoomHandle>
Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:83
Makes the run's room, the prefix then the run id, for two participants (the bot and the agent), and mints the bot's publish-only token and the agent's subscribe-only token for it. Call it at dispatch, never at scheduling.
Parameters
runId
string
Returns
Promise<MeetingRoomHandle>
delete()
delete(
name):Promise<void>
Defined in: packages/agentos/src/io/channels/meetings/MeetingRoom.ts:110
Deletes the room; a room that is already gone is not an error. The service reports a missing room with status 404; any other rejection, an object or not, is passed on as it is.
Parameters
name
string
Returns
Promise<void>