Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/grumpy-houses-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/rtc-node": patch
---

add agent dispatch config to room create options
7 changes: 6 additions & 1 deletion packages/livekit-server-sdk/src/RoomServiceClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2024 LiveKit, Inc.
//
// SPDX-License-Identifier: Apache-2.0
import type { DataPacket_Kind, RoomEgress, TrackInfo } from '@livekit/protocol';
import type { DataPacket_Kind, RoomAgentDispatch, RoomEgress, TrackInfo } from '@livekit/protocol';
import {
CreateRoomRequest,
DeleteRoomRequest,
Expand Down Expand Up @@ -79,6 +79,11 @@ export interface CreateOptions {
*/
syncStreams?: boolean;

/**
* agents that should be dispatched to this room
*/
agents?: RoomAgentDispatch[];

/**
* override the node room is allocated to, for debugging
* does not work with Cloud
Expand Down
1 change: 1 addition & 0 deletions packages/livekit-server-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
ParticipantInfo_State,
ParticipantPermission,
Room,
RoomAgentDispatch,
RoomCompositeEgressRequest,
RoomEgress,
S3Upload,
Expand Down