@livekit/protocol 1.45.4 → 1.45.6

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.
@@ -0,0 +1,996 @@
1
+ // Copyright 2026 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
16
+ // @generated from file agent/livekit_agent_inference.proto (package livekit.agent, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { ChatMessage } from "./livekit_agent_session_pb.js";
23
+
24
+ /**
25
+ * @generated from enum livekit.agent.AudioEncoding
26
+ */
27
+ export declare enum AudioEncoding {
28
+ /**
29
+ * @generated from enum value: AUDIO_ENCODING_PCM_S16LE = 0;
30
+ */
31
+ PCM_S16LE = 0,
32
+
33
+ /**
34
+ * @generated from enum value: AUDIO_ENCODING_OPUS = 1;
35
+ */
36
+ OPUS = 1,
37
+ }
38
+
39
+ /**
40
+ * @generated from message livekit.agent.SessionSettings
41
+ */
42
+ export declare class SessionSettings extends Message<SessionSettings> {
43
+ /**
44
+ * @generated from field: uint32 sample_rate = 1;
45
+ */
46
+ sampleRate: number;
47
+
48
+ /**
49
+ * @generated from field: livekit.agent.AudioEncoding encoding = 2;
50
+ */
51
+ encoding: AudioEncoding;
52
+
53
+ /**
54
+ * @generated from oneof livekit.agent.SessionSettings.type_settings
55
+ */
56
+ typeSettings: {
57
+ /**
58
+ * @generated from field: livekit.agent.EotSettings eot_settings = 3;
59
+ */
60
+ value: EotSettings;
61
+ case: "eotSettings";
62
+ } | {
63
+ /**
64
+ * @generated from field: livekit.agent.InterruptionSettings interruption_settings = 4;
65
+ */
66
+ value: InterruptionSettings;
67
+ case: "interruptionSettings";
68
+ } | { case: undefined; value?: undefined };
69
+
70
+ constructor(data?: PartialMessage<SessionSettings>);
71
+
72
+ static readonly runtime: typeof proto3;
73
+ static readonly typeName = "livekit.agent.SessionSettings";
74
+ static readonly fields: FieldList;
75
+
76
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionSettings;
77
+
78
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionSettings;
79
+
80
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionSettings;
81
+
82
+ static equals(a: SessionSettings | PlainMessage<SessionSettings> | undefined, b: SessionSettings | PlainMessage<SessionSettings> | undefined): boolean;
83
+ }
84
+
85
+ /**
86
+ * @generated from message livekit.agent.InferenceError
87
+ */
88
+ export declare class InferenceError extends Message<InferenceError> {
89
+ /**
90
+ * @generated from field: string message = 1;
91
+ */
92
+ message: string;
93
+
94
+ /**
95
+ * error code follows the HTTP status code convention
96
+ * 4xx for client errors
97
+ * 5xx for server errors
98
+ *
99
+ * @generated from field: uint32 code = 2;
100
+ */
101
+ code: number;
102
+
103
+ constructor(data?: PartialMessage<InferenceError>);
104
+
105
+ static readonly runtime: typeof proto3;
106
+ static readonly typeName = "livekit.agent.InferenceError";
107
+ static readonly fields: FieldList;
108
+
109
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InferenceError;
110
+
111
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InferenceError;
112
+
113
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InferenceError;
114
+
115
+ static equals(a: InferenceError | PlainMessage<InferenceError> | undefined, b: InferenceError | PlainMessage<InferenceError> | undefined): boolean;
116
+ }
117
+
118
+ /**
119
+ * @generated from message livekit.agent.EotSettings
120
+ */
121
+ export declare class EotSettings extends Message<EotSettings> {
122
+ /**
123
+ * @generated from field: google.protobuf.Duration detection_interval = 1;
124
+ */
125
+ detectionInterval?: Duration;
126
+
127
+ constructor(data?: PartialMessage<EotSettings>);
128
+
129
+ static readonly runtime: typeof proto3;
130
+ static readonly typeName = "livekit.agent.EotSettings";
131
+ static readonly fields: FieldList;
132
+
133
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EotSettings;
134
+
135
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EotSettings;
136
+
137
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EotSettings;
138
+
139
+ static equals(a: EotSettings | PlainMessage<EotSettings> | undefined, b: EotSettings | PlainMessage<EotSettings> | undefined): boolean;
140
+ }
141
+
142
+ /**
143
+ * @generated from message livekit.agent.InterruptionSettings
144
+ */
145
+ export declare class InterruptionSettings extends Message<InterruptionSettings> {
146
+ /**
147
+ * detection threshold in range [0.0, 1.0]; higher values are less sensitive
148
+ *
149
+ * @generated from field: float threshold = 1;
150
+ */
151
+ threshold: number;
152
+
153
+ /**
154
+ * minimum number of frames with probability greater than threshold to trigger an interruption
155
+ *
156
+ * @generated from field: uint32 min_frames = 2;
157
+ */
158
+ minFrames: number;
159
+
160
+ /**
161
+ * @generated from field: google.protobuf.Duration max_audio_duration = 3;
162
+ */
163
+ maxAudioDuration?: Duration;
164
+
165
+ /**
166
+ * @generated from field: google.protobuf.Duration audio_prefix_duration = 4;
167
+ */
168
+ audioPrefixDuration?: Duration;
169
+
170
+ /**
171
+ * @generated from field: google.protobuf.Duration detection_interval = 5;
172
+ */
173
+ detectionInterval?: Duration;
174
+
175
+ constructor(data?: PartialMessage<InterruptionSettings>);
176
+
177
+ static readonly runtime: typeof proto3;
178
+ static readonly typeName = "livekit.agent.InterruptionSettings";
179
+ static readonly fields: FieldList;
180
+
181
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InterruptionSettings;
182
+
183
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InterruptionSettings;
184
+
185
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InterruptionSettings;
186
+
187
+ static equals(a: InterruptionSettings | PlainMessage<InterruptionSettings> | undefined, b: InterruptionSettings | PlainMessage<InterruptionSettings> | undefined): boolean;
188
+ }
189
+
190
+ /**
191
+ * @generated from message livekit.agent.SessionCreate
192
+ */
193
+ export declare class SessionCreate extends Message<SessionCreate> {
194
+ /**
195
+ * @generated from field: livekit.agent.SessionSettings settings = 1;
196
+ */
197
+ settings?: SessionSettings;
198
+
199
+ constructor(data?: PartialMessage<SessionCreate>);
200
+
201
+ static readonly runtime: typeof proto3;
202
+ static readonly typeName = "livekit.agent.SessionCreate";
203
+ static readonly fields: FieldList;
204
+
205
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionCreate;
206
+
207
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionCreate;
208
+
209
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionCreate;
210
+
211
+ static equals(a: SessionCreate | PlainMessage<SessionCreate> | undefined, b: SessionCreate | PlainMessage<SessionCreate> | undefined): boolean;
212
+ }
213
+
214
+ /**
215
+ * @generated from message livekit.agent.InputAudio
216
+ */
217
+ export declare class InputAudio extends Message<InputAudio> {
218
+ /**
219
+ * @generated from field: bytes audio = 1;
220
+ */
221
+ audio: Uint8Array;
222
+
223
+ /**
224
+ * @generated from field: google.protobuf.Timestamp created_at = 2;
225
+ */
226
+ createdAt?: Timestamp;
227
+
228
+ /**
229
+ * @generated from field: uint32 num_samples = 3;
230
+ */
231
+ numSamples: number;
232
+
233
+ constructor(data?: PartialMessage<InputAudio>);
234
+
235
+ static readonly runtime: typeof proto3;
236
+ static readonly typeName = "livekit.agent.InputAudio";
237
+ static readonly fields: FieldList;
238
+
239
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InputAudio;
240
+
241
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InputAudio;
242
+
243
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InputAudio;
244
+
245
+ static equals(a: InputAudio | PlainMessage<InputAudio> | undefined, b: InputAudio | PlainMessage<InputAudio> | undefined): boolean;
246
+ }
247
+
248
+ /**
249
+ * @generated from message livekit.agent.EotInputChatContext
250
+ */
251
+ export declare class EotInputChatContext extends Message<EotInputChatContext> {
252
+ /**
253
+ * @generated from field: repeated livekit.agent.ChatMessage messages = 1;
254
+ */
255
+ messages: ChatMessage[];
256
+
257
+ constructor(data?: PartialMessage<EotInputChatContext>);
258
+
259
+ static readonly runtime: typeof proto3;
260
+ static readonly typeName = "livekit.agent.EotInputChatContext";
261
+ static readonly fields: FieldList;
262
+
263
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EotInputChatContext;
264
+
265
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EotInputChatContext;
266
+
267
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EotInputChatContext;
268
+
269
+ static equals(a: EotInputChatContext | PlainMessage<EotInputChatContext> | undefined, b: EotInputChatContext | PlainMessage<EotInputChatContext> | undefined): boolean;
270
+ }
271
+
272
+ /**
273
+ * @generated from message livekit.agent.SessionFlush
274
+ */
275
+ export declare class SessionFlush extends Message<SessionFlush> {
276
+ constructor(data?: PartialMessage<SessionFlush>);
277
+
278
+ static readonly runtime: typeof proto3;
279
+ static readonly typeName = "livekit.agent.SessionFlush";
280
+ static readonly fields: FieldList;
281
+
282
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionFlush;
283
+
284
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionFlush;
285
+
286
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionFlush;
287
+
288
+ static equals(a: SessionFlush | PlainMessage<SessionFlush> | undefined, b: SessionFlush | PlainMessage<SessionFlush> | undefined): boolean;
289
+ }
290
+
291
+ /**
292
+ * @generated from message livekit.agent.SessionClose
293
+ */
294
+ export declare class SessionClose extends Message<SessionClose> {
295
+ constructor(data?: PartialMessage<SessionClose>);
296
+
297
+ static readonly runtime: typeof proto3;
298
+ static readonly typeName = "livekit.agent.SessionClose";
299
+ static readonly fields: FieldList;
300
+
301
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionClose;
302
+
303
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionClose;
304
+
305
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionClose;
306
+
307
+ static equals(a: SessionClose | PlainMessage<SessionClose> | undefined, b: SessionClose | PlainMessage<SessionClose> | undefined): boolean;
308
+ }
309
+
310
+ /**
311
+ * @generated from message livekit.agent.InferenceStart
312
+ */
313
+ export declare class InferenceStart extends Message<InferenceStart> {
314
+ /**
315
+ * @generated from field: string request_id = 1;
316
+ */
317
+ requestId: string;
318
+
319
+ constructor(data?: PartialMessage<InferenceStart>);
320
+
321
+ static readonly runtime: typeof proto3;
322
+ static readonly typeName = "livekit.agent.InferenceStart";
323
+ static readonly fields: FieldList;
324
+
325
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InferenceStart;
326
+
327
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InferenceStart;
328
+
329
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InferenceStart;
330
+
331
+ static equals(a: InferenceStart | PlainMessage<InferenceStart> | undefined, b: InferenceStart | PlainMessage<InferenceStart> | undefined): boolean;
332
+ }
333
+
334
+ /**
335
+ * @generated from message livekit.agent.InferenceStop
336
+ */
337
+ export declare class InferenceStop extends Message<InferenceStop> {
338
+ /**
339
+ * @generated from field: string request_id = 1;
340
+ */
341
+ requestId: string;
342
+
343
+ constructor(data?: PartialMessage<InferenceStop>);
344
+
345
+ static readonly runtime: typeof proto3;
346
+ static readonly typeName = "livekit.agent.InferenceStop";
347
+ static readonly fields: FieldList;
348
+
349
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InferenceStop;
350
+
351
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InferenceStop;
352
+
353
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InferenceStop;
354
+
355
+ static equals(a: InferenceStop | PlainMessage<InferenceStop> | undefined, b: InferenceStop | PlainMessage<InferenceStop> | undefined): boolean;
356
+ }
357
+
358
+ /**
359
+ * audio buffer sentinel messages
360
+ *
361
+ * @generated from message livekit.agent.BufferStart
362
+ */
363
+ export declare class BufferStart extends Message<BufferStart> {
364
+ constructor(data?: PartialMessage<BufferStart>);
365
+
366
+ static readonly runtime: typeof proto3;
367
+ static readonly typeName = "livekit.agent.BufferStart";
368
+ static readonly fields: FieldList;
369
+
370
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BufferStart;
371
+
372
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BufferStart;
373
+
374
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BufferStart;
375
+
376
+ static equals(a: BufferStart | PlainMessage<BufferStart> | undefined, b: BufferStart | PlainMessage<BufferStart> | undefined): boolean;
377
+ }
378
+
379
+ /**
380
+ * @generated from message livekit.agent.BufferStop
381
+ */
382
+ export declare class BufferStop extends Message<BufferStop> {
383
+ constructor(data?: PartialMessage<BufferStop>);
384
+
385
+ static readonly runtime: typeof proto3;
386
+ static readonly typeName = "livekit.agent.BufferStop";
387
+ static readonly fields: FieldList;
388
+
389
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BufferStop;
390
+
391
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BufferStop;
392
+
393
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BufferStop;
394
+
395
+ static equals(a: BufferStop | PlainMessage<BufferStop> | undefined, b: BufferStop | PlainMessage<BufferStop> | undefined): boolean;
396
+ }
397
+
398
+ /**
399
+ * @generated from message livekit.agent.ClientMessage
400
+ */
401
+ export declare class ClientMessage extends Message<ClientMessage> {
402
+ /**
403
+ * @generated from field: google.protobuf.Timestamp created_at = 1;
404
+ */
405
+ createdAt?: Timestamp;
406
+
407
+ /**
408
+ * @generated from oneof livekit.agent.ClientMessage.message
409
+ */
410
+ message: {
411
+ /**
412
+ * @generated from field: livekit.agent.SessionCreate session_create = 2;
413
+ */
414
+ value: SessionCreate;
415
+ case: "sessionCreate";
416
+ } | {
417
+ /**
418
+ * @generated from field: livekit.agent.InputAudio input_audio = 3;
419
+ */
420
+ value: InputAudio;
421
+ case: "inputAudio";
422
+ } | {
423
+ /**
424
+ * @generated from field: livekit.agent.SessionFlush session_flush = 4;
425
+ */
426
+ value: SessionFlush;
427
+ case: "sessionFlush";
428
+ } | {
429
+ /**
430
+ * @generated from field: livekit.agent.SessionClose session_close = 5;
431
+ */
432
+ value: SessionClose;
433
+ case: "sessionClose";
434
+ } | {
435
+ /**
436
+ * @generated from field: livekit.agent.InferenceStart inference_start = 6;
437
+ */
438
+ value: InferenceStart;
439
+ case: "inferenceStart";
440
+ } | {
441
+ /**
442
+ * @generated from field: livekit.agent.InferenceStop inference_stop = 7;
443
+ */
444
+ value: InferenceStop;
445
+ case: "inferenceStop";
446
+ } | {
447
+ /**
448
+ * @generated from field: livekit.agent.BufferStart buffer_start = 8;
449
+ */
450
+ value: BufferStart;
451
+ case: "bufferStart";
452
+ } | {
453
+ /**
454
+ * @generated from field: livekit.agent.BufferStop buffer_stop = 9;
455
+ */
456
+ value: BufferStop;
457
+ case: "bufferStop";
458
+ } | {
459
+ /**
460
+ * only for end of turn
461
+ *
462
+ * @generated from field: livekit.agent.EotInputChatContext eot_input_chat_context = 10;
463
+ */
464
+ value: EotInputChatContext;
465
+ case: "eotInputChatContext";
466
+ } | { case: undefined; value?: undefined };
467
+
468
+ constructor(data?: PartialMessage<ClientMessage>);
469
+
470
+ static readonly runtime: typeof proto3;
471
+ static readonly typeName = "livekit.agent.ClientMessage";
472
+ static readonly fields: FieldList;
473
+
474
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientMessage;
475
+
476
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientMessage;
477
+
478
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientMessage;
479
+
480
+ static equals(a: ClientMessage | PlainMessage<ClientMessage> | undefined, b: ClientMessage | PlainMessage<ClientMessage> | undefined): boolean;
481
+ }
482
+
483
+ /**
484
+ * @generated from message livekit.agent.EotInferenceRequest
485
+ */
486
+ export declare class EotInferenceRequest extends Message<EotInferenceRequest> {
487
+ /**
488
+ * @generated from field: bytes audio = 1;
489
+ */
490
+ audio: Uint8Array;
491
+
492
+ /**
493
+ * @generated from field: string assistant_text = 2;
494
+ */
495
+ assistantText: string;
496
+
497
+ /**
498
+ * @generated from field: livekit.agent.AudioEncoding encoding = 3;
499
+ */
500
+ encoding: AudioEncoding;
501
+
502
+ /**
503
+ * @generated from field: uint32 sample_rate = 4;
504
+ */
505
+ sampleRate: number;
506
+
507
+ constructor(data?: PartialMessage<EotInferenceRequest>);
508
+
509
+ static readonly runtime: typeof proto3;
510
+ static readonly typeName = "livekit.agent.EotInferenceRequest";
511
+ static readonly fields: FieldList;
512
+
513
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EotInferenceRequest;
514
+
515
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EotInferenceRequest;
516
+
517
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EotInferenceRequest;
518
+
519
+ static equals(a: EotInferenceRequest | PlainMessage<EotInferenceRequest> | undefined, b: EotInferenceRequest | PlainMessage<EotInferenceRequest> | undefined): boolean;
520
+ }
521
+
522
+ /**
523
+ * @generated from message livekit.agent.InterruptionInferenceRequest
524
+ */
525
+ export declare class InterruptionInferenceRequest extends Message<InterruptionInferenceRequest> {
526
+ /**
527
+ * @generated from field: bytes audio = 1;
528
+ */
529
+ audio: Uint8Array;
530
+
531
+ /**
532
+ * @generated from field: livekit.agent.AudioEncoding encoding = 2;
533
+ */
534
+ encoding: AudioEncoding;
535
+
536
+ /**
537
+ * @generated from field: uint32 sample_rate = 3;
538
+ */
539
+ sampleRate: number;
540
+
541
+ constructor(data?: PartialMessage<InterruptionInferenceRequest>);
542
+
543
+ static readonly runtime: typeof proto3;
544
+ static readonly typeName = "livekit.agent.InterruptionInferenceRequest";
545
+ static readonly fields: FieldList;
546
+
547
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InterruptionInferenceRequest;
548
+
549
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InterruptionInferenceRequest;
550
+
551
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InterruptionInferenceRequest;
552
+
553
+ static equals(a: InterruptionInferenceRequest | PlainMessage<InterruptionInferenceRequest> | undefined, b: InterruptionInferenceRequest | PlainMessage<InterruptionInferenceRequest> | undefined): boolean;
554
+ }
555
+
556
+ /**
557
+ * @generated from message livekit.agent.InferenceRequest
558
+ */
559
+ export declare class InferenceRequest extends Message<InferenceRequest> {
560
+ /**
561
+ * @generated from oneof livekit.agent.InferenceRequest.request
562
+ */
563
+ request: {
564
+ /**
565
+ * @generated from field: livekit.agent.EotInferenceRequest eot_inference_request = 1;
566
+ */
567
+ value: EotInferenceRequest;
568
+ case: "eotInferenceRequest";
569
+ } | {
570
+ /**
571
+ * @generated from field: livekit.agent.InterruptionInferenceRequest interruption_inference_request = 2;
572
+ */
573
+ value: InterruptionInferenceRequest;
574
+ case: "interruptionInferenceRequest";
575
+ } | { case: undefined; value?: undefined };
576
+
577
+ constructor(data?: PartialMessage<InferenceRequest>);
578
+
579
+ static readonly runtime: typeof proto3;
580
+ static readonly typeName = "livekit.agent.InferenceRequest";
581
+ static readonly fields: FieldList;
582
+
583
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InferenceRequest;
584
+
585
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InferenceRequest;
586
+
587
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InferenceRequest;
588
+
589
+ static equals(a: InferenceRequest | PlainMessage<InferenceRequest> | undefined, b: InferenceRequest | PlainMessage<InferenceRequest> | undefined): boolean;
590
+ }
591
+
592
+ /**
593
+ * @generated from message livekit.agent.InferenceStats
594
+ */
595
+ export declare class InferenceStats extends Message<InferenceStats> {
596
+ /**
597
+ * proxy -> model: audio window timestamps
598
+ *
599
+ * @generated from field: optional google.protobuf.Timestamp earliest_client_created_at = 1;
600
+ */
601
+ earliestClientCreatedAt?: Timestamp;
602
+
603
+ /**
604
+ * @generated from field: optional google.protobuf.Timestamp latest_client_created_at = 2;
605
+ */
606
+ latestClientCreatedAt?: Timestamp;
607
+
608
+ /**
609
+ * proxy side e2e latency (proxy send -> proxy receive)
610
+ *
611
+ * @generated from field: optional google.protobuf.Duration client_e2e_latency = 3;
612
+ */
613
+ clientE2eLatency?: Duration;
614
+
615
+ /**
616
+ * model side e2e latency (model endpoint receive -> model endpoint return)
617
+ *
618
+ * @generated from field: google.protobuf.Duration server_e2e_latency = 4;
619
+ */
620
+ serverE2eLatency?: Duration;
621
+
622
+ /**
623
+ * model side inference stats
624
+ *
625
+ * @generated from field: google.protobuf.Duration preprocessing_duration = 5;
626
+ */
627
+ preprocessingDuration?: Duration;
628
+
629
+ /**
630
+ * @generated from field: google.protobuf.Duration inference_duration = 6;
631
+ */
632
+ inferenceDuration?: Duration;
633
+
634
+ constructor(data?: PartialMessage<InferenceStats>);
635
+
636
+ static readonly runtime: typeof proto3;
637
+ static readonly typeName = "livekit.agent.InferenceStats";
638
+ static readonly fields: FieldList;
639
+
640
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InferenceStats;
641
+
642
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InferenceStats;
643
+
644
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InferenceStats;
645
+
646
+ static equals(a: InferenceStats | PlainMessage<InferenceStats> | undefined, b: InferenceStats | PlainMessage<InferenceStats> | undefined): boolean;
647
+ }
648
+
649
+ /**
650
+ * @generated from message livekit.agent.EotInferenceResponse
651
+ */
652
+ export declare class EotInferenceResponse extends Message<EotInferenceResponse> {
653
+ /**
654
+ * @generated from field: float probability = 1;
655
+ */
656
+ probability: number;
657
+
658
+ /**
659
+ * @generated from field: livekit.agent.InferenceStats stats = 2;
660
+ */
661
+ stats?: InferenceStats;
662
+
663
+ constructor(data?: PartialMessage<EotInferenceResponse>);
664
+
665
+ static readonly runtime: typeof proto3;
666
+ static readonly typeName = "livekit.agent.EotInferenceResponse";
667
+ static readonly fields: FieldList;
668
+
669
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EotInferenceResponse;
670
+
671
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EotInferenceResponse;
672
+
673
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EotInferenceResponse;
674
+
675
+ static equals(a: EotInferenceResponse | PlainMessage<EotInferenceResponse> | undefined, b: EotInferenceResponse | PlainMessage<EotInferenceResponse> | undefined): boolean;
676
+ }
677
+
678
+ /**
679
+ * @generated from message livekit.agent.InterruptionInferenceResponse
680
+ */
681
+ export declare class InterruptionInferenceResponse extends Message<InterruptionInferenceResponse> {
682
+ /**
683
+ * @generated from field: bool is_interruption = 1;
684
+ */
685
+ isInterruption: boolean;
686
+
687
+ /**
688
+ * per frame probabilities
689
+ *
690
+ * @generated from field: repeated float probabilities = 2;
691
+ */
692
+ probabilities: number[];
693
+
694
+ /**
695
+ * @generated from field: livekit.agent.InferenceStats stats = 3;
696
+ */
697
+ stats?: InferenceStats;
698
+
699
+ constructor(data?: PartialMessage<InterruptionInferenceResponse>);
700
+
701
+ static readonly runtime: typeof proto3;
702
+ static readonly typeName = "livekit.agent.InterruptionInferenceResponse";
703
+ static readonly fields: FieldList;
704
+
705
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InterruptionInferenceResponse;
706
+
707
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InterruptionInferenceResponse;
708
+
709
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InterruptionInferenceResponse;
710
+
711
+ static equals(a: InterruptionInferenceResponse | PlainMessage<InterruptionInferenceResponse> | undefined, b: InterruptionInferenceResponse | PlainMessage<InterruptionInferenceResponse> | undefined): boolean;
712
+ }
713
+
714
+ /**
715
+ * @generated from message livekit.agent.InferenceResponse
716
+ */
717
+ export declare class InferenceResponse extends Message<InferenceResponse> {
718
+ /**
719
+ * @generated from oneof livekit.agent.InferenceResponse.response
720
+ */
721
+ response: {
722
+ /**
723
+ * @generated from field: livekit.agent.EotInferenceResponse eot_inference_response = 1;
724
+ */
725
+ value: EotInferenceResponse;
726
+ case: "eotInferenceResponse";
727
+ } | {
728
+ /**
729
+ * @generated from field: livekit.agent.InterruptionInferenceResponse interruption_inference_response = 2;
730
+ */
731
+ value: InterruptionInferenceResponse;
732
+ case: "interruptionInferenceResponse";
733
+ } | { case: undefined; value?: undefined };
734
+
735
+ constructor(data?: PartialMessage<InferenceResponse>);
736
+
737
+ static readonly runtime: typeof proto3;
738
+ static readonly typeName = "livekit.agent.InferenceResponse";
739
+ static readonly fields: FieldList;
740
+
741
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InferenceResponse;
742
+
743
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InferenceResponse;
744
+
745
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InferenceResponse;
746
+
747
+ static equals(a: InferenceResponse | PlainMessage<InferenceResponse> | undefined, b: InferenceResponse | PlainMessage<InferenceResponse> | undefined): boolean;
748
+ }
749
+
750
+ /**
751
+ * @generated from message livekit.agent.SessionCreated
752
+ */
753
+ export declare class SessionCreated extends Message<SessionCreated> {
754
+ constructor(data?: PartialMessage<SessionCreated>);
755
+
756
+ static readonly runtime: typeof proto3;
757
+ static readonly typeName = "livekit.agent.SessionCreated";
758
+ static readonly fields: FieldList;
759
+
760
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionCreated;
761
+
762
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionCreated;
763
+
764
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionCreated;
765
+
766
+ static equals(a: SessionCreated | PlainMessage<SessionCreated> | undefined, b: SessionCreated | PlainMessage<SessionCreated> | undefined): boolean;
767
+ }
768
+
769
+ /**
770
+ * @generated from message livekit.agent.InferenceStarted
771
+ */
772
+ export declare class InferenceStarted extends Message<InferenceStarted> {
773
+ constructor(data?: PartialMessage<InferenceStarted>);
774
+
775
+ static readonly runtime: typeof proto3;
776
+ static readonly typeName = "livekit.agent.InferenceStarted";
777
+ static readonly fields: FieldList;
778
+
779
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InferenceStarted;
780
+
781
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InferenceStarted;
782
+
783
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InferenceStarted;
784
+
785
+ static equals(a: InferenceStarted | PlainMessage<InferenceStarted> | undefined, b: InferenceStarted | PlainMessage<InferenceStarted> | undefined): boolean;
786
+ }
787
+
788
+ /**
789
+ * @generated from message livekit.agent.InferenceStopped
790
+ */
791
+ export declare class InferenceStopped extends Message<InferenceStopped> {
792
+ constructor(data?: PartialMessage<InferenceStopped>);
793
+
794
+ static readonly runtime: typeof proto3;
795
+ static readonly typeName = "livekit.agent.InferenceStopped";
796
+ static readonly fields: FieldList;
797
+
798
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InferenceStopped;
799
+
800
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InferenceStopped;
801
+
802
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InferenceStopped;
803
+
804
+ static equals(a: InferenceStopped | PlainMessage<InferenceStopped> | undefined, b: InferenceStopped | PlainMessage<InferenceStopped> | undefined): boolean;
805
+ }
806
+
807
+ /**
808
+ * @generated from message livekit.agent.SessionClosed
809
+ */
810
+ export declare class SessionClosed extends Message<SessionClosed> {
811
+ constructor(data?: PartialMessage<SessionClosed>);
812
+
813
+ static readonly runtime: typeof proto3;
814
+ static readonly typeName = "livekit.agent.SessionClosed";
815
+ static readonly fields: FieldList;
816
+
817
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionClosed;
818
+
819
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionClosed;
820
+
821
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionClosed;
822
+
823
+ static equals(a: SessionClosed | PlainMessage<SessionClosed> | undefined, b: SessionClosed | PlainMessage<SessionClosed> | undefined): boolean;
824
+ }
825
+
826
+ /**
827
+ * @generated from message livekit.agent.EotPrediction
828
+ */
829
+ export declare class EotPrediction extends Message<EotPrediction> {
830
+ /**
831
+ * @generated from field: float probability = 1;
832
+ */
833
+ probability: number;
834
+
835
+ /**
836
+ * @generated from field: livekit.agent.InferenceStats inference_stats = 2;
837
+ */
838
+ inferenceStats?: InferenceStats;
839
+
840
+ /**
841
+ * @generated from field: livekit.agent.EotPrediction.EotBackend backend = 3;
842
+ */
843
+ backend: EotPrediction_EotBackend;
844
+
845
+ constructor(data?: PartialMessage<EotPrediction>);
846
+
847
+ static readonly runtime: typeof proto3;
848
+ static readonly typeName = "livekit.agent.EotPrediction";
849
+ static readonly fields: FieldList;
850
+
851
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EotPrediction;
852
+
853
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EotPrediction;
854
+
855
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EotPrediction;
856
+
857
+ static equals(a: EotPrediction | PlainMessage<EotPrediction> | undefined, b: EotPrediction | PlainMessage<EotPrediction> | undefined): boolean;
858
+ }
859
+
860
+ /**
861
+ * @generated from enum livekit.agent.EotPrediction.EotBackend
862
+ */
863
+ export declare enum EotPrediction_EotBackend {
864
+ /**
865
+ * @generated from enum value: EOT_BACKEND_UNKNOWN = 0;
866
+ */
867
+ UNKNOWN = 0,
868
+
869
+ /**
870
+ * @generated from enum value: EOT_BACKEND_MULTIMODAL = 1;
871
+ */
872
+ MULTIMODAL = 1,
873
+
874
+ /**
875
+ * @generated from enum value: EOT_BACKEND_TEXT = 2;
876
+ */
877
+ TEXT = 2,
878
+ }
879
+
880
+ /**
881
+ * @generated from message livekit.agent.InterruptionPrediction
882
+ */
883
+ export declare class InterruptionPrediction extends Message<InterruptionPrediction> {
884
+ /**
885
+ * @generated from field: bool is_interruption = 1;
886
+ */
887
+ isInterruption: boolean;
888
+
889
+ /**
890
+ * @generated from field: repeated float probabilities = 2;
891
+ */
892
+ probabilities: number[];
893
+
894
+ /**
895
+ * @generated from field: livekit.agent.InferenceStats inference_stats = 3;
896
+ */
897
+ inferenceStats?: InferenceStats;
898
+
899
+ constructor(data?: PartialMessage<InterruptionPrediction>);
900
+
901
+ static readonly runtime: typeof proto3;
902
+ static readonly typeName = "livekit.agent.InterruptionPrediction";
903
+ static readonly fields: FieldList;
904
+
905
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InterruptionPrediction;
906
+
907
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InterruptionPrediction;
908
+
909
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InterruptionPrediction;
910
+
911
+ static equals(a: InterruptionPrediction | PlainMessage<InterruptionPrediction> | undefined, b: InterruptionPrediction | PlainMessage<InterruptionPrediction> | undefined): boolean;
912
+ }
913
+
914
+ /**
915
+ * @generated from message livekit.agent.ServerMessage
916
+ */
917
+ export declare class ServerMessage extends Message<ServerMessage> {
918
+ /**
919
+ * @generated from field: google.protobuf.Timestamp server_created_at = 1;
920
+ */
921
+ serverCreatedAt?: Timestamp;
922
+
923
+ /**
924
+ * @generated from field: optional string request_id = 2;
925
+ */
926
+ requestId?: string;
927
+
928
+ /**
929
+ * echoes the client-side created_at timestamp
930
+ *
931
+ * @generated from field: optional google.protobuf.Timestamp client_created_at = 3;
932
+ */
933
+ clientCreatedAt?: Timestamp;
934
+
935
+ /**
936
+ * @generated from oneof livekit.agent.ServerMessage.message
937
+ */
938
+ message: {
939
+ /**
940
+ * @generated from field: livekit.agent.SessionCreated session_created = 4;
941
+ */
942
+ value: SessionCreated;
943
+ case: "sessionCreated";
944
+ } | {
945
+ /**
946
+ * @generated from field: livekit.agent.InferenceStarted inference_started = 5;
947
+ */
948
+ value: InferenceStarted;
949
+ case: "inferenceStarted";
950
+ } | {
951
+ /**
952
+ * @generated from field: livekit.agent.InferenceStopped inference_stopped = 6;
953
+ */
954
+ value: InferenceStopped;
955
+ case: "inferenceStopped";
956
+ } | {
957
+ /**
958
+ * @generated from field: livekit.agent.SessionClosed session_closed = 7;
959
+ */
960
+ value: SessionClosed;
961
+ case: "sessionClosed";
962
+ } | {
963
+ /**
964
+ * @generated from field: livekit.agent.InferenceError error = 8;
965
+ */
966
+ value: InferenceError;
967
+ case: "error";
968
+ } | {
969
+ /**
970
+ * @generated from field: livekit.agent.EotPrediction eot_prediction = 9;
971
+ */
972
+ value: EotPrediction;
973
+ case: "eotPrediction";
974
+ } | {
975
+ /**
976
+ * @generated from field: livekit.agent.InterruptionPrediction interruption_prediction = 10;
977
+ */
978
+ value: InterruptionPrediction;
979
+ case: "interruptionPrediction";
980
+ } | { case: undefined; value?: undefined };
981
+
982
+ constructor(data?: PartialMessage<ServerMessage>);
983
+
984
+ static readonly runtime: typeof proto3;
985
+ static readonly typeName = "livekit.agent.ServerMessage";
986
+ static readonly fields: FieldList;
987
+
988
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerMessage;
989
+
990
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServerMessage;
991
+
992
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServerMessage;
993
+
994
+ static equals(a: ServerMessage | PlainMessage<ServerMessage> | undefined, b: ServerMessage | PlainMessage<ServerMessage> | undefined): boolean;
995
+ }
996
+