@livekit/protocol 1.45.0 → 1.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { proto3, Timestamp } from "@bufbuild/protobuf";
6
+ import { proto3, Struct, Timestamp } from "@bufbuild/protobuf";
7
7
 
8
8
  /**
9
9
  * @generated from enum livekit.agent.ChatRole
@@ -18,6 +18,32 @@ export const ChatRole = /*@__PURE__*/ proto3.makeEnum(
18
18
  ],
19
19
  );
20
20
 
21
+ /**
22
+ * @generated from enum livekit.agent.AgentState
23
+ */
24
+ export const AgentState = /*@__PURE__*/ proto3.makeEnum(
25
+ "livekit.agent.AgentState",
26
+ [
27
+ {no: 0, name: "AS_INITIALIZING"},
28
+ {no: 1, name: "AS_IDLE"},
29
+ {no: 2, name: "AS_LISTENING"},
30
+ {no: 3, name: "AS_THINKING"},
31
+ {no: 4, name: "AS_SPEAKING"},
32
+ ],
33
+ );
34
+
35
+ /**
36
+ * @generated from enum livekit.agent.UserState
37
+ */
38
+ export const UserState = /*@__PURE__*/ proto3.makeEnum(
39
+ "livekit.agent.UserState",
40
+ [
41
+ {no: 0, name: "US_SPEAKING"},
42
+ {no: 1, name: "US_LISTENING"},
43
+ {no: 2, name: "US_AWAY"},
44
+ ],
45
+ );
46
+
21
47
  /**
22
48
  * @generated from message livekit.agent.MetricsReport
23
49
  */
@@ -105,6 +131,20 @@ export const AgentHandoff = /*@__PURE__*/ proto3.makeMessageType(
105
131
  ],
106
132
  );
107
133
 
134
+ /**
135
+ * @generated from message livekit.agent.AgentConfigUpdate
136
+ */
137
+ export const AgentConfigUpdate = /*@__PURE__*/ proto3.makeMessageType(
138
+ "livekit.agent.AgentConfigUpdate",
139
+ () => [
140
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
141
+ { no: 2, name: "instructions", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
142
+ { no: 3, name: "tools_added", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
143
+ { no: 4, name: "tools_removed", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
144
+ { no: 5, name: "created_at", kind: "message", T: Timestamp },
145
+ ],
146
+ );
147
+
108
148
  /**
109
149
  * @generated from message livekit.agent.ChatContext
110
150
  */
@@ -125,7 +165,460 @@ export const ChatContext_ChatItem = /*@__PURE__*/ proto3.makeMessageType(
125
165
  { no: 2, name: "function_call", kind: "message", T: FunctionCall, oneof: "item" },
126
166
  { no: 3, name: "function_call_output", kind: "message", T: FunctionCallOutput, oneof: "item" },
127
167
  { no: 4, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "item" },
168
+ { no: 5, name: "agent_config_update", kind: "message", T: AgentConfigUpdate, oneof: "item" },
128
169
  ],
129
170
  {localName: "ChatContext_ChatItem"},
130
171
  );
131
172
 
173
+ /**
174
+ * @generated from message livekit.agent.LLMModelUsage
175
+ */
176
+ export const LLMModelUsage = /*@__PURE__*/ proto3.makeMessageType(
177
+ "livekit.agent.LLMModelUsage",
178
+ () => [
179
+ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
180
+ { no: 2, name: "model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
181
+ { no: 3, name: "input_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
182
+ { no: 4, name: "input_cached_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
183
+ { no: 5, name: "input_audio_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
184
+ { no: 6, name: "input_cached_audio_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
185
+ { no: 7, name: "input_text_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
186
+ { no: 8, name: "input_cached_text_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
187
+ { no: 9, name: "input_image_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
188
+ { no: 10, name: "input_cached_image_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
189
+ { no: 11, name: "output_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
190
+ { no: 12, name: "output_audio_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
191
+ { no: 13, name: "output_text_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
192
+ { no: 14, name: "session_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
193
+ ],
194
+ );
195
+
196
+ /**
197
+ * @generated from message livekit.agent.TTSModelUsage
198
+ */
199
+ export const TTSModelUsage = /*@__PURE__*/ proto3.makeMessageType(
200
+ "livekit.agent.TTSModelUsage",
201
+ () => [
202
+ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
203
+ { no: 2, name: "model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
204
+ { no: 3, name: "input_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
205
+ { no: 4, name: "output_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
206
+ { no: 5, name: "characters_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
207
+ { no: 6, name: "audio_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
208
+ ],
209
+ );
210
+
211
+ /**
212
+ * @generated from message livekit.agent.STTModelUsage
213
+ */
214
+ export const STTModelUsage = /*@__PURE__*/ proto3.makeMessageType(
215
+ "livekit.agent.STTModelUsage",
216
+ () => [
217
+ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
218
+ { no: 2, name: "model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
219
+ { no: 3, name: "input_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
220
+ { no: 4, name: "output_tokens", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
221
+ { no: 5, name: "audio_duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
222
+ ],
223
+ );
224
+
225
+ /**
226
+ * @generated from message livekit.agent.InterruptionModelUsage
227
+ */
228
+ export const InterruptionModelUsage = /*@__PURE__*/ proto3.makeMessageType(
229
+ "livekit.agent.InterruptionModelUsage",
230
+ () => [
231
+ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
232
+ { no: 2, name: "model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
233
+ { no: 3, name: "total_requests", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
234
+ ],
235
+ );
236
+
237
+ /**
238
+ * @generated from message livekit.agent.ModelUsage
239
+ */
240
+ export const ModelUsage = /*@__PURE__*/ proto3.makeMessageType(
241
+ "livekit.agent.ModelUsage",
242
+ () => [
243
+ { no: 1, name: "llm", kind: "message", T: LLMModelUsage, oneof: "usage" },
244
+ { no: 2, name: "tts", kind: "message", T: TTSModelUsage, oneof: "usage" },
245
+ { no: 3, name: "stt", kind: "message", T: STTModelUsage, oneof: "usage" },
246
+ { no: 4, name: "interruption", kind: "message", T: InterruptionModelUsage, oneof: "usage" },
247
+ ],
248
+ );
249
+
250
+ /**
251
+ * @generated from message livekit.agent.AgentSessionUsage
252
+ */
253
+ export const AgentSessionUsage = /*@__PURE__*/ proto3.makeMessageType(
254
+ "livekit.agent.AgentSessionUsage",
255
+ () => [
256
+ { no: 1, name: "model_usage", kind: "message", T: ModelUsage, repeated: true },
257
+ ],
258
+ );
259
+
260
+ /**
261
+ * @generated from message livekit.agent.AgentSessionEvent
262
+ */
263
+ export const AgentSessionEvent = /*@__PURE__*/ proto3.makeMessageType(
264
+ "livekit.agent.AgentSessionEvent",
265
+ () => [
266
+ { no: 1, name: "created_at", kind: "message", T: Timestamp },
267
+ { no: 10, name: "agent_state_changed", kind: "message", T: AgentSessionEvent_AgentStateChanged, oneof: "event" },
268
+ { no: 11, name: "user_state_changed", kind: "message", T: AgentSessionEvent_UserStateChanged, oneof: "event" },
269
+ { no: 12, name: "conversation_item_added", kind: "message", T: AgentSessionEvent_ConversationItemAdded, oneof: "event" },
270
+ { no: 13, name: "user_input_transcribed", kind: "message", T: AgentSessionEvent_UserInputTranscribed, oneof: "event" },
271
+ { no: 14, name: "function_tools_executed", kind: "message", T: AgentSessionEvent_FunctionToolsExecuted, oneof: "event" },
272
+ { no: 15, name: "error", kind: "message", T: AgentSessionEvent_Error, oneof: "event" },
273
+ { no: 16, name: "overlapping_speech", kind: "message", T: AgentSessionEvent_OverlappingSpeech, oneof: "event" },
274
+ { no: 17, name: "session_usage_updated", kind: "message", T: AgentSessionEvent_SessionUsageUpdated, oneof: "event" },
275
+ ],
276
+ );
277
+
278
+ /**
279
+ * @generated from message livekit.agent.AgentSessionEvent.AgentStateChanged
280
+ */
281
+ export const AgentSessionEvent_AgentStateChanged = /*@__PURE__*/ proto3.makeMessageType(
282
+ "livekit.agent.AgentSessionEvent.AgentStateChanged",
283
+ () => [
284
+ { no: 1, name: "old_state", kind: "enum", T: proto3.getEnumType(AgentState) },
285
+ { no: 2, name: "new_state", kind: "enum", T: proto3.getEnumType(AgentState) },
286
+ ],
287
+ {localName: "AgentSessionEvent_AgentStateChanged"},
288
+ );
289
+
290
+ /**
291
+ * @generated from message livekit.agent.AgentSessionEvent.UserStateChanged
292
+ */
293
+ export const AgentSessionEvent_UserStateChanged = /*@__PURE__*/ proto3.makeMessageType(
294
+ "livekit.agent.AgentSessionEvent.UserStateChanged",
295
+ () => [
296
+ { no: 1, name: "old_state", kind: "enum", T: proto3.getEnumType(UserState) },
297
+ { no: 2, name: "new_state", kind: "enum", T: proto3.getEnumType(UserState) },
298
+ ],
299
+ {localName: "AgentSessionEvent_UserStateChanged"},
300
+ );
301
+
302
+ /**
303
+ * @generated from message livekit.agent.AgentSessionEvent.ConversationItemAdded
304
+ */
305
+ export const AgentSessionEvent_ConversationItemAdded = /*@__PURE__*/ proto3.makeMessageType(
306
+ "livekit.agent.AgentSessionEvent.ConversationItemAdded",
307
+ () => [
308
+ { no: 1, name: "item", kind: "message", T: ChatContext_ChatItem },
309
+ ],
310
+ {localName: "AgentSessionEvent_ConversationItemAdded"},
311
+ );
312
+
313
+ /**
314
+ * @generated from message livekit.agent.AgentSessionEvent.UserInputTranscribed
315
+ */
316
+ export const AgentSessionEvent_UserInputTranscribed = /*@__PURE__*/ proto3.makeMessageType(
317
+ "livekit.agent.AgentSessionEvent.UserInputTranscribed",
318
+ () => [
319
+ { no: 1, name: "transcript", kind: "scalar", T: 9 /* ScalarType.STRING */ },
320
+ { no: 2, name: "is_final", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
321
+ { no: 3, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
322
+ ],
323
+ {localName: "AgentSessionEvent_UserInputTranscribed"},
324
+ );
325
+
326
+ /**
327
+ * @generated from message livekit.agent.AgentSessionEvent.FunctionToolsExecuted
328
+ */
329
+ export const AgentSessionEvent_FunctionToolsExecuted = /*@__PURE__*/ proto3.makeMessageType(
330
+ "livekit.agent.AgentSessionEvent.FunctionToolsExecuted",
331
+ () => [
332
+ { no: 1, name: "function_calls", kind: "message", T: FunctionCall, repeated: true },
333
+ { no: 2, name: "function_call_outputs", kind: "message", T: FunctionCallOutput, repeated: true },
334
+ ],
335
+ {localName: "AgentSessionEvent_FunctionToolsExecuted"},
336
+ );
337
+
338
+ /**
339
+ * @generated from message livekit.agent.AgentSessionEvent.Error
340
+ */
341
+ export const AgentSessionEvent_Error = /*@__PURE__*/ proto3.makeMessageType(
342
+ "livekit.agent.AgentSessionEvent.Error",
343
+ () => [
344
+ { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
345
+ ],
346
+ {localName: "AgentSessionEvent_Error"},
347
+ );
348
+
349
+ /**
350
+ * @generated from message livekit.agent.AgentSessionEvent.OverlappingSpeech
351
+ */
352
+ export const AgentSessionEvent_OverlappingSpeech = /*@__PURE__*/ proto3.makeMessageType(
353
+ "livekit.agent.AgentSessionEvent.OverlappingSpeech",
354
+ () => [
355
+ { no: 1, name: "is_interruption", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
356
+ { no: 2, name: "overlap_started_at", kind: "message", T: Timestamp, opt: true },
357
+ { no: 3, name: "detection_delay", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
358
+ { no: 4, name: "detected_at", kind: "message", T: Timestamp },
359
+ ],
360
+ {localName: "AgentSessionEvent_OverlappingSpeech"},
361
+ );
362
+
363
+ /**
364
+ * @generated from message livekit.agent.AgentSessionEvent.SessionUsageUpdated
365
+ */
366
+ export const AgentSessionEvent_SessionUsageUpdated = /*@__PURE__*/ proto3.makeMessageType(
367
+ "livekit.agent.AgentSessionEvent.SessionUsageUpdated",
368
+ () => [
369
+ { no: 1, name: "usage", kind: "message", T: AgentSessionUsage },
370
+ ],
371
+ {localName: "AgentSessionEvent_SessionUsageUpdated"},
372
+ );
373
+
374
+ /**
375
+ * @generated from message livekit.agent.SessionRequest
376
+ */
377
+ export const SessionRequest = /*@__PURE__*/ proto3.makeMessageType(
378
+ "livekit.agent.SessionRequest",
379
+ () => [
380
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
381
+ { no: 2, name: "ping", kind: "message", T: SessionRequest_Ping, oneof: "request" },
382
+ { no: 4, name: "get_chat_history", kind: "message", T: SessionRequest_GetChatHistory, oneof: "request" },
383
+ { no: 5, name: "run_input", kind: "message", T: SessionRequest_RunInput, oneof: "request" },
384
+ { no: 6, name: "get_agent_info", kind: "message", T: SessionRequest_GetAgentInfo, oneof: "request" },
385
+ { no: 7, name: "get_session_state", kind: "message", T: SessionRequest_GetSessionState, oneof: "request" },
386
+ { no: 8, name: "get_rtc_stats", kind: "message", T: SessionRequest_GetRTCStats, oneof: "request" },
387
+ { no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" },
388
+ ],
389
+ );
390
+
391
+ /**
392
+ * @generated from message livekit.agent.SessionRequest.Ping
393
+ */
394
+ export const SessionRequest_Ping = /*@__PURE__*/ proto3.makeMessageType(
395
+ "livekit.agent.SessionRequest.Ping",
396
+ [],
397
+ {localName: "SessionRequest_Ping"},
398
+ );
399
+
400
+ /**
401
+ * @generated from message livekit.agent.SessionRequest.GetChatHistory
402
+ */
403
+ export const SessionRequest_GetChatHistory = /*@__PURE__*/ proto3.makeMessageType(
404
+ "livekit.agent.SessionRequest.GetChatHistory",
405
+ [],
406
+ {localName: "SessionRequest_GetChatHistory"},
407
+ );
408
+
409
+ /**
410
+ * @generated from message livekit.agent.SessionRequest.RunInput
411
+ */
412
+ export const SessionRequest_RunInput = /*@__PURE__*/ proto3.makeMessageType(
413
+ "livekit.agent.SessionRequest.RunInput",
414
+ () => [
415
+ { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
416
+ ],
417
+ {localName: "SessionRequest_RunInput"},
418
+ );
419
+
420
+ /**
421
+ * @generated from message livekit.agent.SessionRequest.GetAgentInfo
422
+ */
423
+ export const SessionRequest_GetAgentInfo = /*@__PURE__*/ proto3.makeMessageType(
424
+ "livekit.agent.SessionRequest.GetAgentInfo",
425
+ [],
426
+ {localName: "SessionRequest_GetAgentInfo"},
427
+ );
428
+
429
+ /**
430
+ * @generated from message livekit.agent.SessionRequest.GetSessionState
431
+ */
432
+ export const SessionRequest_GetSessionState = /*@__PURE__*/ proto3.makeMessageType(
433
+ "livekit.agent.SessionRequest.GetSessionState",
434
+ [],
435
+ {localName: "SessionRequest_GetSessionState"},
436
+ );
437
+
438
+ /**
439
+ * @generated from message livekit.agent.SessionRequest.GetRTCStats
440
+ */
441
+ export const SessionRequest_GetRTCStats = /*@__PURE__*/ proto3.makeMessageType(
442
+ "livekit.agent.SessionRequest.GetRTCStats",
443
+ [],
444
+ {localName: "SessionRequest_GetRTCStats"},
445
+ );
446
+
447
+ /**
448
+ * @generated from message livekit.agent.SessionRequest.GetSessionUsage
449
+ */
450
+ export const SessionRequest_GetSessionUsage = /*@__PURE__*/ proto3.makeMessageType(
451
+ "livekit.agent.SessionRequest.GetSessionUsage",
452
+ [],
453
+ {localName: "SessionRequest_GetSessionUsage"},
454
+ );
455
+
456
+ /**
457
+ * @generated from message livekit.agent.SessionResponse
458
+ */
459
+ export const SessionResponse = /*@__PURE__*/ proto3.makeMessageType(
460
+ "livekit.agent.SessionResponse",
461
+ () => [
462
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
463
+ { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
464
+ { no: 3, name: "pong", kind: "message", T: SessionResponse_Pong, oneof: "response" },
465
+ { no: 5, name: "get_chat_history", kind: "message", T: SessionResponse_GetChatHistoryResponse, oneof: "response" },
466
+ { no: 6, name: "run_input", kind: "message", T: SessionResponse_RunInputResponse, oneof: "response" },
467
+ { no: 7, name: "get_agent_info", kind: "message", T: SessionResponse_GetAgentInfoResponse, oneof: "response" },
468
+ { no: 8, name: "get_session_state", kind: "message", T: SessionResponse_GetSessionStateResponse, oneof: "response" },
469
+ { no: 9, name: "get_rtc_stats", kind: "message", T: SessionResponse_GetRTCStatsResponse, oneof: "response" },
470
+ { no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" },
471
+ ],
472
+ );
473
+
474
+ /**
475
+ * @generated from message livekit.agent.SessionResponse.Pong
476
+ */
477
+ export const SessionResponse_Pong = /*@__PURE__*/ proto3.makeMessageType(
478
+ "livekit.agent.SessionResponse.Pong",
479
+ [],
480
+ {localName: "SessionResponse_Pong"},
481
+ );
482
+
483
+ /**
484
+ * @generated from message livekit.agent.SessionResponse.GetChatHistoryResponse
485
+ */
486
+ export const SessionResponse_GetChatHistoryResponse = /*@__PURE__*/ proto3.makeMessageType(
487
+ "livekit.agent.SessionResponse.GetChatHistoryResponse",
488
+ () => [
489
+ { no: 1, name: "items", kind: "message", T: ChatContext_ChatItem, repeated: true },
490
+ ],
491
+ {localName: "SessionResponse_GetChatHistoryResponse"},
492
+ );
493
+
494
+ /**
495
+ * @generated from message livekit.agent.SessionResponse.GetAgentInfoResponse
496
+ */
497
+ export const SessionResponse_GetAgentInfoResponse = /*@__PURE__*/ proto3.makeMessageType(
498
+ "livekit.agent.SessionResponse.GetAgentInfoResponse",
499
+ () => [
500
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
501
+ { no: 2, name: "instructions", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
502
+ { no: 3, name: "tools", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
503
+ { no: 4, name: "chat_ctx", kind: "message", T: ChatContext_ChatItem, repeated: true },
504
+ ],
505
+ {localName: "SessionResponse_GetAgentInfoResponse"},
506
+ );
507
+
508
+ /**
509
+ * @generated from message livekit.agent.SessionResponse.RunInputResponse
510
+ */
511
+ export const SessionResponse_RunInputResponse = /*@__PURE__*/ proto3.makeMessageType(
512
+ "livekit.agent.SessionResponse.RunInputResponse",
513
+ () => [
514
+ { no: 1, name: "items", kind: "message", T: ChatContext_ChatItem, repeated: true },
515
+ ],
516
+ {localName: "SessionResponse_RunInputResponse"},
517
+ );
518
+
519
+ /**
520
+ * @generated from message livekit.agent.SessionResponse.GetSessionStateResponse
521
+ */
522
+ export const SessionResponse_GetSessionStateResponse = /*@__PURE__*/ proto3.makeMessageType(
523
+ "livekit.agent.SessionResponse.GetSessionStateResponse",
524
+ () => [
525
+ { no: 1, name: "agent_state", kind: "enum", T: proto3.getEnumType(AgentState) },
526
+ { no: 2, name: "user_state", kind: "enum", T: proto3.getEnumType(UserState) },
527
+ { no: 3, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
528
+ { no: 4, name: "options", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
529
+ { no: 5, name: "created_at", kind: "message", T: Timestamp },
530
+ ],
531
+ {localName: "SessionResponse_GetSessionStateResponse"},
532
+ );
533
+
534
+ /**
535
+ * @generated from message livekit.agent.SessionResponse.GetRTCStatsResponse
536
+ */
537
+ export const SessionResponse_GetRTCStatsResponse = /*@__PURE__*/ proto3.makeMessageType(
538
+ "livekit.agent.SessionResponse.GetRTCStatsResponse",
539
+ () => [
540
+ { no: 1, name: "publisher_stats", kind: "message", T: Struct, repeated: true },
541
+ { no: 2, name: "subscriber_stats", kind: "message", T: Struct, repeated: true },
542
+ ],
543
+ {localName: "SessionResponse_GetRTCStatsResponse"},
544
+ );
545
+
546
+ /**
547
+ * @generated from message livekit.agent.SessionResponse.GetSessionUsageResponse
548
+ */
549
+ export const SessionResponse_GetSessionUsageResponse = /*@__PURE__*/ proto3.makeMessageType(
550
+ "livekit.agent.SessionResponse.GetSessionUsageResponse",
551
+ () => [
552
+ { no: 1, name: "usage", kind: "message", T: AgentSessionUsage },
553
+ { no: 2, name: "created_at", kind: "message", T: Timestamp },
554
+ ],
555
+ {localName: "SessionResponse_GetSessionUsageResponse"},
556
+ );
557
+
558
+ /**
559
+ * @generated from message livekit.agent.AgentSessionMessage
560
+ */
561
+ export const AgentSessionMessage = /*@__PURE__*/ proto3.makeMessageType(
562
+ "livekit.agent.AgentSessionMessage",
563
+ () => [
564
+ { no: 1, name: "audio_input", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioFrame, oneof: "message" },
565
+ { no: 2, name: "audio_output", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioFrame, oneof: "message" },
566
+ { no: 3, name: "event", kind: "message", T: AgentSessionEvent, oneof: "message" },
567
+ { no: 4, name: "request", kind: "message", T: SessionRequest, oneof: "message" },
568
+ { no: 5, name: "response", kind: "message", T: SessionResponse, oneof: "message" },
569
+ { no: 6, name: "audio_playback_flush", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackFlush, oneof: "message" },
570
+ { no: 7, name: "audio_playback_clear", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackClear, oneof: "message" },
571
+ { no: 8, name: "audio_playback_finished", kind: "message", T: AgentSessionMessage_ConsoleIO_AudioPlaybackFinished, oneof: "message" },
572
+ ],
573
+ );
574
+
575
+ /**
576
+ * @generated from message livekit.agent.AgentSessionMessage.ConsoleIO
577
+ */
578
+ export const AgentSessionMessage_ConsoleIO = /*@__PURE__*/ proto3.makeMessageType(
579
+ "livekit.agent.AgentSessionMessage.ConsoleIO",
580
+ [],
581
+ {localName: "AgentSessionMessage_ConsoleIO"},
582
+ );
583
+
584
+ /**
585
+ * @generated from message livekit.agent.AgentSessionMessage.ConsoleIO.AudioFrame
586
+ */
587
+ export const AgentSessionMessage_ConsoleIO_AudioFrame = /*@__PURE__*/ proto3.makeMessageType(
588
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioFrame",
589
+ () => [
590
+ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
591
+ { no: 2, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
592
+ { no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
593
+ { no: 4, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
594
+ ],
595
+ {localName: "AgentSessionMessage_ConsoleIO_AudioFrame"},
596
+ );
597
+
598
+ /**
599
+ * @generated from message livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFlush
600
+ */
601
+ export const AgentSessionMessage_ConsoleIO_AudioPlaybackFlush = /*@__PURE__*/ proto3.makeMessageType(
602
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFlush",
603
+ [],
604
+ {localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackFlush"},
605
+ );
606
+
607
+ /**
608
+ * @generated from message livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackClear
609
+ */
610
+ export const AgentSessionMessage_ConsoleIO_AudioPlaybackClear = /*@__PURE__*/ proto3.makeMessageType(
611
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackClear",
612
+ [],
613
+ {localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackClear"},
614
+ );
615
+
616
+ /**
617
+ * @generated from message livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFinished
618
+ */
619
+ export const AgentSessionMessage_ConsoleIO_AudioPlaybackFinished = /*@__PURE__*/ proto3.makeMessageType(
620
+ "livekit.agent.AgentSessionMessage.ConsoleIO.AudioPlaybackFinished",
621
+ [],
622
+ {localName: "AgentSessionMessage_ConsoleIO_AudioPlaybackFinished"},
623
+ );
624
+