From 23a464df256e77d3942ee9a6e91b7b0d58024c08 Mon Sep 17 00:00:00 2001 From: huben Date: Mon, 18 Aug 2025 12:18:09 +0800 Subject: [PATCH] fix: create room request with agents --- packages/livekit-server-sdk/src/RoomServiceClient.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/livekit-server-sdk/src/RoomServiceClient.ts b/packages/livekit-server-sdk/src/RoomServiceClient.ts index 2a17e575..03b76d77 100644 --- a/packages/livekit-server-sdk/src/RoomServiceClient.ts +++ b/packages/livekit-server-sdk/src/RoomServiceClient.ts @@ -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, @@ -84,6 +84,11 @@ export interface CreateOptions { * does not work with Cloud */ nodeId?: string; + + /** + * Define agents that should be dispatched to this room + */ + agents?: RoomAgentDispatch[]; } export type SendDataOptions = {