@livekit/protocol 1.45.8 → 1.46.2
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 +717 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2039 -140
- package/dist/index.d.mts +2039 -140
- package/dist/index.d.ts +2039 -140
- package/dist/index.mjs +713 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_session_pb.d.ts +238 -0
- package/src/gen/agent/livekit_agent_session_pb.js +88 -0
- package/src/gen/livekit_agent_simulation_pb.d.ts +70 -0
- package/src/gen/livekit_agent_simulation_pb.js +14 -0
- package/src/gen/livekit_agent_worker_pb.d.ts +71 -0
- package/src/gen/livekit_agent_worker_pb.js +36 -0
- package/src/gen/livekit_analytics_pb.d.ts +5 -0
- package/src/gen/livekit_analytics_pb.js +1 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +19 -14
- package/src/gen/livekit_cloud_agent_pb.js +8 -7
- package/src/gen/livekit_egress_pb.d.ts +15 -1
- package/src/gen/livekit_egress_pb.js +3 -1
- package/src/gen/livekit_room_pb.d.ts +8 -0
- package/src/gen/livekit_room_pb.js +1 -0
- package/src/gen/livekit_sip_pb.d.ts +120 -1
- package/src/gen/livekit_sip_pb.js +29 -0
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +3 -0
- package/src/index.js +3 -0
package/package.json
CHANGED
|
@@ -783,6 +783,40 @@ export declare class InterruptionModelUsage extends Message<InterruptionModelUsa
|
|
|
783
783
|
static equals(a: InterruptionModelUsage | PlainMessage<InterruptionModelUsage> | undefined, b: InterruptionModelUsage | PlainMessage<InterruptionModelUsage> | undefined): boolean;
|
|
784
784
|
}
|
|
785
785
|
|
|
786
|
+
/**
|
|
787
|
+
* @generated from message livekit.agent.EotModelUsage
|
|
788
|
+
*/
|
|
789
|
+
export declare class EotModelUsage extends Message<EotModelUsage> {
|
|
790
|
+
/**
|
|
791
|
+
* @generated from field: string provider = 1;
|
|
792
|
+
*/
|
|
793
|
+
provider: string;
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* @generated from field: string model = 2;
|
|
797
|
+
*/
|
|
798
|
+
model: string;
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* @generated from field: int32 total_requests = 3;
|
|
802
|
+
*/
|
|
803
|
+
totalRequests: number;
|
|
804
|
+
|
|
805
|
+
constructor(data?: PartialMessage<EotModelUsage>);
|
|
806
|
+
|
|
807
|
+
static readonly runtime: typeof proto3;
|
|
808
|
+
static readonly typeName = "livekit.agent.EotModelUsage";
|
|
809
|
+
static readonly fields: FieldList;
|
|
810
|
+
|
|
811
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EotModelUsage;
|
|
812
|
+
|
|
813
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EotModelUsage;
|
|
814
|
+
|
|
815
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EotModelUsage;
|
|
816
|
+
|
|
817
|
+
static equals(a: EotModelUsage | PlainMessage<EotModelUsage> | undefined, b: EotModelUsage | PlainMessage<EotModelUsage> | undefined): boolean;
|
|
818
|
+
}
|
|
819
|
+
|
|
786
820
|
/**
|
|
787
821
|
* @generated from message livekit.agent.ModelUsage
|
|
788
822
|
*/
|
|
@@ -814,6 +848,12 @@ export declare class ModelUsage extends Message<ModelUsage> {
|
|
|
814
848
|
*/
|
|
815
849
|
value: InterruptionModelUsage;
|
|
816
850
|
case: "interruption";
|
|
851
|
+
} | {
|
|
852
|
+
/**
|
|
853
|
+
* @generated from field: livekit.agent.EotModelUsage eot = 5;
|
|
854
|
+
*/
|
|
855
|
+
value: EotModelUsage;
|
|
856
|
+
case: "eot";
|
|
817
857
|
} | { case: undefined; value?: undefined };
|
|
818
858
|
|
|
819
859
|
constructor(data?: PartialMessage<ModelUsage>);
|
|
@@ -921,6 +961,18 @@ export declare class AgentSessionEvent extends Message<AgentSessionEvent> {
|
|
|
921
961
|
*/
|
|
922
962
|
value: AgentSessionEvent_AmdPrediction;
|
|
923
963
|
case: "amdPrediction";
|
|
964
|
+
} | {
|
|
965
|
+
/**
|
|
966
|
+
* @generated from field: livekit.agent.AgentSessionEvent.EotPrediction eot_prediction = 19;
|
|
967
|
+
*/
|
|
968
|
+
value: AgentSessionEvent_EotPrediction;
|
|
969
|
+
case: "eotPrediction";
|
|
970
|
+
} | {
|
|
971
|
+
/**
|
|
972
|
+
* @generated from field: livekit.agent.AgentSessionEvent.FunctionToolsStarted function_tools_started = 20;
|
|
973
|
+
*/
|
|
974
|
+
value: AgentSessionEvent_FunctionToolsStarted;
|
|
975
|
+
case: "functionToolsStarted";
|
|
924
976
|
} | { case: undefined; value?: undefined };
|
|
925
977
|
|
|
926
978
|
constructor(data?: PartialMessage<AgentSessionEvent>);
|
|
@@ -1054,6 +1106,30 @@ export declare class AgentSessionEvent_UserInputTranscribed extends Message<Agen
|
|
|
1054
1106
|
static equals(a: AgentSessionEvent_UserInputTranscribed | PlainMessage<AgentSessionEvent_UserInputTranscribed> | undefined, b: AgentSessionEvent_UserInputTranscribed | PlainMessage<AgentSessionEvent_UserInputTranscribed> | undefined): boolean;
|
|
1055
1107
|
}
|
|
1056
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* @generated from message livekit.agent.AgentSessionEvent.FunctionToolsStarted
|
|
1111
|
+
*/
|
|
1112
|
+
export declare class AgentSessionEvent_FunctionToolsStarted extends Message<AgentSessionEvent_FunctionToolsStarted> {
|
|
1113
|
+
/**
|
|
1114
|
+
* @generated from field: repeated livekit.agent.FunctionCall function_calls = 1;
|
|
1115
|
+
*/
|
|
1116
|
+
functionCalls: FunctionCall[];
|
|
1117
|
+
|
|
1118
|
+
constructor(data?: PartialMessage<AgentSessionEvent_FunctionToolsStarted>);
|
|
1119
|
+
|
|
1120
|
+
static readonly runtime: typeof proto3;
|
|
1121
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.FunctionToolsStarted";
|
|
1122
|
+
static readonly fields: FieldList;
|
|
1123
|
+
|
|
1124
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_FunctionToolsStarted;
|
|
1125
|
+
|
|
1126
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_FunctionToolsStarted;
|
|
1127
|
+
|
|
1128
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_FunctionToolsStarted;
|
|
1129
|
+
|
|
1130
|
+
static equals(a: AgentSessionEvent_FunctionToolsStarted | PlainMessage<AgentSessionEvent_FunctionToolsStarted> | undefined, b: AgentSessionEvent_FunctionToolsStarted | PlainMessage<AgentSessionEvent_FunctionToolsStarted> | undefined): boolean;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1057
1133
|
/**
|
|
1058
1134
|
* @generated from message livekit.agent.AgentSessionEvent.FunctionToolsExecuted
|
|
1059
1135
|
*/
|
|
@@ -1190,6 +1266,45 @@ export declare class AgentSessionEvent_AmdPrediction extends Message<AgentSessio
|
|
|
1190
1266
|
static equals(a: AgentSessionEvent_AmdPrediction | PlainMessage<AgentSessionEvent_AmdPrediction> | undefined, b: AgentSessionEvent_AmdPrediction | PlainMessage<AgentSessionEvent_AmdPrediction> | undefined): boolean;
|
|
1191
1267
|
}
|
|
1192
1268
|
|
|
1269
|
+
/**
|
|
1270
|
+
* @generated from message livekit.agent.AgentSessionEvent.EotPrediction
|
|
1271
|
+
*/
|
|
1272
|
+
export declare class AgentSessionEvent_EotPrediction extends Message<AgentSessionEvent_EotPrediction> {
|
|
1273
|
+
/**
|
|
1274
|
+
* @generated from field: float probability = 1;
|
|
1275
|
+
*/
|
|
1276
|
+
probability: number;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* @generated from field: float threshold = 2;
|
|
1280
|
+
*/
|
|
1281
|
+
threshold: number;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* @generated from field: google.protobuf.Duration inference_duration = 3;
|
|
1285
|
+
*/
|
|
1286
|
+
inferenceDuration?: Duration;
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* @generated from field: google.protobuf.Duration delay = 4;
|
|
1290
|
+
*/
|
|
1291
|
+
delay?: Duration;
|
|
1292
|
+
|
|
1293
|
+
constructor(data?: PartialMessage<AgentSessionEvent_EotPrediction>);
|
|
1294
|
+
|
|
1295
|
+
static readonly runtime: typeof proto3;
|
|
1296
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.EotPrediction";
|
|
1297
|
+
static readonly fields: FieldList;
|
|
1298
|
+
|
|
1299
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_EotPrediction;
|
|
1300
|
+
|
|
1301
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_EotPrediction;
|
|
1302
|
+
|
|
1303
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_EotPrediction;
|
|
1304
|
+
|
|
1305
|
+
static equals(a: AgentSessionEvent_EotPrediction | PlainMessage<AgentSessionEvent_EotPrediction> | undefined, b: AgentSessionEvent_EotPrediction | PlainMessage<AgentSessionEvent_EotPrediction> | undefined): boolean;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1193
1308
|
/**
|
|
1194
1309
|
* @generated from message livekit.agent.AgentSessionEvent.SessionUsageUpdated
|
|
1195
1310
|
*/
|
|
@@ -1274,6 +1389,12 @@ export declare class SessionRequest extends Message<SessionRequest> {
|
|
|
1274
1389
|
*/
|
|
1275
1390
|
value: SessionRequest_GetFrameworkInfo;
|
|
1276
1391
|
case: "getFrameworkInfo";
|
|
1392
|
+
} | {
|
|
1393
|
+
/**
|
|
1394
|
+
* @generated from field: livekit.agent.SessionRequest.UpdateIO update_io = 11;
|
|
1395
|
+
*/
|
|
1396
|
+
value: SessionRequest_UpdateIO;
|
|
1397
|
+
case: "updateIo";
|
|
1277
1398
|
} | { case: undefined; value?: undefined };
|
|
1278
1399
|
|
|
1279
1400
|
constructor(data?: PartialMessage<SessionRequest>);
|
|
@@ -1448,6 +1569,98 @@ export declare class SessionRequest_GetFrameworkInfo extends Message<SessionRequ
|
|
|
1448
1569
|
static equals(a: SessionRequest_GetFrameworkInfo | PlainMessage<SessionRequest_GetFrameworkInfo> | undefined, b: SessionRequest_GetFrameworkInfo | PlainMessage<SessionRequest_GetFrameworkInfo> | undefined): boolean;
|
|
1449
1570
|
}
|
|
1450
1571
|
|
|
1572
|
+
/**
|
|
1573
|
+
* @generated from message livekit.agent.SessionRequest.UpdateIO
|
|
1574
|
+
*/
|
|
1575
|
+
export declare class SessionRequest_UpdateIO extends Message<SessionRequest_UpdateIO> {
|
|
1576
|
+
/**
|
|
1577
|
+
* @generated from field: optional livekit.agent.SessionRequest.UpdateIO.Input input = 1;
|
|
1578
|
+
*/
|
|
1579
|
+
input?: SessionRequest_UpdateIO_Input;
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* @generated from field: optional livekit.agent.SessionRequest.UpdateIO.Output output = 2;
|
|
1583
|
+
*/
|
|
1584
|
+
output?: SessionRequest_UpdateIO_Output;
|
|
1585
|
+
|
|
1586
|
+
constructor(data?: PartialMessage<SessionRequest_UpdateIO>);
|
|
1587
|
+
|
|
1588
|
+
static readonly runtime: typeof proto3;
|
|
1589
|
+
static readonly typeName = "livekit.agent.SessionRequest.UpdateIO";
|
|
1590
|
+
static readonly fields: FieldList;
|
|
1591
|
+
|
|
1592
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_UpdateIO;
|
|
1593
|
+
|
|
1594
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_UpdateIO;
|
|
1595
|
+
|
|
1596
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_UpdateIO;
|
|
1597
|
+
|
|
1598
|
+
static equals(a: SessionRequest_UpdateIO | PlainMessage<SessionRequest_UpdateIO> | undefined, b: SessionRequest_UpdateIO | PlainMessage<SessionRequest_UpdateIO> | undefined): boolean;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* @generated from message livekit.agent.SessionRequest.UpdateIO.Input
|
|
1603
|
+
*/
|
|
1604
|
+
export declare class SessionRequest_UpdateIO_Input extends Message<SessionRequest_UpdateIO_Input> {
|
|
1605
|
+
/**
|
|
1606
|
+
* @generated from field: optional bool audio_enabled = 1;
|
|
1607
|
+
*/
|
|
1608
|
+
audioEnabled?: boolean;
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* @generated from field: optional bool video_enabled = 2;
|
|
1612
|
+
*/
|
|
1613
|
+
videoEnabled?: boolean;
|
|
1614
|
+
|
|
1615
|
+
constructor(data?: PartialMessage<SessionRequest_UpdateIO_Input>);
|
|
1616
|
+
|
|
1617
|
+
static readonly runtime: typeof proto3;
|
|
1618
|
+
static readonly typeName = "livekit.agent.SessionRequest.UpdateIO.Input";
|
|
1619
|
+
static readonly fields: FieldList;
|
|
1620
|
+
|
|
1621
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_UpdateIO_Input;
|
|
1622
|
+
|
|
1623
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_UpdateIO_Input;
|
|
1624
|
+
|
|
1625
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_UpdateIO_Input;
|
|
1626
|
+
|
|
1627
|
+
static equals(a: SessionRequest_UpdateIO_Input | PlainMessage<SessionRequest_UpdateIO_Input> | undefined, b: SessionRequest_UpdateIO_Input | PlainMessage<SessionRequest_UpdateIO_Input> | undefined): boolean;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* @generated from message livekit.agent.SessionRequest.UpdateIO.Output
|
|
1632
|
+
*/
|
|
1633
|
+
export declare class SessionRequest_UpdateIO_Output extends Message<SessionRequest_UpdateIO_Output> {
|
|
1634
|
+
/**
|
|
1635
|
+
* @generated from field: optional bool audio_enabled = 1;
|
|
1636
|
+
*/
|
|
1637
|
+
audioEnabled?: boolean;
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* @generated from field: optional bool video_enabled = 2;
|
|
1641
|
+
*/
|
|
1642
|
+
videoEnabled?: boolean;
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* @generated from field: optional bool transcription_enabled = 3;
|
|
1646
|
+
*/
|
|
1647
|
+
transcriptionEnabled?: boolean;
|
|
1648
|
+
|
|
1649
|
+
constructor(data?: PartialMessage<SessionRequest_UpdateIO_Output>);
|
|
1650
|
+
|
|
1651
|
+
static readonly runtime: typeof proto3;
|
|
1652
|
+
static readonly typeName = "livekit.agent.SessionRequest.UpdateIO.Output";
|
|
1653
|
+
static readonly fields: FieldList;
|
|
1654
|
+
|
|
1655
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionRequest_UpdateIO_Output;
|
|
1656
|
+
|
|
1657
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionRequest_UpdateIO_Output;
|
|
1658
|
+
|
|
1659
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionRequest_UpdateIO_Output;
|
|
1660
|
+
|
|
1661
|
+
static equals(a: SessionRequest_UpdateIO_Output | PlainMessage<SessionRequest_UpdateIO_Output> | undefined, b: SessionRequest_UpdateIO_Output | PlainMessage<SessionRequest_UpdateIO_Output> | undefined): boolean;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1451
1664
|
/**
|
|
1452
1665
|
* @generated from message livekit.agent.SessionResponse
|
|
1453
1666
|
*/
|
|
@@ -1513,6 +1726,12 @@ export declare class SessionResponse extends Message<SessionResponse> {
|
|
|
1513
1726
|
*/
|
|
1514
1727
|
value: SessionResponse_GetFrameworkInfoResponse;
|
|
1515
1728
|
case: "getFrameworkInfo";
|
|
1729
|
+
} | {
|
|
1730
|
+
/**
|
|
1731
|
+
* @generated from field: livekit.agent.SessionResponse.UpdateIOResponse update_io = 12;
|
|
1732
|
+
*/
|
|
1733
|
+
value: SessionResponse_UpdateIOResponse;
|
|
1734
|
+
case: "updateIo";
|
|
1516
1735
|
} | { case: undefined; value?: undefined };
|
|
1517
1736
|
|
|
1518
1737
|
constructor(data?: PartialMessage<SessionResponse>);
|
|
@@ -1767,6 +1986,25 @@ export declare class SessionResponse_GetFrameworkInfoResponse extends Message<Se
|
|
|
1767
1986
|
static equals(a: SessionResponse_GetFrameworkInfoResponse | PlainMessage<SessionResponse_GetFrameworkInfoResponse> | undefined, b: SessionResponse_GetFrameworkInfoResponse | PlainMessage<SessionResponse_GetFrameworkInfoResponse> | undefined): boolean;
|
|
1768
1987
|
}
|
|
1769
1988
|
|
|
1989
|
+
/**
|
|
1990
|
+
* @generated from message livekit.agent.SessionResponse.UpdateIOResponse
|
|
1991
|
+
*/
|
|
1992
|
+
export declare class SessionResponse_UpdateIOResponse extends Message<SessionResponse_UpdateIOResponse> {
|
|
1993
|
+
constructor(data?: PartialMessage<SessionResponse_UpdateIOResponse>);
|
|
1994
|
+
|
|
1995
|
+
static readonly runtime: typeof proto3;
|
|
1996
|
+
static readonly typeName = "livekit.agent.SessionResponse.UpdateIOResponse";
|
|
1997
|
+
static readonly fields: FieldList;
|
|
1998
|
+
|
|
1999
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionResponse_UpdateIOResponse;
|
|
2000
|
+
|
|
2001
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionResponse_UpdateIOResponse;
|
|
2002
|
+
|
|
2003
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionResponse_UpdateIOResponse;
|
|
2004
|
+
|
|
2005
|
+
static equals(a: SessionResponse_UpdateIOResponse | PlainMessage<SessionResponse_UpdateIOResponse> | undefined, b: SessionResponse_UpdateIOResponse | PlainMessage<SessionResponse_UpdateIOResponse> | undefined): boolean;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
1770
2008
|
/**
|
|
1771
2009
|
* @generated from message livekit.agent.AgentSessionMessage
|
|
1772
2010
|
*/
|
|
@@ -264,6 +264,18 @@ export const InterruptionModelUsage = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
264
264
|
],
|
|
265
265
|
);
|
|
266
266
|
|
|
267
|
+
/**
|
|
268
|
+
* @generated from message livekit.agent.EotModelUsage
|
|
269
|
+
*/
|
|
270
|
+
export const EotModelUsage = /*@__PURE__*/ proto3.makeMessageType(
|
|
271
|
+
"livekit.agent.EotModelUsage",
|
|
272
|
+
() => [
|
|
273
|
+
{ no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
274
|
+
{ no: 2, name: "model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
275
|
+
{ no: 3, name: "total_requests", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
276
|
+
],
|
|
277
|
+
);
|
|
278
|
+
|
|
267
279
|
/**
|
|
268
280
|
* @generated from message livekit.agent.ModelUsage
|
|
269
281
|
*/
|
|
@@ -274,6 +286,7 @@ export const ModelUsage = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
274
286
|
{ no: 2, name: "tts", kind: "message", T: TTSModelUsage, oneof: "usage" },
|
|
275
287
|
{ no: 3, name: "stt", kind: "message", T: STTModelUsage, oneof: "usage" },
|
|
276
288
|
{ no: 4, name: "interruption", kind: "message", T: InterruptionModelUsage, oneof: "usage" },
|
|
289
|
+
{ no: 5, name: "eot", kind: "message", T: EotModelUsage, oneof: "usage" },
|
|
277
290
|
],
|
|
278
291
|
);
|
|
279
292
|
|
|
@@ -303,6 +316,8 @@ export const AgentSessionEvent = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
303
316
|
{ no: 16, name: "overlapping_speech", kind: "message", T: AgentSessionEvent_OverlappingSpeech, oneof: "event" },
|
|
304
317
|
{ no: 17, name: "session_usage_updated", kind: "message", T: AgentSessionEvent_SessionUsageUpdated, oneof: "event" },
|
|
305
318
|
{ no: 18, name: "amd_prediction", kind: "message", T: AgentSessionEvent_AmdPrediction, oneof: "event" },
|
|
319
|
+
{ no: 19, name: "eot_prediction", kind: "message", T: AgentSessionEvent_EotPrediction, oneof: "event" },
|
|
320
|
+
{ no: 20, name: "function_tools_started", kind: "message", T: AgentSessionEvent_FunctionToolsStarted, oneof: "event" },
|
|
306
321
|
],
|
|
307
322
|
);
|
|
308
323
|
|
|
@@ -354,6 +369,17 @@ export const AgentSessionEvent_UserInputTranscribed = /*@__PURE__*/ proto3.makeM
|
|
|
354
369
|
{localName: "AgentSessionEvent_UserInputTranscribed"},
|
|
355
370
|
);
|
|
356
371
|
|
|
372
|
+
/**
|
|
373
|
+
* @generated from message livekit.agent.AgentSessionEvent.FunctionToolsStarted
|
|
374
|
+
*/
|
|
375
|
+
export const AgentSessionEvent_FunctionToolsStarted = /*@__PURE__*/ proto3.makeMessageType(
|
|
376
|
+
"livekit.agent.AgentSessionEvent.FunctionToolsStarted",
|
|
377
|
+
() => [
|
|
378
|
+
{ no: 1, name: "function_calls", kind: "message", T: FunctionCall, repeated: true },
|
|
379
|
+
],
|
|
380
|
+
{localName: "AgentSessionEvent_FunctionToolsStarted"},
|
|
381
|
+
);
|
|
382
|
+
|
|
357
383
|
/**
|
|
358
384
|
* @generated from message livekit.agent.AgentSessionEvent.FunctionToolsExecuted
|
|
359
385
|
*/
|
|
@@ -406,6 +432,20 @@ export const AgentSessionEvent_AmdPrediction = /*@__PURE__*/ proto3.makeMessageT
|
|
|
406
432
|
{localName: "AgentSessionEvent_AmdPrediction"},
|
|
407
433
|
);
|
|
408
434
|
|
|
435
|
+
/**
|
|
436
|
+
* @generated from message livekit.agent.AgentSessionEvent.EotPrediction
|
|
437
|
+
*/
|
|
438
|
+
export const AgentSessionEvent_EotPrediction = /*@__PURE__*/ proto3.makeMessageType(
|
|
439
|
+
"livekit.agent.AgentSessionEvent.EotPrediction",
|
|
440
|
+
() => [
|
|
441
|
+
{ no: 1, name: "probability", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
442
|
+
{ no: 2, name: "threshold", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
443
|
+
{ no: 3, name: "inference_duration", kind: "message", T: Duration },
|
|
444
|
+
{ no: 4, name: "delay", kind: "message", T: Duration },
|
|
445
|
+
],
|
|
446
|
+
{localName: "AgentSessionEvent_EotPrediction"},
|
|
447
|
+
);
|
|
448
|
+
|
|
409
449
|
/**
|
|
410
450
|
* @generated from message livekit.agent.AgentSessionEvent.SessionUsageUpdated
|
|
411
451
|
*/
|
|
@@ -432,6 +472,7 @@ export const SessionRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
432
472
|
{ no: 8, name: "get_rtc_stats", kind: "message", T: SessionRequest_GetRTCStats, oneof: "request" },
|
|
433
473
|
{ no: 9, name: "get_session_usage", kind: "message", T: SessionRequest_GetSessionUsage, oneof: "request" },
|
|
434
474
|
{ no: 10, name: "get_framework_info", kind: "message", T: SessionRequest_GetFrameworkInfo, oneof: "request" },
|
|
475
|
+
{ no: 11, name: "update_io", kind: "message", T: SessionRequest_UpdateIO, oneof: "request" },
|
|
435
476
|
],
|
|
436
477
|
);
|
|
437
478
|
|
|
@@ -509,6 +550,43 @@ export const SessionRequest_GetFrameworkInfo = /*@__PURE__*/ proto3.makeMessageT
|
|
|
509
550
|
{localName: "SessionRequest_GetFrameworkInfo"},
|
|
510
551
|
);
|
|
511
552
|
|
|
553
|
+
/**
|
|
554
|
+
* @generated from message livekit.agent.SessionRequest.UpdateIO
|
|
555
|
+
*/
|
|
556
|
+
export const SessionRequest_UpdateIO = /*@__PURE__*/ proto3.makeMessageType(
|
|
557
|
+
"livekit.agent.SessionRequest.UpdateIO",
|
|
558
|
+
() => [
|
|
559
|
+
{ no: 1, name: "input", kind: "message", T: SessionRequest_UpdateIO_Input, opt: true },
|
|
560
|
+
{ no: 2, name: "output", kind: "message", T: SessionRequest_UpdateIO_Output, opt: true },
|
|
561
|
+
],
|
|
562
|
+
{localName: "SessionRequest_UpdateIO"},
|
|
563
|
+
);
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @generated from message livekit.agent.SessionRequest.UpdateIO.Input
|
|
567
|
+
*/
|
|
568
|
+
export const SessionRequest_UpdateIO_Input = /*@__PURE__*/ proto3.makeMessageType(
|
|
569
|
+
"livekit.agent.SessionRequest.UpdateIO.Input",
|
|
570
|
+
() => [
|
|
571
|
+
{ no: 1, name: "audio_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
572
|
+
{ no: 2, name: "video_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
573
|
+
],
|
|
574
|
+
{localName: "SessionRequest_UpdateIO_Input"},
|
|
575
|
+
);
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* @generated from message livekit.agent.SessionRequest.UpdateIO.Output
|
|
579
|
+
*/
|
|
580
|
+
export const SessionRequest_UpdateIO_Output = /*@__PURE__*/ proto3.makeMessageType(
|
|
581
|
+
"livekit.agent.SessionRequest.UpdateIO.Output",
|
|
582
|
+
() => [
|
|
583
|
+
{ no: 1, name: "audio_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
584
|
+
{ no: 2, name: "video_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
585
|
+
{ no: 3, name: "transcription_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
586
|
+
],
|
|
587
|
+
{localName: "SessionRequest_UpdateIO_Output"},
|
|
588
|
+
);
|
|
589
|
+
|
|
512
590
|
/**
|
|
513
591
|
* @generated from message livekit.agent.SessionResponse
|
|
514
592
|
*/
|
|
@@ -525,6 +603,7 @@ export const SessionResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
525
603
|
{ no: 9, name: "get_rtc_stats", kind: "message", T: SessionResponse_GetRTCStatsResponse, oneof: "response" },
|
|
526
604
|
{ no: 10, name: "get_session_usage", kind: "message", T: SessionResponse_GetSessionUsageResponse, oneof: "response" },
|
|
527
605
|
{ no: 11, name: "get_framework_info", kind: "message", T: SessionResponse_GetFrameworkInfoResponse, oneof: "response" },
|
|
606
|
+
{ no: 12, name: "update_io", kind: "message", T: SessionResponse_UpdateIOResponse, oneof: "response" },
|
|
528
607
|
],
|
|
529
608
|
);
|
|
530
609
|
|
|
@@ -624,6 +703,15 @@ export const SessionResponse_GetFrameworkInfoResponse = /*@__PURE__*/ proto3.mak
|
|
|
624
703
|
{localName: "SessionResponse_GetFrameworkInfoResponse"},
|
|
625
704
|
);
|
|
626
705
|
|
|
706
|
+
/**
|
|
707
|
+
* @generated from message livekit.agent.SessionResponse.UpdateIOResponse
|
|
708
|
+
*/
|
|
709
|
+
export const SessionResponse_UpdateIOResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
710
|
+
"livekit.agent.SessionResponse.UpdateIOResponse",
|
|
711
|
+
[],
|
|
712
|
+
{localName: "SessionResponse_UpdateIOResponse"},
|
|
713
|
+
);
|
|
714
|
+
|
|
627
715
|
/**
|
|
628
716
|
* @generated from message livekit.agent.AgentSessionMessage
|
|
629
717
|
*/
|
|
@@ -145,6 +145,41 @@ export declare class SimulationRun extends Message<SimulationRun> {
|
|
|
145
145
|
*/
|
|
146
146
|
summary?: SimulationRunSummary;
|
|
147
147
|
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: string agent_name = 9;
|
|
150
|
+
*/
|
|
151
|
+
agentName: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: livekit.ScenarioGroup scenario_group = 10;
|
|
155
|
+
*/
|
|
156
|
+
scenarioGroup?: ScenarioGroup;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: google.protobuf.Timestamp ended_at = 11;
|
|
160
|
+
*/
|
|
161
|
+
endedAt?: Timestamp;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: int32 job_count = 12;
|
|
165
|
+
*/
|
|
166
|
+
jobCount: number;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: int32 passed_count = 13;
|
|
170
|
+
*/
|
|
171
|
+
passedCount: number;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: int32 failed_count = 14;
|
|
175
|
+
*/
|
|
176
|
+
failedCount: number;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: int32 num_simulations = 15;
|
|
180
|
+
*/
|
|
181
|
+
numSimulations: number;
|
|
182
|
+
|
|
148
183
|
constructor(data?: PartialMessage<SimulationRun>);
|
|
149
184
|
|
|
150
185
|
static readonly runtime: typeof proto3;
|
|
@@ -234,6 +269,36 @@ export declare class SimulationRun_Job extends Message<SimulationRun_Job> {
|
|
|
234
269
|
*/
|
|
235
270
|
label: string;
|
|
236
271
|
|
|
272
|
+
/**
|
|
273
|
+
* @generated from field: repeated string tags = 7;
|
|
274
|
+
*/
|
|
275
|
+
tags: string[];
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: string room_name = 8;
|
|
279
|
+
*/
|
|
280
|
+
roomName: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @generated from field: string scenario_id = 9;
|
|
284
|
+
*/
|
|
285
|
+
scenarioId: string;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @generated from field: google.protobuf.Timestamp started_at = 10;
|
|
289
|
+
*/
|
|
290
|
+
startedAt?: Timestamp;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @generated from field: google.protobuf.Timestamp ended_at = 11;
|
|
294
|
+
*/
|
|
295
|
+
endedAt?: Timestamp;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @generated from field: string room_id = 12;
|
|
299
|
+
*/
|
|
300
|
+
roomId: string;
|
|
301
|
+
|
|
237
302
|
constructor(data?: PartialMessage<SimulationRun_Job>);
|
|
238
303
|
|
|
239
304
|
static readonly runtime: typeof proto3;
|
|
@@ -1287,6 +1352,11 @@ export declare class ScenarioGroup extends Message<ScenarioGroup> {
|
|
|
1287
1352
|
*/
|
|
1288
1353
|
scenarios: Scenario[];
|
|
1289
1354
|
|
|
1355
|
+
/**
|
|
1356
|
+
* @generated from field: int32 scenario_count = 6;
|
|
1357
|
+
*/
|
|
1358
|
+
scenarioCount: number;
|
|
1359
|
+
|
|
1290
1360
|
constructor(data?: PartialMessage<ScenarioGroup>);
|
|
1291
1361
|
|
|
1292
1362
|
static readonly runtime: typeof proto3;
|
|
@@ -63,6 +63,13 @@ export const SimulationRun = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
63
63
|
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
64
64
|
{ no: 7, name: "jobs", kind: "message", T: SimulationRun_Job, repeated: true },
|
|
65
65
|
{ no: 8, name: "summary", kind: "message", T: SimulationRunSummary },
|
|
66
|
+
{ no: 9, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
67
|
+
{ no: 10, name: "scenario_group", kind: "message", T: ScenarioGroup },
|
|
68
|
+
{ no: 11, name: "ended_at", kind: "message", T: Timestamp },
|
|
69
|
+
{ no: 12, name: "job_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
70
|
+
{ no: 13, name: "passed_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
71
|
+
{ no: 14, name: "failed_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
72
|
+
{ no: 15, name: "num_simulations", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
66
73
|
],
|
|
67
74
|
);
|
|
68
75
|
|
|
@@ -94,6 +101,12 @@ export const SimulationRun_Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
94
101
|
{ no: 4, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
95
102
|
{ no: 5, name: "agent_expectations", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
96
103
|
{ no: 6, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
104
|
+
{ no: 7, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
105
|
+
{ no: 8, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
106
|
+
{ no: 9, name: "scenario_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
107
|
+
{ no: 10, name: "started_at", kind: "message", T: Timestamp },
|
|
108
|
+
{ no: 11, name: "ended_at", kind: "message", T: Timestamp },
|
|
109
|
+
{ no: 12, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
97
110
|
],
|
|
98
111
|
{localName: "SimulationRun_Job"},
|
|
99
112
|
);
|
|
@@ -515,6 +528,7 @@ export const ScenarioGroup = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
515
528
|
{ no: 3, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
516
529
|
{ no: 4, name: "created_at", kind: "message", T: Timestamp },
|
|
517
530
|
{ no: 5, name: "scenarios", kind: "message", T: Scenario, repeated: true },
|
|
531
|
+
{ no: 6, name: "scenario_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
518
532
|
],
|
|
519
533
|
);
|
|
520
534
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Copyright 2023 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 livekit_agent_worker.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from message livekit.WorkerInfo
|
|
25
|
+
*/
|
|
26
|
+
export declare class WorkerInfo extends Message<WorkerInfo> {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: string worker_type = 1;
|
|
29
|
+
*/
|
|
30
|
+
workerType: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: string agent_name = 2;
|
|
34
|
+
*/
|
|
35
|
+
agentName: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: float active_jobs = 3;
|
|
39
|
+
*/
|
|
40
|
+
activeJobs: number;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @generated from field: string sdk_version = 4;
|
|
44
|
+
*/
|
|
45
|
+
sdkVersion: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: float worker_load = 5;
|
|
49
|
+
*/
|
|
50
|
+
workerLoad: number;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @generated from field: int32 protocol_version = 6;
|
|
54
|
+
*/
|
|
55
|
+
protocolVersion: number;
|
|
56
|
+
|
|
57
|
+
constructor(data?: PartialMessage<WorkerInfo>);
|
|
58
|
+
|
|
59
|
+
static readonly runtime: typeof proto3;
|
|
60
|
+
static readonly typeName = "livekit.WorkerInfo";
|
|
61
|
+
static readonly fields: FieldList;
|
|
62
|
+
|
|
63
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerInfo;
|
|
64
|
+
|
|
65
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerInfo;
|
|
66
|
+
|
|
67
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerInfo;
|
|
68
|
+
|
|
69
|
+
static equals(a: WorkerInfo | PlainMessage<WorkerInfo> | undefined, b: WorkerInfo | PlainMessage<WorkerInfo> | undefined): boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Copyright 2023 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 livekit_agent_worker.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from message livekit.WorkerInfo
|
|
24
|
+
*/
|
|
25
|
+
export const WorkerInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
26
|
+
"livekit.WorkerInfo",
|
|
27
|
+
() => [
|
|
28
|
+
{ no: 1, name: "worker_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
29
|
+
{ no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
30
|
+
{ no: 3, name: "active_jobs", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
31
|
+
{ no: 4, name: "sdk_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
32
|
+
{ no: 5, name: "worker_load", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
33
|
+
{ no: 6, name: "protocol_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
34
|
+
],
|
|
35
|
+
);
|
|
36
|
+
|