@livekit/protocol 1.50.4 → 1.51.0

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.
@@ -17,7 +17,7 @@
17
17
  /* eslint-disable */
18
18
  // @ts-nocheck
19
19
 
20
- import { proto3, Timestamp } from "@bufbuild/protobuf";
20
+ import { Duration, proto3, Timestamp } from "@bufbuild/protobuf";
21
21
  import { ChatContext, ChatRole } from "./agent/livekit_agent_session_pb.js";
22
22
  import { PresignedPostRequest } from "./livekit_cloud_agent_pb.js";
23
23
  import { TokenPagination } from "./livekit_models_pb.js";
@@ -170,12 +170,16 @@ export const SimulationRun_JobMetrics = /*@__PURE__*/ proto3.makeMessageType(
170
170
  { no: 5, name: "llm", kind: "message", T: SimulationRun_JobMetrics_LLM },
171
171
  { no: 6, name: "tts", kind: "message", T: SimulationRun_JobMetrics_TTS },
172
172
  { no: 7, name: "conversation", kind: "message", T: SimulationRun_JobMetrics_Conversation },
173
- { no: 8, name: "simulator", kind: "message", T: SimulationRun_JobMetrics_Simulator },
174
173
  { no: 9, name: "turns", kind: "message", T: SimulationRun_JobMetrics_Turn, repeated: true },
175
174
  { no: 10, name: "judge_model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
- { no: 11, name: "audio_judge_model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
175
  { no: 12, name: "has_remote_session", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
178
176
  { no: 13, name: "t0", kind: "message", T: Timestamp },
177
+ { no: 14, name: "conciseness", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
178
+ { no: 15, name: "unnecessary_tool_calls", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
179
+ { no: 16, name: "information_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
180
+ { no: 17, name: "redundant_statements", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
181
+ { no: 18, name: "poor_question_quality", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
182
+ { no: 19, name: "conversation_progression", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
179
183
  ],
180
184
  {localName: "SimulationRun_JobMetrics"},
181
185
  );
@@ -194,10 +198,13 @@ export const SimulationRun_JobMetrics_STT = /*@__PURE__*/ proto3.makeMessageType
194
198
  { no: 4, name: "cer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
195
199
  { no: 9, name: "chars", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
196
200
  { no: 10, name: "char_errors", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
197
- { no: 5, name: "keyterm_recall", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
198
- { no: 6, name: "keyterms_uttered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
199
- { no: 7, name: "keyterms_recognized", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
200
- { no: 8, name: "transcription_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
201
+ { no: 8, name: "stt_delay_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
202
+ { no: 11, name: "entity_recognition", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
203
+ { no: 12, name: "entities_uttered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
204
+ { no: 13, name: "entities_recognized", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
205
+ { no: 14, name: "entity_recall", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
206
+ { no: 15, name: "entities_acquired_uttered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
207
+ { no: 16, name: "entities_acquired_recognized", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
201
208
  ],
202
209
  {localName: "SimulationRun_JobMetrics_STT"},
203
210
  );
@@ -211,20 +218,18 @@ export const SimulationRun_JobMetrics_LLM = /*@__PURE__*/ proto3.makeMessageType
211
218
  { no: 1, name: "ttft_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
212
219
  { no: 2, name: "ttfs_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
213
220
  { no: 3, name: "tokens_per_second", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
214
- { no: 4, name: "conciseness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
215
221
  ],
216
222
  {localName: "SimulationRun_JobMetrics_LLM"},
217
223
  );
218
224
 
219
225
  /**
220
- * The agent's voice. audio only.
226
+ * The agent's voice. Audio only.
221
227
  *
222
228
  * @generated from message livekit.SimulationRun.JobMetrics.TTS
223
229
  */
224
230
  export const SimulationRun_JobMetrics_TTS = /*@__PURE__*/ proto3.makeMessageType(
225
231
  "livekit.SimulationRun.JobMetrics.TTS",
226
232
  () => [
227
- { no: 1, name: "ttfa_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
228
233
  { no: 2, name: "ttfb_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
229
234
  { no: 3, name: "wer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
230
235
  { no: 7, name: "words", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
@@ -232,11 +237,12 @@ export const SimulationRun_JobMetrics_TTS = /*@__PURE__*/ proto3.makeMessageType
232
237
  { no: 9, name: "cer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
233
238
  { no: 10, name: "chars", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
234
239
  { no: 11, name: "char_errors", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
235
- { no: 4, name: "speech_rate_wpm", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
236
- { no: 12, name: "heard_words", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
237
- { no: 13, name: "speech_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
238
- { no: 5, name: "naturalness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
239
- { no: 6, name: "enunciation_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
240
+ { no: 14, name: "entity_recognition", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
241
+ { no: 15, name: "entities_uttered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
242
+ { no: 16, name: "entities_recognized", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
243
+ { no: 17, name: "entity_recall", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
244
+ { no: 18, name: "entities_acquired_uttered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
245
+ { no: 19, name: "entities_acquired_recognized", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
240
246
  ],
241
247
  {localName: "SimulationRun_JobMetrics_TTS"},
242
248
  );
@@ -250,43 +256,25 @@ export const SimulationRun_JobMetrics_Conversation = /*@__PURE__*/ proto3.makeMe
250
256
  "livekit.SimulationRun.JobMetrics.Conversation",
251
257
  () => [
252
258
  { no: 1, name: "turn_taking_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
253
- { no: 2, name: "response_latency_p50_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
254
- { no: 3, name: "response_latency_p95_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
255
- { no: 4, name: "response_latency_p99_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
256
- { no: 16, name: "response_latency_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
257
- { no: 5, name: "agent_yield_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
259
+ { no: 2, name: "heard_e2e_latency_p50_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
260
+ { no: 3, name: "heard_e2e_latency_p95_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
261
+ { no: 4, name: "heard_e2e_latency_p99_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
262
+ { no: 5, name: "time_to_yield_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
258
263
  { no: 6, name: "eot_misprediction_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
259
264
  { no: 7, name: "overlap_ratio", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
260
265
  { no: 8, name: "overlap_speech_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
261
266
  { no: 9, name: "total_speech_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
262
- { no: 10, name: "silence_total_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
263
267
  { no: 11, name: "awkward_silence_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
264
- { no: 12, name: "unanswered_persona_turns", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
268
+ { no: 12, name: "unanswered_turns", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
265
269
  { no: 13, name: "false_interruption_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
266
- { no: 14, name: "false_interruption_unrecovered_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
267
- { no: 15, name: "agent_reported_e2e_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
270
+ { no: 15, name: "e2e_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
268
271
  ],
269
272
  {localName: "SimulationRun_JobMetrics_Conversation"},
270
273
  );
271
274
 
272
275
  /**
273
- * Was the call spoiled by the simulator, not the agent? Diagnostic only —
274
- * never folded into the scores; run aggregation excludes flagged calls
275
- * from the two headline scores.
276
- *
277
- * @generated from message livekit.SimulationRun.JobMetrics.Simulator
278
- */
279
- export const SimulationRun_JobMetrics_Simulator = /*@__PURE__*/ proto3.makeMessageType(
280
- "livekit.SimulationRun.JobMetrics.Simulator",
281
- () => [
282
- { no: 1, name: "early_termination", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
283
- { no: 2, name: "late_termination", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
284
- ],
285
- {localName: "SimulationRun_JobMetrics_Simulator"},
286
- );
287
-
288
- /**
289
- * Rows exist for text and audio;
276
+ * Rows exist for text and audio. The groups above hold the means and pools
277
+ * over these; anything not measured for a turn stays unset.
290
278
  *
291
279
  * @generated from message livekit.SimulationRun.JobMetrics.Turn
292
280
  */
@@ -297,16 +285,26 @@ export const SimulationRun_JobMetrics_Turn = /*@__PURE__*/ proto3.makeMessageTyp
297
285
  { no: 2, name: "role", kind: "enum", T: proto3.getEnumType(ChatRole) },
298
286
  { no: 3, name: "start_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
299
287
  { no: 4, name: "end_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
300
- { no: 5, name: "stt", kind: "message", T: SimulationRun_JobMetrics_STT },
301
- { no: 6, name: "llm", kind: "message", T: SimulationRun_JobMetrics_LLM },
302
- { no: 7, name: "tts", kind: "message", T: SimulationRun_JobMetrics_TTS },
303
- { no: 8, name: "conversation", kind: "message", T: SimulationRun_JobMetrics_Conversation },
288
+ { no: 5, name: "stt_delay_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
289
+ { no: 6, name: "llm_ttft_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
290
+ { no: 7, name: "llm_ttfs_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
291
+ { no: 8, name: "llm_tps", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
292
+ { no: 9, name: "tts_ttfb_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
293
+ { no: 10, name: "e2e_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
294
+ { no: 11, name: "heard_e2e_latency_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
295
+ { no: 12, name: "time_to_yield_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
296
+ { no: 13, name: "turn_taking_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
297
+ { no: 14, name: "conciseness", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
298
+ { no: 15, name: "eot_misprediction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
299
+ { no: 16, name: "awkward_silence", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
300
+ { no: 17, name: "unanswered", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
304
301
  ],
305
302
  {localName: "SimulationRun_JobMetrics_Turn"},
306
303
  );
307
304
 
308
305
  /**
309
- * Aggregates over this run's jobs. Reuses the JobMetrics group shapes.
306
+ * Aggregates over this run's jobs, so a run summary does not have to pull
307
+ * every job and turn. Reuses the JobMetrics group shapes.
310
308
  *
311
309
  * @generated from message livekit.SimulationRun.RunMetrics
312
310
  */
@@ -320,9 +318,8 @@ export const SimulationRun_RunMetrics = /*@__PURE__*/ proto3.makeMessageType(
320
318
  { no: 5, name: "llm", kind: "message", T: SimulationRun_JobMetrics_LLM },
321
319
  { no: 6, name: "tts", kind: "message", T: SimulationRun_JobMetrics_TTS },
322
320
  { no: 7, name: "conversation", kind: "message", T: SimulationRun_JobMetrics_Conversation },
323
- { no: 9, name: "jobs_total", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
324
- { no: 10, name: "jobs_measured", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
325
- { no: 11, name: "jobs_simulator_fault", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
321
+ { no: 8, name: "conciseness", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
322
+ { no: 9, name: "conversation_progression", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
326
323
  ],
327
324
  {localName: "SimulationRun_RunMetrics"},
328
325
  );
@@ -349,6 +346,9 @@ export const SimulationRun_Create_Request = /*@__PURE__*/ proto3.makeMessageType
349
346
  { no: 7, name: "scenario_group", kind: "message", T: ScenarioGroup, opt: true },
350
347
  { no: 8, name: "concurrency", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
351
348
  { no: 9, name: "mode", kind: "enum", T: proto3.getEnumType(SimulationMode) },
349
+ { no: 10, name: "background_noise", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
350
+ { no: 11, name: "low_quality_microphone", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
351
+ { no: 12, name: "packet_loss", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
352
352
  ],
353
353
  {localName: "SimulationRun_Create_Request"},
354
354
  );
@@ -446,6 +446,9 @@ export const SimulationRun_List_Request = /*@__PURE__*/ proto3.makeMessageType(
446
446
  { no: 1, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
447
447
  { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(SimulationRun_Status), opt: true },
448
448
  { no: 3, name: "page_token", kind: "message", T: TokenPagination, opt: true },
449
+ { no: 4, name: "start_time", kind: "message", T: Timestamp, opt: true },
450
+ { no: 5, name: "end_time", kind: "message", T: Timestamp, opt: true },
451
+ { no: 6, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
449
452
  ],
450
453
  {localName: "SimulationRun_List_Request"},
451
454
  );
@@ -462,6 +465,57 @@ export const SimulationRun_List_Response = /*@__PURE__*/ proto3.makeMessageType(
462
465
  {localName: "SimulationRun_List_Response"},
463
466
  );
464
467
 
468
+ /**
469
+ * Counts of the runs `List` would return over the same window, bucketed by
470
+ * created_at instead of paginated.
471
+ *
472
+ * @generated from message livekit.SimulationRun.Counts
473
+ */
474
+ export const SimulationRun_Counts = /*@__PURE__*/ proto3.makeMessageType(
475
+ "livekit.SimulationRun.Counts",
476
+ [],
477
+ {localName: "SimulationRun_Counts"},
478
+ );
479
+
480
+ /**
481
+ * @generated from message livekit.SimulationRun.Counts.Request
482
+ */
483
+ export const SimulationRun_Counts_Request = /*@__PURE__*/ proto3.makeMessageType(
484
+ "livekit.SimulationRun.Counts.Request",
485
+ () => [
486
+ { no: 1, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
487
+ { no: 2, name: "start_time", kind: "message", T: Timestamp },
488
+ { no: 3, name: "end_time", kind: "message", T: Timestamp },
489
+ { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(SimulationRun_Status), opt: true },
490
+ { no: 5, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
491
+ ],
492
+ {localName: "SimulationRun_Counts_Request"},
493
+ );
494
+
495
+ /**
496
+ * @generated from message livekit.SimulationRun.Counts.Response
497
+ */
498
+ export const SimulationRun_Counts_Response = /*@__PURE__*/ proto3.makeMessageType(
499
+ "livekit.SimulationRun.Counts.Response",
500
+ () => [
501
+ { no: 1, name: "buckets", kind: "message", T: SimulationRun_Counts_Bucket, repeated: true },
502
+ { no: 2, name: "interval", kind: "message", T: Duration },
503
+ ],
504
+ {localName: "SimulationRun_Counts_Response"},
505
+ );
506
+
507
+ /**
508
+ * @generated from message livekit.SimulationRun.Counts.Bucket
509
+ */
510
+ export const SimulationRun_Counts_Bucket = /*@__PURE__*/ proto3.makeMessageType(
511
+ "livekit.SimulationRun.Counts.Bucket",
512
+ () => [
513
+ { no: 1, name: "bucket_start", kind: "message", T: Timestamp },
514
+ { no: 2, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
515
+ ],
516
+ {localName: "SimulationRun_Counts_Bucket"},
517
+ );
518
+
465
519
  /**
466
520
  * @generated from message livekit.SimulationRun.Cancel
467
521
  */