@livekit/protocol 1.46.6 → 1.46.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.46.6",
3
+ "version": "1.46.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "require": "dist/index.cjs",
@@ -768,6 +768,18 @@ export declare class SessionCreated extends Message<SessionCreated> {
768
768
  */
769
769
  defaultThreshold: number;
770
770
 
771
+ /**
772
+ * same structure, but for backchannel
773
+ *
774
+ * @generated from field: map<string, float> default_backchannel_thresholds = 3;
775
+ */
776
+ defaultBackchannelThresholds: { [key: string]: number };
777
+
778
+ /**
779
+ * @generated from field: float default_backchannel_threshold = 4;
780
+ */
781
+ defaultBackchannelThreshold: number;
782
+
771
783
  constructor(data?: PartialMessage<SessionCreated>);
772
784
 
773
785
  static readonly runtime: typeof proto3;
@@ -859,6 +871,11 @@ export declare class EotPrediction extends Message<EotPrediction> {
859
871
  */
860
872
  backend: EotPrediction_EotBackend;
861
873
 
874
+ /**
875
+ * @generated from field: float backchannel_probability = 4;
876
+ */
877
+ backchannelProbability: number;
878
+
862
879
  constructor(data?: PartialMessage<EotPrediction>);
863
880
 
864
881
  static readonly runtime: typeof proto3;
@@ -277,6 +277,8 @@ export const SessionCreated = /*@__PURE__*/ proto3.makeMessageType(
277
277
  () => [
278
278
  { no: 1, name: "default_thresholds", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 2 /* ScalarType.FLOAT */} },
279
279
  { no: 2, name: "default_threshold", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
280
+ { no: 3, name: "default_backchannel_thresholds", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 2 /* ScalarType.FLOAT */} },
281
+ { no: 4, name: "default_backchannel_threshold", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
280
282
  ],
281
283
  );
282
284
 
@@ -313,6 +315,7 @@ export const EotPrediction = /*@__PURE__*/ proto3.makeMessageType(
313
315
  { no: 1, name: "probability", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
314
316
  { no: 2, name: "inference_stats", kind: "message", T: InferenceStats },
315
317
  { no: 3, name: "backend", kind: "enum", T: proto3.getEnumType(EotPrediction_EotBackend) },
318
+ { no: 4, name: "backchannel_probability", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
316
319
  ],
317
320
  );
318
321
 
@@ -81,6 +81,56 @@ export declare enum UserState {
81
81
  US_AWAY = 2,
82
82
  }
83
83
 
84
+ /**
85
+ * @generated from enum livekit.agent.ToolCallStatus
86
+ */
87
+ export declare enum ToolCallStatus {
88
+ /**
89
+ * @generated from enum value: TC_RUNNING = 0;
90
+ */
91
+ TC_RUNNING = 0,
92
+
93
+ /**
94
+ * @generated from enum value: TC_DONE = 1;
95
+ */
96
+ TC_DONE = 1,
97
+
98
+ /**
99
+ * @generated from enum value: TC_ERROR = 2;
100
+ */
101
+ TC_ERROR = 2,
102
+
103
+ /**
104
+ * @generated from enum value: TC_CANCELLED = 3;
105
+ */
106
+ TC_CANCELLED = 3,
107
+ }
108
+
109
+ /**
110
+ * @generated from enum livekit.agent.ToolReplyStatus
111
+ */
112
+ export declare enum ToolReplyStatus {
113
+ /**
114
+ * @generated from enum value: TR_SCHEDULED = 0;
115
+ */
116
+ TR_SCHEDULED = 0,
117
+
118
+ /**
119
+ * @generated from enum value: TR_COMPLETED = 1;
120
+ */
121
+ TR_COMPLETED = 1,
122
+
123
+ /**
124
+ * @generated from enum value: TR_INTERRUPTED = 2;
125
+ */
126
+ TR_INTERRUPTED = 2,
127
+
128
+ /**
129
+ * @generated from enum value: TR_SKIPPED = 3;
130
+ */
131
+ TR_SKIPPED = 3,
132
+ }
133
+
84
134
  /**
85
135
  * @generated from enum livekit.agent.AmdCategory
86
136
  */
@@ -1006,6 +1056,12 @@ export declare class AgentSessionEvent extends Message<AgentSessionEvent> {
1006
1056
  */
1007
1057
  value: DebugMessage;
1008
1058
  case: "debugMessage";
1059
+ } | {
1060
+ /**
1061
+ * @generated from field: livekit.agent.AgentSessionEvent.ToolExecutionUpdated tool_execution_updated = 22;
1062
+ */
1063
+ value: AgentSessionEvent_ToolExecutionUpdated;
1064
+ case: "toolExecutionUpdated";
1009
1065
  } | { case: undefined; value?: undefined };
1010
1066
 
1011
1067
  constructor(data?: PartialMessage<AgentSessionEvent>);
@@ -1362,6 +1418,205 @@ export declare class AgentSessionEvent_SessionUsageUpdated extends Message<Agent
1362
1418
  static equals(a: AgentSessionEvent_SessionUsageUpdated | PlainMessage<AgentSessionEvent_SessionUsageUpdated> | undefined, b: AgentSessionEvent_SessionUsageUpdated | PlainMessage<AgentSessionEvent_SessionUsageUpdated> | undefined): boolean;
1363
1419
  }
1364
1420
 
1421
+ /**
1422
+ * Per-call tool lifecycle. One flat update per occurrence: a call started ->
1423
+ * progress updates while it runs (CallUpdated) -> the single terminal entry (Ended),
1424
+ * with the deferred reply voicing buffered updates advancing separately (ReplyUpdated).
1425
+ *
1426
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated
1427
+ */
1428
+ export declare class AgentSessionEvent_ToolExecutionUpdated extends Message<AgentSessionEvent_ToolExecutionUpdated> {
1429
+ /**
1430
+ * @generated from oneof livekit.agent.AgentSessionEvent.ToolExecutionUpdated.update
1431
+ */
1432
+ update: {
1433
+ /**
1434
+ * @generated from field: livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Started started = 1;
1435
+ */
1436
+ value: AgentSessionEvent_ToolExecutionUpdated_Started;
1437
+ case: "started";
1438
+ } | {
1439
+ /**
1440
+ * @generated from field: livekit.agent.AgentSessionEvent.ToolExecutionUpdated.CallUpdated call_updated = 2;
1441
+ */
1442
+ value: AgentSessionEvent_ToolExecutionUpdated_CallUpdated;
1443
+ case: "callUpdated";
1444
+ } | {
1445
+ /**
1446
+ * @generated from field: livekit.agent.AgentSessionEvent.ToolExecutionUpdated.ReplyUpdated reply_updated = 3;
1447
+ */
1448
+ value: AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated;
1449
+ case: "replyUpdated";
1450
+ } | {
1451
+ /**
1452
+ * @generated from field: livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Ended ended = 4;
1453
+ */
1454
+ value: AgentSessionEvent_ToolExecutionUpdated_Ended;
1455
+ case: "ended";
1456
+ } | { case: undefined; value?: undefined };
1457
+
1458
+ constructor(data?: PartialMessage<AgentSessionEvent_ToolExecutionUpdated>);
1459
+
1460
+ static readonly runtime: typeof proto3;
1461
+ static readonly typeName = "livekit.agent.AgentSessionEvent.ToolExecutionUpdated";
1462
+ static readonly fields: FieldList;
1463
+
1464
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_ToolExecutionUpdated;
1465
+
1466
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated;
1467
+
1468
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated;
1469
+
1470
+ static equals(a: AgentSessionEvent_ToolExecutionUpdated | PlainMessage<AgentSessionEvent_ToolExecutionUpdated> | undefined, b: AgentSessionEvent_ToolExecutionUpdated | PlainMessage<AgentSessionEvent_ToolExecutionUpdated> | undefined): boolean;
1471
+ }
1472
+
1473
+ /**
1474
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Started
1475
+ */
1476
+ export declare class AgentSessionEvent_ToolExecutionUpdated_Started extends Message<AgentSessionEvent_ToolExecutionUpdated_Started> {
1477
+ /**
1478
+ * @generated from field: livekit.agent.FunctionCall function_call = 1;
1479
+ */
1480
+ functionCall?: FunctionCall;
1481
+
1482
+ constructor(data?: PartialMessage<AgentSessionEvent_ToolExecutionUpdated_Started>);
1483
+
1484
+ static readonly runtime: typeof proto3;
1485
+ static readonly typeName = "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Started";
1486
+ static readonly fields: FieldList;
1487
+
1488
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_ToolExecutionUpdated_Started;
1489
+
1490
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated_Started;
1491
+
1492
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated_Started;
1493
+
1494
+ static equals(a: AgentSessionEvent_ToolExecutionUpdated_Started | PlainMessage<AgentSessionEvent_ToolExecutionUpdated_Started> | undefined, b: AgentSessionEvent_ToolExecutionUpdated_Started | PlainMessage<AgentSessionEvent_ToolExecutionUpdated_Started> | undefined): boolean;
1495
+ }
1496
+
1497
+ /**
1498
+ * a progress update emitted via ctx.update() while the call runs
1499
+ *
1500
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated.CallUpdated
1501
+ */
1502
+ export declare class AgentSessionEvent_ToolExecutionUpdated_CallUpdated extends Message<AgentSessionEvent_ToolExecutionUpdated_CallUpdated> {
1503
+ /**
1504
+ * synthetic id: call_id (inline) or call_id_update_N
1505
+ *
1506
+ * @generated from field: string id = 1;
1507
+ */
1508
+ id: string;
1509
+
1510
+ /**
1511
+ * @generated from field: string call_id = 2;
1512
+ */
1513
+ callId: string;
1514
+
1515
+ /**
1516
+ * @generated from field: string message = 3;
1517
+ */
1518
+ message: string;
1519
+
1520
+ constructor(data?: PartialMessage<AgentSessionEvent_ToolExecutionUpdated_CallUpdated>);
1521
+
1522
+ static readonly runtime: typeof proto3;
1523
+ static readonly typeName = "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.CallUpdated";
1524
+ static readonly fields: FieldList;
1525
+
1526
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_ToolExecutionUpdated_CallUpdated;
1527
+
1528
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated_CallUpdated;
1529
+
1530
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated_CallUpdated;
1531
+
1532
+ static equals(a: AgentSessionEvent_ToolExecutionUpdated_CallUpdated | PlainMessage<AgentSessionEvent_ToolExecutionUpdated_CallUpdated> | undefined, b: AgentSessionEvent_ToolExecutionUpdated_CallUpdated | PlainMessage<AgentSessionEvent_ToolExecutionUpdated_CallUpdated> | undefined): boolean;
1533
+ }
1534
+
1535
+ /**
1536
+ * the call's single terminal entry
1537
+ *
1538
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Ended
1539
+ */
1540
+ export declare class AgentSessionEvent_ToolExecutionUpdated_Ended extends Message<AgentSessionEvent_ToolExecutionUpdated_Ended> {
1541
+ /**
1542
+ * synthetic id: call_id (inline) or call_id_final (deferred)
1543
+ *
1544
+ * @generated from field: string id = 1;
1545
+ */
1546
+ id: string;
1547
+
1548
+ /**
1549
+ * @generated from field: string call_id = 2;
1550
+ */
1551
+ callId: string;
1552
+
1553
+ /**
1554
+ * result text or error message; unset for cancelled / empty returns
1555
+ *
1556
+ * @generated from field: optional string message = 3;
1557
+ */
1558
+ message?: string;
1559
+
1560
+ /**
1561
+ * TC_DONE, TC_ERROR, or TC_CANCELLED
1562
+ *
1563
+ * @generated from field: livekit.agent.ToolCallStatus status = 4;
1564
+ */
1565
+ status: ToolCallStatus;
1566
+
1567
+ constructor(data?: PartialMessage<AgentSessionEvent_ToolExecutionUpdated_Ended>);
1568
+
1569
+ static readonly runtime: typeof proto3;
1570
+ static readonly typeName = "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Ended";
1571
+ static readonly fields: FieldList;
1572
+
1573
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_ToolExecutionUpdated_Ended;
1574
+
1575
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated_Ended;
1576
+
1577
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated_Ended;
1578
+
1579
+ static equals(a: AgentSessionEvent_ToolExecutionUpdated_Ended | PlainMessage<AgentSessionEvent_ToolExecutionUpdated_Ended> | undefined, b: AgentSessionEvent_ToolExecutionUpdated_Ended | PlainMessage<AgentSessionEvent_ToolExecutionUpdated_Ended> | undefined): boolean;
1580
+ }
1581
+
1582
+ /**
1583
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated.ReplyUpdated
1584
+ */
1585
+ export declare class AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated extends Message<AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated> {
1586
+ /**
1587
+ * buffered update ids covered by this reply; one reply can span calls
1588
+ *
1589
+ * @generated from field: repeated string update_ids = 1;
1590
+ */
1591
+ updateIds: string[];
1592
+
1593
+ /**
1594
+ * @generated from field: livekit.agent.ToolReplyStatus status = 2;
1595
+ */
1596
+ status: ToolReplyStatus;
1597
+
1598
+ /**
1599
+ * id of the speech that voices this reply
1600
+ *
1601
+ * @generated from field: string speech_id = 3;
1602
+ */
1603
+ speechId: string;
1604
+
1605
+ constructor(data?: PartialMessage<AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated>);
1606
+
1607
+ static readonly runtime: typeof proto3;
1608
+ static readonly typeName = "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.ReplyUpdated";
1609
+ static readonly fields: FieldList;
1610
+
1611
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated;
1612
+
1613
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated;
1614
+
1615
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated;
1616
+
1617
+ static equals(a: AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated | PlainMessage<AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated> | undefined, b: AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated | PlainMessage<AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated> | undefined): boolean;
1618
+ }
1619
+
1365
1620
  /**
1366
1621
  * @generated from message livekit.agent.SessionRequest
1367
1622
  */
@@ -1428,6 +1683,12 @@ export declare class SessionRequest extends Message<SessionRequest> {
1428
1683
  */
1429
1684
  value: SessionRequest_UpdateIO;
1430
1685
  case: "updateIo";
1686
+ } | {
1687
+ /**
1688
+ * @generated from field: livekit.agent.SessionRequest.FinalizeSimulation finalize_simulation = 12;
1689
+ */
1690
+ value: SessionRequest_FinalizeSimulation;
1691
+ case: "finalizeSimulation";
1431
1692
  } | { case: undefined; value?: undefined };
1432
1693
 
1433
1694
  constructor(data?: PartialMessage<SessionRequest>);
@@ -1694,6 +1955,35 @@ export declare class SessionRequest_UpdateIO_Output extends Message<SessionReque
1694
1955
  static equals(a: SessionRequest_UpdateIO_Output | PlainMessage<SessionRequest_UpdateIO_Output> | undefined, b: SessionRequest_UpdateIO_Output | PlainMessage<SessionRequest_UpdateIO_Output> | undefined): boolean;
1695
1956
  }
1696
1957
 
1958
+ /**
1959
+ * @generated from message livekit.agent.SessionRequest.FinalizeSimulation
1960
+ */
1961
+ export declare class SessionRequest_FinalizeSimulation extends Message<SessionRequest_FinalizeSimulation> {
1962
+ /**
1963
+ * @generated from field: bool provisional_success = 1;
1964
+ */
1965
+ provisionalSuccess: boolean;
1966
+
1967
+ /**
1968
+ * @generated from field: string provisional_reason = 2;
1969
+ */
1970
+ provisionalReason: string;
1971
+
1972
+ constructor(data?: PartialMessage<SessionRequest_FinalizeSimulation>);
1973
+
1974
+ static readonly runtime: typeof proto3;
1975
+ static readonly typeName = "livekit.agent.SessionRequest.FinalizeSimulation";
1976
+ static readonly fields: FieldList;
1977
+
1978
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_FinalizeSimulation;
1979
+
1980
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_FinalizeSimulation;
1981
+
1982
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_FinalizeSimulation;
1983
+
1984
+ static equals(a: SessionRequest_FinalizeSimulation | PlainMessage<SessionRequest_FinalizeSimulation> | undefined, b: SessionRequest_FinalizeSimulation | PlainMessage<SessionRequest_FinalizeSimulation> | undefined): boolean;
1985
+ }
1986
+
1697
1987
  /**
1698
1988
  * @generated from message livekit.agent.SessionResponse
1699
1989
  */
@@ -1765,6 +2055,12 @@ export declare class SessionResponse extends Message<SessionResponse> {
1765
2055
  */
1766
2056
  value: SessionResponse_UpdateIOResponse;
1767
2057
  case: "updateIo";
2058
+ } | {
2059
+ /**
2060
+ * @generated from field: livekit.agent.SessionResponse.FinalizeSimulationResponse finalize_simulation = 13;
2061
+ */
2062
+ value: SessionResponse_FinalizeSimulationResponse;
2063
+ case: "finalizeSimulation";
1768
2064
  } | { case: undefined; value?: undefined };
1769
2065
 
1770
2066
  constructor(data?: PartialMessage<SessionResponse>);
@@ -2038,6 +2334,59 @@ export declare class SessionResponse_UpdateIOResponse extends Message<SessionRes
2038
2334
  static equals(a: SessionResponse_UpdateIOResponse | PlainMessage<SessionResponse_UpdateIOResponse> | undefined, b: SessionResponse_UpdateIOResponse | PlainMessage<SessionResponse_UpdateIOResponse> | undefined): boolean;
2039
2335
  }
2040
2336
 
2337
+ /**
2338
+ * @generated from message livekit.agent.SessionResponse.FinalizeSimulationResponse
2339
+ */
2340
+ export declare class SessionResponse_FinalizeSimulationResponse extends Message<SessionResponse_FinalizeSimulationResponse> {
2341
+ /**
2342
+ * @generated from field: livekit.agent.SessionResponse.FinalizeSimulationResponse.SimulationVerdict user_verdict = 1;
2343
+ */
2344
+ userVerdict?: SessionResponse_FinalizeSimulationResponse_SimulationVerdict;
2345
+
2346
+ constructor(data?: PartialMessage<SessionResponse_FinalizeSimulationResponse>);
2347
+
2348
+ static readonly runtime: typeof proto3;
2349
+ static readonly typeName = "livekit.agent.SessionResponse.FinalizeSimulationResponse";
2350
+ static readonly fields: FieldList;
2351
+
2352
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_FinalizeSimulationResponse;
2353
+
2354
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_FinalizeSimulationResponse;
2355
+
2356
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_FinalizeSimulationResponse;
2357
+
2358
+ static equals(a: SessionResponse_FinalizeSimulationResponse | PlainMessage<SessionResponse_FinalizeSimulationResponse> | undefined, b: SessionResponse_FinalizeSimulationResponse | PlainMessage<SessionResponse_FinalizeSimulationResponse> | undefined): boolean;
2359
+ }
2360
+
2361
+ /**
2362
+ * @generated from message livekit.agent.SessionResponse.FinalizeSimulationResponse.SimulationVerdict
2363
+ */
2364
+ export declare class SessionResponse_FinalizeSimulationResponse_SimulationVerdict extends Message<SessionResponse_FinalizeSimulationResponse_SimulationVerdict> {
2365
+ /**
2366
+ * @generated from field: bool success = 1;
2367
+ */
2368
+ success: boolean;
2369
+
2370
+ /**
2371
+ * @generated from field: string reason = 2;
2372
+ */
2373
+ reason: string;
2374
+
2375
+ constructor(data?: PartialMessage<SessionResponse_FinalizeSimulationResponse_SimulationVerdict>);
2376
+
2377
+ static readonly runtime: typeof proto3;
2378
+ static readonly typeName = "livekit.agent.SessionResponse.FinalizeSimulationResponse.SimulationVerdict";
2379
+ static readonly fields: FieldList;
2380
+
2381
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_FinalizeSimulationResponse_SimulationVerdict;
2382
+
2383
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_FinalizeSimulationResponse_SimulationVerdict;
2384
+
2385
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_FinalizeSimulationResponse_SimulationVerdict;
2386
+
2387
+ static equals(a: SessionResponse_FinalizeSimulationResponse_SimulationVerdict | PlainMessage<SessionResponse_FinalizeSimulationResponse_SimulationVerdict> | undefined, b: SessionResponse_FinalizeSimulationResponse_SimulationVerdict | PlainMessage<SessionResponse_FinalizeSimulationResponse_SimulationVerdict> | undefined): boolean;
2388
+ }
2389
+
2041
2390
  /**
2042
2391
  * @generated from message livekit.agent.AgentSessionMessage
2043
2392
  */
@@ -44,6 +44,32 @@ export const UserState = /*@__PURE__*/ proto3.makeEnum(
44
44
  ],
45
45
  );
46
46
 
47
+ /**
48
+ * @generated from enum livekit.agent.ToolCallStatus
49
+ */
50
+ export const ToolCallStatus = /*@__PURE__*/ proto3.makeEnum(
51
+ "livekit.agent.ToolCallStatus",
52
+ [
53
+ {no: 0, name: "TC_RUNNING"},
54
+ {no: 1, name: "TC_DONE"},
55
+ {no: 2, name: "TC_ERROR"},
56
+ {no: 3, name: "TC_CANCELLED"},
57
+ ],
58
+ );
59
+
60
+ /**
61
+ * @generated from enum livekit.agent.ToolReplyStatus
62
+ */
63
+ export const ToolReplyStatus = /*@__PURE__*/ proto3.makeEnum(
64
+ "livekit.agent.ToolReplyStatus",
65
+ [
66
+ {no: 0, name: "TR_SCHEDULED"},
67
+ {no: 1, name: "TR_COMPLETED"},
68
+ {no: 2, name: "TR_INTERRUPTED"},
69
+ {no: 3, name: "TR_SKIPPED"},
70
+ ],
71
+ );
72
+
47
73
  /**
48
74
  * @generated from enum livekit.agent.AmdCategory
49
75
  */
@@ -332,6 +358,7 @@ export const AgentSessionEvent = /*@__PURE__*/ proto3.makeMessageType(
332
358
  { no: 19, name: "eot_prediction", kind: "message", T: AgentSessionEvent_EotPrediction, oneof: "event" },
333
359
  { no: 20, name: "function_tools_started", kind: "message", T: AgentSessionEvent_FunctionToolsStarted, oneof: "event" },
334
360
  { no: 21, name: "debug_message", kind: "message", T: DebugMessage, oneof: "event" },
361
+ { no: 22, name: "tool_execution_updated", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated, oneof: "event" },
335
362
  ],
336
363
  );
337
364
 
@@ -471,6 +498,79 @@ export const AgentSessionEvent_SessionUsageUpdated = /*@__PURE__*/ proto3.makeMe
471
498
  {localName: "AgentSessionEvent_SessionUsageUpdated"},
472
499
  );
473
500
 
501
+ /**
502
+ * Per-call tool lifecycle. One flat update per occurrence: a call started ->
503
+ * progress updates while it runs (CallUpdated) -> the single terminal entry (Ended),
504
+ * with the deferred reply voicing buffered updates advancing separately (ReplyUpdated).
505
+ *
506
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated
507
+ */
508
+ export const AgentSessionEvent_ToolExecutionUpdated = /*@__PURE__*/ proto3.makeMessageType(
509
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated",
510
+ () => [
511
+ { no: 1, name: "started", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated_Started, oneof: "update" },
512
+ { no: 2, name: "call_updated", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated_CallUpdated, oneof: "update" },
513
+ { no: 3, name: "reply_updated", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated, oneof: "update" },
514
+ { no: 4, name: "ended", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated_Ended, oneof: "update" },
515
+ ],
516
+ {localName: "AgentSessionEvent_ToolExecutionUpdated"},
517
+ );
518
+
519
+ /**
520
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Started
521
+ */
522
+ export const AgentSessionEvent_ToolExecutionUpdated_Started = /*@__PURE__*/ proto3.makeMessageType(
523
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Started",
524
+ () => [
525
+ { no: 1, name: "function_call", kind: "message", T: FunctionCall },
526
+ ],
527
+ {localName: "AgentSessionEvent_ToolExecutionUpdated_Started"},
528
+ );
529
+
530
+ /**
531
+ * a progress update emitted via ctx.update() while the call runs
532
+ *
533
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated.CallUpdated
534
+ */
535
+ export const AgentSessionEvent_ToolExecutionUpdated_CallUpdated = /*@__PURE__*/ proto3.makeMessageType(
536
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.CallUpdated",
537
+ () => [
538
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
539
+ { no: 2, name: "call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
540
+ { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
541
+ ],
542
+ {localName: "AgentSessionEvent_ToolExecutionUpdated_CallUpdated"},
543
+ );
544
+
545
+ /**
546
+ * the call's single terminal entry
547
+ *
548
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Ended
549
+ */
550
+ export const AgentSessionEvent_ToolExecutionUpdated_Ended = /*@__PURE__*/ proto3.makeMessageType(
551
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Ended",
552
+ () => [
553
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
554
+ { no: 2, name: "call_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
555
+ { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
556
+ { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(ToolCallStatus) },
557
+ ],
558
+ {localName: "AgentSessionEvent_ToolExecutionUpdated_Ended"},
559
+ );
560
+
561
+ /**
562
+ * @generated from message livekit.agent.AgentSessionEvent.ToolExecutionUpdated.ReplyUpdated
563
+ */
564
+ export const AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated = /*@__PURE__*/ proto3.makeMessageType(
565
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.ReplyUpdated",
566
+ () => [
567
+ { no: 1, name: "update_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
568
+ { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(ToolReplyStatus) },
569
+ { no: 3, name: "speech_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
570
+ ],
571
+ {localName: "AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated"},
572
+ );
573
+
474
574
  /**
475
575
  * @generated from message livekit.agent.SessionRequest
476
576
  */
@@ -487,6 +587,7 @@ export const SessionRequest = /*@__PURE__*/ proto3.makeMessageType(
487
587
  { no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" },
488
588
  { no: 10, name: "get_framework_info", kind: "message", T: SessionRequest_GetFrameworkInfo, oneof: "request" },
489
589
  { no: 11, name: "update_io", kind: "message", T: SessionRequest_UpdateIO, oneof: "request" },
590
+ { no: 12, name: "finalize_simulation", kind: "message", T: SessionRequest_FinalizeSimulation, oneof: "request" },
490
591
  ],
491
592
  );
492
593
 
@@ -601,6 +702,18 @@ export const SessionRequest_UpdateIO_Output = /*@__PURE__*/ proto3.makeMessageTy
601
702
  {localName: "SessionRequest_UpdateIO_Output"},
602
703
  );
603
704
 
705
+ /**
706
+ * @generated from message livekit.agent.SessionRequest.FinalizeSimulation
707
+ */
708
+ export const SessionRequest_FinalizeSimulation = /*@__PURE__*/ proto3.makeMessageType(
709
+ "livekit.agent.SessionRequest.FinalizeSimulation",
710
+ () => [
711
+ { no: 1, name: "provisional_success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
712
+ { no: 2, name: "provisional_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
713
+ ],
714
+ {localName: "SessionRequest_FinalizeSimulation"},
715
+ );
716
+
604
717
  /**
605
718
  * @generated from message livekit.agent.SessionResponse
606
719
  */
@@ -618,6 +731,7 @@ export const SessionResponse = /*@__PURE__*/ proto3.makeMessageType(
618
731
  { no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" },
619
732
  { no: 11, name: "get_framework_info", kind: "message", T: SessionResponse_GetFrameworkInfoResponse, oneof: "response" },
620
733
  { no: 12, name: "update_io", kind: "message", T: SessionResponse_UpdateIOResponse, oneof: "response" },
734
+ { no: 13, name: "finalize_simulation", kind: "message", T: SessionResponse_FinalizeSimulationResponse, oneof: "response" },
621
735
  ],
622
736
  );
623
737
 
@@ -726,6 +840,29 @@ export const SessionResponse_UpdateIOResponse = /*@__PURE__*/ proto3.makeMessage
726
840
  {localName: "SessionResponse_UpdateIOResponse"},
727
841
  );
728
842
 
843
+ /**
844
+ * @generated from message livekit.agent.SessionResponse.FinalizeSimulationResponse
845
+ */
846
+ export const SessionResponse_FinalizeSimulationResponse = /*@__PURE__*/ proto3.makeMessageType(
847
+ "livekit.agent.SessionResponse.FinalizeSimulationResponse",
848
+ () => [
849
+ { no: 1, name: "user_verdict", kind: "message", T: SessionResponse_FinalizeSimulationResponse_SimulationVerdict },
850
+ ],
851
+ {localName: "SessionResponse_FinalizeSimulationResponse"},
852
+ );
853
+
854
+ /**
855
+ * @generated from message livekit.agent.SessionResponse.FinalizeSimulationResponse.SimulationVerdict
856
+ */
857
+ export const SessionResponse_FinalizeSimulationResponse_SimulationVerdict = /*@__PURE__*/ proto3.makeMessageType(
858
+ "livekit.agent.SessionResponse.FinalizeSimulationResponse.SimulationVerdict",
859
+ () => [
860
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
861
+ { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
862
+ ],
863
+ {localName: "SessionResponse_FinalizeSimulationResponse_SimulationVerdict"},
864
+ );
865
+
729
866
  /**
730
867
  * @generated from message livekit.agent.AgentSessionMessage
731
868
  */