@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/dist/index.cjs CHANGED
@@ -29,6 +29,24 @@ const UserState = /* @__PURE__ */ protobuf.proto3.makeEnum(
29
29
  { no: 2, name: "US_AWAY" }
30
30
  ]
31
31
  );
32
+ const ToolCallStatus = /* @__PURE__ */ protobuf.proto3.makeEnum(
33
+ "livekit.agent.ToolCallStatus",
34
+ [
35
+ { no: 0, name: "TC_RUNNING" },
36
+ { no: 1, name: "TC_DONE" },
37
+ { no: 2, name: "TC_ERROR" },
38
+ { no: 3, name: "TC_CANCELLED" }
39
+ ]
40
+ );
41
+ const ToolReplyStatus = /* @__PURE__ */ protobuf.proto3.makeEnum(
42
+ "livekit.agent.ToolReplyStatus",
43
+ [
44
+ { no: 0, name: "TR_SCHEDULED" },
45
+ { no: 1, name: "TR_COMPLETED" },
46
+ { no: 2, name: "TR_INTERRUPTED" },
47
+ { no: 3, name: "TR_SKIPPED" }
48
+ ]
49
+ );
32
50
  const AmdCategory = /* @__PURE__ */ protobuf.proto3.makeEnum(
33
51
  "livekit.agent.AmdCategory",
34
52
  [
@@ -514,7 +532,8 @@ const AgentSessionEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
514
532
  { no: 18, name: "amd_prediction", kind: "message", T: AgentSessionEvent_AmdPrediction, oneof: "event" },
515
533
  { no: 19, name: "eot_prediction", kind: "message", T: AgentSessionEvent_EotPrediction, oneof: "event" },
516
534
  { no: 20, name: "function_tools_started", kind: "message", T: AgentSessionEvent_FunctionToolsStarted, oneof: "event" },
517
- { no: 21, name: "debug_message", kind: "message", T: DebugMessage, oneof: "event" }
535
+ { no: 21, name: "debug_message", kind: "message", T: DebugMessage, oneof: "event" },
536
+ { no: 22, name: "tool_execution_updated", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated, oneof: "event" }
518
537
  ]
519
538
  );
520
539
  const AgentSessionEvent_AgentStateChanged = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -663,6 +682,87 @@ const AgentSessionEvent_SessionUsageUpdated = /* @__PURE__ */ protobuf.proto3.ma
663
682
  ],
664
683
  { localName: "AgentSessionEvent_SessionUsageUpdated" }
665
684
  );
685
+ const AgentSessionEvent_ToolExecutionUpdated = /* @__PURE__ */ protobuf.proto3.makeMessageType(
686
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated",
687
+ () => [
688
+ { no: 1, name: "started", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated_Started, oneof: "update" },
689
+ { no: 2, name: "call_updated", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated_CallUpdated, oneof: "update" },
690
+ { no: 3, name: "reply_updated", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated, oneof: "update" },
691
+ { no: 4, name: "ended", kind: "message", T: AgentSessionEvent_ToolExecutionUpdated_Ended, oneof: "update" }
692
+ ],
693
+ { localName: "AgentSessionEvent_ToolExecutionUpdated" }
694
+ );
695
+ const AgentSessionEvent_ToolExecutionUpdated_Started = /* @__PURE__ */ protobuf.proto3.makeMessageType(
696
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Started",
697
+ () => [
698
+ { no: 1, name: "function_call", kind: "message", T: FunctionCall }
699
+ ],
700
+ { localName: "AgentSessionEvent_ToolExecutionUpdated_Started" }
701
+ );
702
+ const AgentSessionEvent_ToolExecutionUpdated_CallUpdated = /* @__PURE__ */ protobuf.proto3.makeMessageType(
703
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.CallUpdated",
704
+ () => [
705
+ {
706
+ no: 1,
707
+ name: "id",
708
+ kind: "scalar",
709
+ T: 9
710
+ /* ScalarType.STRING */
711
+ },
712
+ {
713
+ no: 2,
714
+ name: "call_id",
715
+ kind: "scalar",
716
+ T: 9
717
+ /* ScalarType.STRING */
718
+ },
719
+ {
720
+ no: 3,
721
+ name: "message",
722
+ kind: "scalar",
723
+ T: 9
724
+ /* ScalarType.STRING */
725
+ }
726
+ ],
727
+ { localName: "AgentSessionEvent_ToolExecutionUpdated_CallUpdated" }
728
+ );
729
+ const AgentSessionEvent_ToolExecutionUpdated_Ended = /* @__PURE__ */ protobuf.proto3.makeMessageType(
730
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.Ended",
731
+ () => [
732
+ {
733
+ no: 1,
734
+ name: "id",
735
+ kind: "scalar",
736
+ T: 9
737
+ /* ScalarType.STRING */
738
+ },
739
+ {
740
+ no: 2,
741
+ name: "call_id",
742
+ kind: "scalar",
743
+ T: 9
744
+ /* ScalarType.STRING */
745
+ },
746
+ { no: 3, name: "message", kind: "scalar", T: 9, opt: true },
747
+ { no: 4, name: "status", kind: "enum", T: protobuf.proto3.getEnumType(ToolCallStatus) }
748
+ ],
749
+ { localName: "AgentSessionEvent_ToolExecutionUpdated_Ended" }
750
+ );
751
+ const AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated = /* @__PURE__ */ protobuf.proto3.makeMessageType(
752
+ "livekit.agent.AgentSessionEvent.ToolExecutionUpdated.ReplyUpdated",
753
+ () => [
754
+ { no: 1, name: "update_ids", kind: "scalar", T: 9, repeated: true },
755
+ { no: 2, name: "status", kind: "enum", T: protobuf.proto3.getEnumType(ToolReplyStatus) },
756
+ {
757
+ no: 3,
758
+ name: "speech_id",
759
+ kind: "scalar",
760
+ T: 9
761
+ /* ScalarType.STRING */
762
+ }
763
+ ],
764
+ { localName: "AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated" }
765
+ );
666
766
  const SessionRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
667
767
  "livekit.agent.SessionRequest",
668
768
  () => [
@@ -681,7 +781,8 @@ const SessionRequest = /* @__PURE__ */ protobuf.proto3.makeMessageType(
681
781
  { no: 8, name: "get_rtc_stats", kind: "message", T: SessionRequest_GetRTCStats, oneof: "request" },
682
782
  { no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" },
683
783
  { no: 10, name: "get_framework_info", kind: "message", T: SessionRequest_GetFrameworkInfo, oneof: "request" },
684
- { no: 11, name: "update_io", kind: "message", T: SessionRequest_UpdateIO, oneof: "request" }
784
+ { no: 11, name: "update_io", kind: "message", T: SessionRequest_UpdateIO, oneof: "request" },
785
+ { no: 12, name: "finalize_simulation", kind: "message", T: SessionRequest_FinalizeSimulation, oneof: "request" }
685
786
  ]
686
787
  );
687
788
  const SessionRequest_Ping = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -757,6 +858,26 @@ const SessionRequest_UpdateIO_Output = /* @__PURE__ */ protobuf.proto3.makeMessa
757
858
  ],
758
859
  { localName: "SessionRequest_UpdateIO_Output" }
759
860
  );
861
+ const SessionRequest_FinalizeSimulation = /* @__PURE__ */ protobuf.proto3.makeMessageType(
862
+ "livekit.agent.SessionRequest.FinalizeSimulation",
863
+ () => [
864
+ {
865
+ no: 1,
866
+ name: "provisional_success",
867
+ kind: "scalar",
868
+ T: 8
869
+ /* ScalarType.BOOL */
870
+ },
871
+ {
872
+ no: 2,
873
+ name: "provisional_reason",
874
+ kind: "scalar",
875
+ T: 9
876
+ /* ScalarType.STRING */
877
+ }
878
+ ],
879
+ { localName: "SessionRequest_FinalizeSimulation" }
880
+ );
760
881
  const SessionResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
761
882
  "livekit.agent.SessionResponse",
762
883
  () => [
@@ -776,7 +897,8 @@ const SessionResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
776
897
  { no: 9, name: "get_rtc_stats", kind: "message", T: SessionResponse_GetRTCStatsResponse, oneof: "response" },
777
898
  { no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" },
778
899
  { no: 11, name: "get_framework_info", kind: "message", T: SessionResponse_GetFrameworkInfoResponse, oneof: "response" },
779
- { no: 12, name: "update_io", kind: "message", T: SessionResponse_UpdateIOResponse, oneof: "response" }
900
+ { no: 12, name: "update_io", kind: "message", T: SessionResponse_UpdateIOResponse, oneof: "response" },
901
+ { no: 13, name: "finalize_simulation", kind: "message", T: SessionResponse_FinalizeSimulationResponse, oneof: "response" }
780
902
  ]
781
903
  );
782
904
  const SessionResponse_Pong = /* @__PURE__ */ protobuf.proto3.makeMessageType(
@@ -876,6 +998,33 @@ const SessionResponse_UpdateIOResponse = /* @__PURE__ */ protobuf.proto3.makeMes
876
998
  [],
877
999
  { localName: "SessionResponse_UpdateIOResponse" }
878
1000
  );
1001
+ const SessionResponse_FinalizeSimulationResponse = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1002
+ "livekit.agent.SessionResponse.FinalizeSimulationResponse",
1003
+ () => [
1004
+ { no: 1, name: "user_verdict", kind: "message", T: SessionResponse_FinalizeSimulationResponse_SimulationVerdict }
1005
+ ],
1006
+ { localName: "SessionResponse_FinalizeSimulationResponse" }
1007
+ );
1008
+ const SessionResponse_FinalizeSimulationResponse_SimulationVerdict = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1009
+ "livekit.agent.SessionResponse.FinalizeSimulationResponse.SimulationVerdict",
1010
+ () => [
1011
+ {
1012
+ no: 1,
1013
+ name: "success",
1014
+ kind: "scalar",
1015
+ T: 8
1016
+ /* ScalarType.BOOL */
1017
+ },
1018
+ {
1019
+ no: 2,
1020
+ name: "reason",
1021
+ kind: "scalar",
1022
+ T: 9
1023
+ /* ScalarType.STRING */
1024
+ }
1025
+ ],
1026
+ { localName: "SessionResponse_FinalizeSimulationResponse_SimulationVerdict" }
1027
+ );
879
1028
  const AgentSessionMessage = /* @__PURE__ */ protobuf.proto3.makeMessageType(
880
1029
  "livekit.agent.AgentSessionMessage",
881
1030
  () => [
@@ -958,6 +1107,11 @@ const livekit_agent_session_pb = {
958
1107
  AgentSessionEvent_FunctionToolsStarted: AgentSessionEvent_FunctionToolsStarted,
959
1108
  AgentSessionEvent_OverlappingSpeech: AgentSessionEvent_OverlappingSpeech,
960
1109
  AgentSessionEvent_SessionUsageUpdated: AgentSessionEvent_SessionUsageUpdated,
1110
+ AgentSessionEvent_ToolExecutionUpdated: AgentSessionEvent_ToolExecutionUpdated,
1111
+ AgentSessionEvent_ToolExecutionUpdated_CallUpdated: AgentSessionEvent_ToolExecutionUpdated_CallUpdated,
1112
+ AgentSessionEvent_ToolExecutionUpdated_Ended: AgentSessionEvent_ToolExecutionUpdated_Ended,
1113
+ AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated: AgentSessionEvent_ToolExecutionUpdated_ReplyUpdated,
1114
+ AgentSessionEvent_ToolExecutionUpdated_Started: AgentSessionEvent_ToolExecutionUpdated_Started,
961
1115
  AgentSessionEvent_UserInputTranscribed: AgentSessionEvent_UserInputTranscribed,
962
1116
  AgentSessionEvent_UserStateChanged: AgentSessionEvent_UserStateChanged,
963
1117
  AgentSessionMessage: AgentSessionMessage,
@@ -984,6 +1138,7 @@ const livekit_agent_session_pb = {
984
1138
  ModelUsage: ModelUsage,
985
1139
  STTModelUsage: STTModelUsage,
986
1140
  SessionRequest: SessionRequest,
1141
+ SessionRequest_FinalizeSimulation: SessionRequest_FinalizeSimulation,
987
1142
  SessionRequest_GetAgentInfo: SessionRequest_GetAgentInfo,
988
1143
  SessionRequest_GetChatHistory: SessionRequest_GetChatHistory,
989
1144
  SessionRequest_GetFrameworkInfo: SessionRequest_GetFrameworkInfo,
@@ -996,6 +1151,8 @@ const livekit_agent_session_pb = {
996
1151
  SessionRequest_UpdateIO_Input: SessionRequest_UpdateIO_Input,
997
1152
  SessionRequest_UpdateIO_Output: SessionRequest_UpdateIO_Output,
998
1153
  SessionResponse: SessionResponse,
1154
+ SessionResponse_FinalizeSimulationResponse: SessionResponse_FinalizeSimulationResponse,
1155
+ SessionResponse_FinalizeSimulationResponse_SimulationVerdict: SessionResponse_FinalizeSimulationResponse_SimulationVerdict,
999
1156
  SessionResponse_GetAgentInfoResponse: SessionResponse_GetAgentInfoResponse,
1000
1157
  SessionResponse_GetChatHistoryResponse: SessionResponse_GetChatHistoryResponse,
1001
1158
  SessionResponse_GetFrameworkInfoResponse: SessionResponse_GetFrameworkInfoResponse,
@@ -1007,6 +1164,8 @@ const livekit_agent_session_pb = {
1007
1164
  SessionResponse_UpdateIOResponse: SessionResponse_UpdateIOResponse,
1008
1165
  TTSModelUsage: TTSModelUsage,
1009
1166
  TimedString: TimedString,
1167
+ ToolCallStatus: ToolCallStatus,
1168
+ ToolReplyStatus: ToolReplyStatus,
1010
1169
  UserState: UserState
1011
1170
  };
1012
1171
 
@@ -1279,6 +1438,18 @@ const SessionCreated = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1279
1438
  kind: "scalar",
1280
1439
  T: 2
1281
1440
  /* ScalarType.FLOAT */
1441
+ },
1442
+ { no: 3, name: "default_backchannel_thresholds", kind: "map", K: 9, V: {
1443
+ kind: "scalar",
1444
+ T: 2
1445
+ /* ScalarType.FLOAT */
1446
+ } },
1447
+ {
1448
+ no: 4,
1449
+ name: "default_backchannel_threshold",
1450
+ kind: "scalar",
1451
+ T: 2
1452
+ /* ScalarType.FLOAT */
1282
1453
  }
1283
1454
  ]
1284
1455
  );
@@ -1305,7 +1476,14 @@ const EotPrediction = /* @__PURE__ */ protobuf.proto3.makeMessageType(
1305
1476
  /* ScalarType.FLOAT */
1306
1477
  },
1307
1478
  { no: 2, name: "inference_stats", kind: "message", T: InferenceStats },
1308
- { no: 3, name: "backend", kind: "enum", T: protobuf.proto3.getEnumType(EotPrediction_EotBackend) }
1479
+ { no: 3, name: "backend", kind: "enum", T: protobuf.proto3.getEnumType(EotPrediction_EotBackend) },
1480
+ {
1481
+ no: 4,
1482
+ name: "backchannel_probability",
1483
+ kind: "scalar",
1484
+ T: 2
1485
+ /* ScalarType.FLOAT */
1486
+ }
1309
1487
  ]
1310
1488
  );
1311
1489
  const EotPrediction_EotBackend = /* @__PURE__ */ protobuf.proto3.makeEnum(
@@ -10698,7 +10876,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
10698
10876
  ]
10699
10877
  );
10700
10878
 
10701
- const version = "1.46.6";
10879
+ const version = "1.46.7";
10702
10880
 
10703
10881
  exports.Timestamp = protobuf.Timestamp;
10704
10882
  exports.protoInt64 = protobuf.protoInt64;