@livekit/protocol 1.49.0 → 1.50.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.
- package/dist/index.cjs +36 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -1
- package/dist/index.d.mts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.mjs +36 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_session_pb.d.ts +42 -0
- package/src/gen/agent/livekit_agent_session_pb.js +14 -0
- package/src/gen/livekit_agent_pb.d.ts +5 -0
- package/src/gen/livekit_agent_pb.js +1 -0
- package/src/gen/livekit_agent_simulation_pb.d.ts +651 -6
- package/src/gen/livekit_agent_simulation_pb.js +170 -2
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +7 -0
- package/src/gen/livekit_connector_whatsapp_pb.js +1 -0
- package/src/gen/version.js +1 -1
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// @ts-nocheck
|
|
19
19
|
|
|
20
20
|
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
21
|
-
import { ChatContext } from "./agent/livekit_agent_session_pb.js";
|
|
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";
|
|
24
24
|
|
|
@@ -77,7 +77,6 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
77
77
|
{ no: 5, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
78
78
|
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
79
79
|
{ no: 7, name: "jobs", kind: "message", T: SimulationRun_Job, repeated: true },
|
|
80
|
-
{ no: 8, name: "summary", kind: "message", T: SimulationRunSummary },
|
|
81
80
|
{ no: 9, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
82
81
|
{ no: 10, name: "scenario_group", kind: "message", T: ScenarioGroup },
|
|
83
82
|
{ no: 11, name: "ended_at", kind: "message", T: Timestamp },
|
|
@@ -88,6 +87,8 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
88
87
|
{ no: 16, name: "usage", kind: "message", T: SimulationRun_Usage },
|
|
89
88
|
{ no: 17, name: "concurrency", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
90
89
|
{ no: 18, name: "mode", kind: "enum", T: proto3.getEnumType(SimulationMode) },
|
|
90
|
+
{ no: 19, name: "metrics", kind: "message", T: SimulationRun_RunMetrics },
|
|
91
|
+
{ no: 20, name: "summary_zstd", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
91
92
|
],
|
|
92
93
|
);
|
|
93
94
|
|
|
@@ -125,6 +126,7 @@ export const SimulationRun_Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
125
126
|
{ no: 11, name: "ended_at", kind: "message", T: Timestamp },
|
|
126
127
|
{ no: 12, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
127
128
|
{ no: 13, name: "usage", kind: "message", T: SimulationRun_Job_Usage },
|
|
129
|
+
{ no: 14, name: "metrics", kind: "message", T: SimulationRun_JobMetrics },
|
|
128
130
|
],
|
|
129
131
|
{localName: "SimulationRun_Job"},
|
|
130
132
|
);
|
|
@@ -155,6 +157,172 @@ export const SimulationRun_Job_Usage = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
155
157
|
{localName: "SimulationRun_Job_Usage"},
|
|
156
158
|
);
|
|
157
159
|
|
|
160
|
+
/**
|
|
161
|
+
* @generated from message livekit.SimulationRun.JobMetrics
|
|
162
|
+
*/
|
|
163
|
+
export const SimulationRun_JobMetrics = /*@__PURE__*/ proto3.makeMessageType(
|
|
164
|
+
"livekit.SimulationRun.JobMetrics",
|
|
165
|
+
() => [
|
|
166
|
+
{ no: 1, name: "accuracy_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
167
|
+
{ no: 2, name: "experience_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
168
|
+
{ no: 3, name: "task_completion", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
169
|
+
{ no: 4, name: "stt", kind: "message", T: SimulationRun_JobMetrics_STT },
|
|
170
|
+
{ no: 5, name: "llm", kind: "message", T: SimulationRun_JobMetrics_LLM },
|
|
171
|
+
{ no: 6, name: "tts", kind: "message", T: SimulationRun_JobMetrics_TTS },
|
|
172
|
+
{ no: 7, name: "conversation", kind: "message", T: SimulationRun_JobMetrics_Conversation },
|
|
173
|
+
{ no: 8, name: "simulator", kind: "message", T: SimulationRun_JobMetrics_Simulator },
|
|
174
|
+
{ no: 9, name: "turns", kind: "message", T: SimulationRun_JobMetrics_Turn, repeated: true },
|
|
175
|
+
{ 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
|
+
{ no: 12, name: "has_remote_session", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
178
|
+
{ no: 13, name: "t0", kind: "message", T: Timestamp },
|
|
179
|
+
],
|
|
180
|
+
{localName: "SimulationRun_JobMetrics"},
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The agent's perception of the caller.
|
|
185
|
+
*
|
|
186
|
+
* @generated from message livekit.SimulationRun.JobMetrics.STT
|
|
187
|
+
*/
|
|
188
|
+
export const SimulationRun_JobMetrics_STT = /*@__PURE__*/ proto3.makeMessageType(
|
|
189
|
+
"livekit.SimulationRun.JobMetrics.STT",
|
|
190
|
+
() => [
|
|
191
|
+
{ no: 1, name: "wer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
192
|
+
{ no: 2, name: "words", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
193
|
+
{ no: 3, name: "word_errors", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
194
|
+
{ no: 4, name: "cer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
195
|
+
{ no: 5, name: "keyterm_recall", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
196
|
+
{ no: 6, name: "keyterms_uttered", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
197
|
+
{ no: 7, name: "keyterms_recognized", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
198
|
+
{ no: 8, name: "transcription_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
199
|
+
],
|
|
200
|
+
{localName: "SimulationRun_JobMetrics_STT"},
|
|
201
|
+
);
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @generated from message livekit.SimulationRun.JobMetrics.LLM
|
|
205
|
+
*/
|
|
206
|
+
export const SimulationRun_JobMetrics_LLM = /*@__PURE__*/ proto3.makeMessageType(
|
|
207
|
+
"livekit.SimulationRun.JobMetrics.LLM",
|
|
208
|
+
() => [
|
|
209
|
+
{ no: 1, name: "ttft_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
210
|
+
{ no: 2, name: "ttfs_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
211
|
+
{ no: 3, name: "tokens_per_second", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
212
|
+
{ no: 4, name: "conciseness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
213
|
+
],
|
|
214
|
+
{localName: "SimulationRun_JobMetrics_LLM"},
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The agent's voice.
|
|
219
|
+
*
|
|
220
|
+
* @generated from message livekit.SimulationRun.JobMetrics.TTS
|
|
221
|
+
*/
|
|
222
|
+
export const SimulationRun_JobMetrics_TTS = /*@__PURE__*/ proto3.makeMessageType(
|
|
223
|
+
"livekit.SimulationRun.JobMetrics.TTS",
|
|
224
|
+
() => [
|
|
225
|
+
{ no: 1, name: "ttfa_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
226
|
+
{ no: 2, name: "ttfb_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
227
|
+
{ no: 3, name: "wer", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
228
|
+
{ no: 4, name: "speech_rate_wpm", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
229
|
+
{ no: 5, name: "naturalness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
230
|
+
{ no: 6, name: "enunciation_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
231
|
+
],
|
|
232
|
+
{localName: "SimulationRun_JobMetrics_TTS"},
|
|
233
|
+
);
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* End-to-end floor dynamics, measured off the audio timeline — the ground
|
|
237
|
+
* truth of what the caller hears, independent of agent self-reports.
|
|
238
|
+
*
|
|
239
|
+
* @generated from message livekit.SimulationRun.JobMetrics.Conversation
|
|
240
|
+
*/
|
|
241
|
+
export const SimulationRun_JobMetrics_Conversation = /*@__PURE__*/ proto3.makeMessageType(
|
|
242
|
+
"livekit.SimulationRun.JobMetrics.Conversation",
|
|
243
|
+
() => [
|
|
244
|
+
{ no: 1, name: "turn_taking_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
245
|
+
{ no: 2, name: "response_latency_p50_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
246
|
+
{ no: 3, name: "response_latency_p95_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
247
|
+
{ no: 4, name: "response_latency_p99_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
248
|
+
{ no: 5, name: "agent_yield_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
249
|
+
{ no: 6, name: "eot_misprediction_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
250
|
+
{ no: 7, name: "overlap_ratio", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
251
|
+
{ no: 8, name: "overlap_speech_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
252
|
+
{ no: 9, name: "total_speech_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
253
|
+
{ no: 10, name: "silence_total_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
254
|
+
{ no: 11, name: "awkward_silence_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
255
|
+
{ no: 12, name: "unanswered_persona_turns", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
256
|
+
{ no: 13, name: "false_interruption_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
257
|
+
{ no: 14, name: "false_interruption_unrecovered_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
258
|
+
{ no: 15, name: "agent_reported_e2e_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
259
|
+
],
|
|
260
|
+
{localName: "SimulationRun_JobMetrics_Conversation"},
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Was the call spoiled by the simulator, not the agent? Diagnostic only —
|
|
265
|
+
* never folded into the scores; run aggregation excludes flagged calls
|
|
266
|
+
* from the two headline scores.
|
|
267
|
+
*
|
|
268
|
+
* @generated from message livekit.SimulationRun.JobMetrics.Simulator
|
|
269
|
+
*/
|
|
270
|
+
export const SimulationRun_JobMetrics_Simulator = /*@__PURE__*/ proto3.makeMessageType(
|
|
271
|
+
"livekit.SimulationRun.JobMetrics.Simulator",
|
|
272
|
+
() => [
|
|
273
|
+
{ no: 1, name: "early_termination", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
274
|
+
{ no: 2, name: "late_termination", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
275
|
+
],
|
|
276
|
+
{localName: "SimulationRun_JobMetrics_Simulator"},
|
|
277
|
+
);
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @generated from message livekit.SimulationRun.JobMetrics.Turn
|
|
281
|
+
*/
|
|
282
|
+
export const SimulationRun_JobMetrics_Turn = /*@__PURE__*/ proto3.makeMessageType(
|
|
283
|
+
"livekit.SimulationRun.JobMetrics.Turn",
|
|
284
|
+
() => [
|
|
285
|
+
{ no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
286
|
+
{ no: 2, name: "role", kind: "enum", T: proto3.getEnumType(ChatRole) },
|
|
287
|
+
{ no: 3, name: "start_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
288
|
+
{ no: 4, name: "end_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
289
|
+
{ no: 5, name: "response_latency_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
290
|
+
{ no: 6, name: "transcription_delay_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
291
|
+
{ no: 7, name: "llm_ttft_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
292
|
+
{ no: 8, name: "llm_ttfs_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
293
|
+
{ no: 9, name: "tts_ttfa_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
294
|
+
{ no: 10, name: "tts_ttfb_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
295
|
+
{ no: 11, name: "agent_reported_e2e_latency_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
296
|
+
{ no: 12, name: "conciseness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
297
|
+
{ no: 13, name: "naturalness_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
298
|
+
{ no: 14, name: "enunciation_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
299
|
+
{ no: 15, name: "flags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
300
|
+
],
|
|
301
|
+
{localName: "SimulationRun_JobMetrics_Turn"},
|
|
302
|
+
);
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Aggregates over this run's jobs. Reuses the JobMetrics group shapes.
|
|
306
|
+
*
|
|
307
|
+
* @generated from message livekit.SimulationRun.RunMetrics
|
|
308
|
+
*/
|
|
309
|
+
export const SimulationRun_RunMetrics = /*@__PURE__*/ proto3.makeMessageType(
|
|
310
|
+
"livekit.SimulationRun.RunMetrics",
|
|
311
|
+
() => [
|
|
312
|
+
{ no: 1, name: "accuracy_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
313
|
+
{ no: 2, name: "experience_score", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
314
|
+
{ no: 3, name: "scenario_pass_rate", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
315
|
+
{ no: 4, name: "stt", kind: "message", T: SimulationRun_JobMetrics_STT },
|
|
316
|
+
{ no: 5, name: "llm", kind: "message", T: SimulationRun_JobMetrics_LLM },
|
|
317
|
+
{ no: 6, name: "tts", kind: "message", T: SimulationRun_JobMetrics_TTS },
|
|
318
|
+
{ no: 7, name: "conversation", kind: "message", T: SimulationRun_JobMetrics_Conversation },
|
|
319
|
+
{ no: 9, name: "jobs_total", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
320
|
+
{ no: 10, name: "jobs_failed", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
321
|
+
{ no: 11, name: "jobs_simulator_fault", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
322
|
+
],
|
|
323
|
+
{localName: "SimulationRun_RunMetrics"},
|
|
324
|
+
);
|
|
325
|
+
|
|
158
326
|
/**
|
|
159
327
|
* @generated from message livekit.SimulationRun.Create
|
|
160
328
|
*/
|
|
@@ -284,6 +284,13 @@ export declare class ConnectWhatsAppCallRequest extends Message<ConnectWhatsAppC
|
|
|
284
284
|
*/
|
|
285
285
|
sdp?: SessionDescription;
|
|
286
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Wait for the answer for the call before returning.
|
|
289
|
+
*
|
|
290
|
+
* @generated from field: bool wait_until_answered = 3;
|
|
291
|
+
*/
|
|
292
|
+
waitUntilAnswered: boolean;
|
|
293
|
+
|
|
287
294
|
constructor(data?: PartialMessage<ConnectWhatsAppCallRequest>);
|
|
288
295
|
|
|
289
296
|
static readonly runtime: typeof proto3;
|
|
@@ -104,6 +104,7 @@ export const ConnectWhatsAppCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
104
104
|
() => [
|
|
105
105
|
{ no: 1, name: "whatsapp_call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
106
106
|
{ no: 2, name: "sdp", kind: "message", T: SessionDescription },
|
|
107
|
+
{ no: 3, name: "wait_until_answered", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
107
108
|
],
|
|
108
109
|
);
|
|
109
110
|
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.50.0';
|