@livekit/agents-plugin-openai 1.9.2 → 1.9.4

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.
Files changed (64) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/models.cjs.map +1 -1
  4. package/dist/models.d.cts +1 -0
  5. package/dist/models.d.ts +1 -0
  6. package/dist/models.d.ts.map +1 -1
  7. package/dist/models.js.map +1 -1
  8. package/dist/realtime/api_proto.cjs +3 -21
  9. package/dist/realtime/api_proto.cjs.map +1 -1
  10. package/dist/realtime/api_proto.d.cts +1 -504
  11. package/dist/realtime/api_proto.d.ts +1 -504
  12. package/dist/realtime/api_proto.d.ts.map +1 -1
  13. package/dist/realtime/api_proto.js +1 -12
  14. package/dist/realtime/api_proto.js.map +1 -1
  15. package/dist/realtime/gpt_live_model.cjs +7 -851
  16. package/dist/realtime/gpt_live_model.cjs.map +1 -1
  17. package/dist/realtime/gpt_live_model.d.cts +6 -178
  18. package/dist/realtime/gpt_live_model.d.ts +6 -178
  19. package/dist/realtime/gpt_live_model.d.ts.map +1 -1
  20. package/dist/realtime/gpt_live_model.js +7 -850
  21. package/dist/realtime/gpt_live_model.js.map +1 -1
  22. package/dist/realtime/gpt_live_model.test.cjs +32 -1
  23. package/dist/realtime/gpt_live_model.test.cjs.map +1 -1
  24. package/dist/realtime/gpt_live_model.test.js +32 -1
  25. package/dist/realtime/gpt_live_model.test.js.map +1 -1
  26. package/dist/realtime/gpt_live_types.cjs +6 -0
  27. package/dist/realtime/gpt_live_types.cjs.map +1 -1
  28. package/dist/realtime/gpt_live_types.d.cts +1 -169
  29. package/dist/realtime/gpt_live_types.d.ts +1 -169
  30. package/dist/realtime/gpt_live_types.d.ts.map +1 -1
  31. package/dist/realtime/gpt_live_types.js +1 -0
  32. package/dist/realtime/gpt_live_types.js.map +1 -1
  33. package/dist/realtime/index.cjs +8 -1
  34. package/dist/realtime/index.cjs.map +1 -1
  35. package/dist/realtime/index.d.cts +5 -0
  36. package/dist/realtime/index.d.ts +5 -0
  37. package/dist/realtime/index.d.ts.map +1 -1
  38. package/dist/realtime/index.js +6 -1
  39. package/dist/realtime/index.js.map +1 -1
  40. package/dist/realtime/realtime_model.cjs +3 -1890
  41. package/dist/realtime/realtime_model.cjs.map +1 -1
  42. package/dist/realtime/realtime_model.d.cts +1 -236
  43. package/dist/realtime/realtime_model.d.ts +1 -236
  44. package/dist/realtime/realtime_model.d.ts.map +1 -1
  45. package/dist/realtime/realtime_model.js +1 -1886
  46. package/dist/realtime/realtime_model.js.map +1 -1
  47. package/dist/realtime/realtime_model.test.cjs +11 -1141
  48. package/dist/realtime/realtime_model.test.cjs.map +1 -1
  49. package/dist/realtime/realtime_model.test.js +16 -1147
  50. package/dist/realtime/realtime_model.test.js.map +1 -1
  51. package/dist/tool_utils.test.cjs +3 -1
  52. package/dist/tool_utils.test.cjs.map +1 -1
  53. package/dist/tool_utils.test.js +3 -1
  54. package/dist/tool_utils.test.js.map +1 -1
  55. package/package.json +5 -6
  56. package/src/models.ts +2 -0
  57. package/src/realtime/api_proto.ts +2 -715
  58. package/src/realtime/gpt_live_model.test.ts +42 -1
  59. package/src/realtime/gpt_live_model.ts +17 -1030
  60. package/src/realtime/gpt_live_types.ts +1 -136
  61. package/src/realtime/index.ts +7 -0
  62. package/src/realtime/realtime_model.test.ts +17 -1454
  63. package/src/realtime/realtime_model.ts +2 -2408
  64. package/src/tool_utils.test.ts +3 -1
@@ -1,170 +1,2 @@
1
- import type OpenAI from 'openai';
2
- import type { Reasoning } from 'openai/resources/shared.js';
3
- /** GPT-Live wire types. Field names follow the service protocol. @public */
4
- export type DelegationTarget = 'responses' | 'client';
5
- /** Roles accepted in initial session history. @public */
6
- export type InputRole = 'developer' | 'user' | 'assistant';
7
- /** A text message used to seed session history. @public */
8
- export interface InputItem {
9
- type: 'message';
10
- role: InputRole;
11
- content: {
12
- type: 'input_text' | 'output_text';
13
- text: string;
14
- }[];
15
- }
16
- /** Backend Responses API options, using wire field names. @public */
17
- export interface ResponsesConfig {
18
- model?: string;
19
- instructions?: string;
20
- tools?: OpenAI.Responses.Tool[];
21
- tool_choice?: string | {
22
- type: 'function';
23
- name: string;
24
- };
25
- parallel_tool_calls?: boolean;
26
- reasoning?: Reasoning;
27
- text?: OpenAI.Responses.ResponseTextConfig;
28
- service_tier?: 'auto' | 'default' | 'flex' | 'priority';
29
- max_output_tokens?: number;
30
- }
31
- /** Choose the backend Responses model or application callbacks. @public */
32
- export type Delegation = {
33
- type: 'client';
34
- } | {
35
- type: 'responses';
36
- responses: ResponsesConfig;
37
- };
38
- /** Initial voice, audio, context, and delegation configuration. @public */
39
- export interface SessionConfig {
40
- model: string;
41
- instructions?: string;
42
- input?: InputItem[];
43
- audio?: {
44
- format?: {
45
- type: 'audio/pcm' | 'audio/pcmu' | 'audio/pcma';
46
- rate: number;
47
- };
48
- output?: {
49
- voice?: string | Record<string, unknown>;
50
- };
51
- };
52
- delegation?: Delegation;
53
- }
54
- /** Commands sent to the GPT-Live WebSocket. @public */
55
- export type ClientEvent = {
56
- event_id?: string;
57
- } & ({
58
- type: 'session.start';
59
- session: SessionConfig;
60
- } | {
61
- type: 'session.update';
62
- session: {
63
- delegation: Delegation;
64
- };
65
- } | {
66
- type: 'session.input_audio.append';
67
- audio: string;
68
- } | {
69
- type: 'session.input_audio.mute' | 'session.input_audio.unmute' | 'session.close' | 'response.create';
70
- } | {
71
- type: 'session.instructions.append' | 'session.thinking.append' | 'session.commentary.append';
72
- /** Required on every append, including when no delegation is being answered. */
73
- delegation_id: string | null;
74
- content: string;
75
- } | {
76
- type: 'response.item.create';
77
- item: OpenAI.Responses.ResponseInputItem;
78
- });
79
- /** Backend response token usage, separate from voice session duration. @public */
80
- export interface ResponseUsage {
81
- input_tokens?: number;
82
- input_tokens_details?: {
83
- cached_tokens?: number;
84
- cache_write_tokens?: number;
85
- };
86
- output_tokens?: number;
87
- output_tokens_details?: {
88
- reasoning_tokens?: number;
89
- };
90
- total_tokens?: number;
91
- }
92
- /** Responses API events nested inside a GPT-Live response.event. @public */
93
- export interface ResponsesEvent {
94
- type: string;
95
- response?: {
96
- id?: string | null;
97
- model?: string | null;
98
- usage?: ResponseUsage | null;
99
- error?: Record<string, unknown> | null;
100
- incomplete_details?: Record<string, unknown> | null;
101
- } | null;
102
- item?: {
103
- id?: string | null;
104
- type?: string | null;
105
- call_id?: string | null;
106
- name?: string | null;
107
- arguments?: string | null;
108
- } | null;
109
- }
110
- /** Provider error details. Messages can contain customer content. @public */
111
- export interface ErrorBody {
112
- type?: string | null;
113
- code?: string | null;
114
- message?: string;
115
- param?: string | null;
116
- client_event_id?: string | null;
117
- }
118
- /** Server fields are optional so missing fields do not end a session. @public */
119
- export type ServerEvent = {
120
- type: 'session.started';
121
- session?: {
122
- id?: string | null;
123
- };
124
- } | {
125
- type: 'session.output_audio.delta';
126
- delta?: string;
127
- } | {
128
- type: 'session.output_transcript.delta' | 'session.input_transcript.delta';
129
- delta?: string;
130
- start_ms?: number | null;
131
- end_ms?: number | null;
132
- } | {
133
- type: 'session.delegation.created';
134
- delegation?: {
135
- id?: string | null;
136
- target?: DelegationTarget | null;
137
- };
138
- } | {
139
- type: 'response.event';
140
- delegation_id?: string | null;
141
- event?: ResponsesEvent;
142
- } | {
143
- type: 'session.usage.updated';
144
- usage?: {
145
- seconds?: number;
146
- };
147
- context_window?: {
148
- usage_ratio?: number | null;
149
- } | null;
150
- } | {
151
- type: 'session.closed';
152
- reason?: 'close_requested' | 'expired' | 'content' | 'remote_hangup' | 'connection_lost' | null;
153
- usage?: {
154
- seconds?: number;
155
- };
156
- context_window?: {
157
- usage_ratio?: number | null;
158
- } | null;
159
- } | {
160
- type: 'error';
161
- error?: ErrorBody;
162
- } | {
163
- type: 'session.updated' | 'session.input_audio.muted' | 'session.input_audio.unmuted';
164
- client_event_id?: string;
165
- } | {
166
- /** Sent at the estimated context-injection end; does not indicate speech completion. */
167
- type: 'session.instructions.appended' | 'session.thinking.appended' | 'session.commentary.appended';
168
- client_event_id?: string;
169
- };
1
+ export * from '@livekit/agents/llm/openai_realtime/gpt_live_types';
170
2
  //# sourceMappingURL=gpt_live_types.d.ts.map
@@ -1,170 +1,2 @@
1
- import type OpenAI from 'openai';
2
- import type { Reasoning } from 'openai/resources/shared.js';
3
- /** GPT-Live wire types. Field names follow the service protocol. @public */
4
- export type DelegationTarget = 'responses' | 'client';
5
- /** Roles accepted in initial session history. @public */
6
- export type InputRole = 'developer' | 'user' | 'assistant';
7
- /** A text message used to seed session history. @public */
8
- export interface InputItem {
9
- type: 'message';
10
- role: InputRole;
11
- content: {
12
- type: 'input_text' | 'output_text';
13
- text: string;
14
- }[];
15
- }
16
- /** Backend Responses API options, using wire field names. @public */
17
- export interface ResponsesConfig {
18
- model?: string;
19
- instructions?: string;
20
- tools?: OpenAI.Responses.Tool[];
21
- tool_choice?: string | {
22
- type: 'function';
23
- name: string;
24
- };
25
- parallel_tool_calls?: boolean;
26
- reasoning?: Reasoning;
27
- text?: OpenAI.Responses.ResponseTextConfig;
28
- service_tier?: 'auto' | 'default' | 'flex' | 'priority';
29
- max_output_tokens?: number;
30
- }
31
- /** Choose the backend Responses model or application callbacks. @public */
32
- export type Delegation = {
33
- type: 'client';
34
- } | {
35
- type: 'responses';
36
- responses: ResponsesConfig;
37
- };
38
- /** Initial voice, audio, context, and delegation configuration. @public */
39
- export interface SessionConfig {
40
- model: string;
41
- instructions?: string;
42
- input?: InputItem[];
43
- audio?: {
44
- format?: {
45
- type: 'audio/pcm' | 'audio/pcmu' | 'audio/pcma';
46
- rate: number;
47
- };
48
- output?: {
49
- voice?: string | Record<string, unknown>;
50
- };
51
- };
52
- delegation?: Delegation;
53
- }
54
- /** Commands sent to the GPT-Live WebSocket. @public */
55
- export type ClientEvent = {
56
- event_id?: string;
57
- } & ({
58
- type: 'session.start';
59
- session: SessionConfig;
60
- } | {
61
- type: 'session.update';
62
- session: {
63
- delegation: Delegation;
64
- };
65
- } | {
66
- type: 'session.input_audio.append';
67
- audio: string;
68
- } | {
69
- type: 'session.input_audio.mute' | 'session.input_audio.unmute' | 'session.close' | 'response.create';
70
- } | {
71
- type: 'session.instructions.append' | 'session.thinking.append' | 'session.commentary.append';
72
- /** Required on every append, including when no delegation is being answered. */
73
- delegation_id: string | null;
74
- content: string;
75
- } | {
76
- type: 'response.item.create';
77
- item: OpenAI.Responses.ResponseInputItem;
78
- });
79
- /** Backend response token usage, separate from voice session duration. @public */
80
- export interface ResponseUsage {
81
- input_tokens?: number;
82
- input_tokens_details?: {
83
- cached_tokens?: number;
84
- cache_write_tokens?: number;
85
- };
86
- output_tokens?: number;
87
- output_tokens_details?: {
88
- reasoning_tokens?: number;
89
- };
90
- total_tokens?: number;
91
- }
92
- /** Responses API events nested inside a GPT-Live response.event. @public */
93
- export interface ResponsesEvent {
94
- type: string;
95
- response?: {
96
- id?: string | null;
97
- model?: string | null;
98
- usage?: ResponseUsage | null;
99
- error?: Record<string, unknown> | null;
100
- incomplete_details?: Record<string, unknown> | null;
101
- } | null;
102
- item?: {
103
- id?: string | null;
104
- type?: string | null;
105
- call_id?: string | null;
106
- name?: string | null;
107
- arguments?: string | null;
108
- } | null;
109
- }
110
- /** Provider error details. Messages can contain customer content. @public */
111
- export interface ErrorBody {
112
- type?: string | null;
113
- code?: string | null;
114
- message?: string;
115
- param?: string | null;
116
- client_event_id?: string | null;
117
- }
118
- /** Server fields are optional so missing fields do not end a session. @public */
119
- export type ServerEvent = {
120
- type: 'session.started';
121
- session?: {
122
- id?: string | null;
123
- };
124
- } | {
125
- type: 'session.output_audio.delta';
126
- delta?: string;
127
- } | {
128
- type: 'session.output_transcript.delta' | 'session.input_transcript.delta';
129
- delta?: string;
130
- start_ms?: number | null;
131
- end_ms?: number | null;
132
- } | {
133
- type: 'session.delegation.created';
134
- delegation?: {
135
- id?: string | null;
136
- target?: DelegationTarget | null;
137
- };
138
- } | {
139
- type: 'response.event';
140
- delegation_id?: string | null;
141
- event?: ResponsesEvent;
142
- } | {
143
- type: 'session.usage.updated';
144
- usage?: {
145
- seconds?: number;
146
- };
147
- context_window?: {
148
- usage_ratio?: number | null;
149
- } | null;
150
- } | {
151
- type: 'session.closed';
152
- reason?: 'close_requested' | 'expired' | 'content' | 'remote_hangup' | 'connection_lost' | null;
153
- usage?: {
154
- seconds?: number;
155
- };
156
- context_window?: {
157
- usage_ratio?: number | null;
158
- } | null;
159
- } | {
160
- type: 'error';
161
- error?: ErrorBody;
162
- } | {
163
- type: 'session.updated' | 'session.input_audio.muted' | 'session.input_audio.unmuted';
164
- client_event_id?: string;
165
- } | {
166
- /** Sent at the estimated context-injection end; does not indicate speech completion. */
167
- type: 'session.instructions.appended' | 'session.thinking.appended' | 'session.commentary.appended';
168
- client_event_id?: string;
169
- };
1
+ export * from '@livekit/agents/llm/openai_realtime/gpt_live_types';
170
2
  //# sourceMappingURL=gpt_live_types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gpt_live_types.d.ts","sourceRoot":"","sources":["../../src/realtime/gpt_live_types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,4EAA4E;AAC5E,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,QAAQ,CAAC;AACtD,yDAAyD;AACzD,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAC3D,2DAA2D;AAC3D,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE;QAAE,IAAI,EAAE,YAAY,GAAG,aAAa,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACjE;AACD,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAA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AE,CAAC;CACvE,GACD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,cAAc,CAAA;CAAE,GACjF;IACE,IAAI,EAAE,uBAAuB,CAAC;IAC9B,KAAK,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,cAAc,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACzD,GACD;IACE,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,CAAC,EACH,iBAAiB,GACjB,SAAS,GACT,SAAS,GACT,eAAe,GACf,iBAAiB,GACjB,IAAI,CAAC;IACT,KAAK,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,cAAc,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACzD,GACD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GACpC;IACE,IAAI,EAAE,iBAAiB,GAAG,2BAA2B,GAAG,6BAA6B,CAAC;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GACD;IACE,wFAAwF;IACxF,IAAI,EACA,+BAA+B,GAC/B,2BAA2B,GAC3B,6BAA6B,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"gpt_live_types.d.ts","sourceRoot":"","sources":["../../src/realtime/gpt_live_types.ts"],"names":[],"mappings":"AAIA,cAAc,oDAAoD,CAAC"}
@@ -1 +1,2 @@
1
+ export * from "@livekit/agents/llm/openai_realtime/gpt_live_types";
1
2
  //# sourceMappingURL=gpt_live_types.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../../src/realtime/gpt_live_types.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2026 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\n\nexport * from '@livekit/agents/llm/openai_realtime/gpt_live_types';\n"],"mappings":"AAIA,cAAc;","names":[]}
@@ -29,16 +29,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
  var realtime_exports = {};
31
31
  __export(realtime_exports, {
32
- GPTLive: () => GPTLive
32
+ GPTLive: () => GPTLive,
33
+ InferenceRealtimeModel: () => InferenceRealtimeModel,
34
+ InferenceRealtimeSession: () => InferenceRealtimeSession
33
35
  });
34
36
  module.exports = __toCommonJS(realtime_exports);
37
+ var import_agents = require("@livekit/agents");
35
38
  __reExport(realtime_exports, require("./api_proto.cjs"), module.exports);
36
39
  __reExport(realtime_exports, require("./realtime_model.cjs"), module.exports);
37
40
  __reExport(realtime_exports, require("./gpt_live_model.cjs"), module.exports);
38
41
  var GPTLive = __toESM(require("./gpt_live_types.cjs"), 1);
42
+ const InferenceRealtimeModel = import_agents.inference.RealtimeModel;
43
+ const InferenceRealtimeSession = import_agents.inference.RealtimeSession;
39
44
  // Annotate the CommonJS export names for ESM import in node:
40
45
  0 && (module.exports = {
41
46
  GPTLive,
47
+ InferenceRealtimeModel,
48
+ InferenceRealtimeSession,
42
49
  ...require("./api_proto.cjs"),
43
50
  ...require("./realtime_model.cjs"),
44
51
  ...require("./gpt_live_model.cjs")
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/realtime/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nexport * from './api_proto.js';\nexport * from './realtime_model.js';\nexport * from './gpt_live_model.js';\nexport * as GPTLive from './gpt_live_types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,6BAAc,2BAHd;AAIA,6BAAc,gCAJd;AAKA,6BAAc,gCALd;AAMA,cAAyB;","names":[]}
1
+ {"version":3,"sources":["../../src/realtime/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { inference } from '@livekit/agents';\n\nexport * from './api_proto.js';\nexport * from './realtime_model.js';\nexport * from './gpt_live_model.js';\nexport * as GPTLive from './gpt_live_types.js';\n\n/** @deprecated Use `inference.RealtimeModel` from `@livekit/agents`. */\nexport const InferenceRealtimeModel = inference.RealtimeModel;\n/** @deprecated Use `inference.RealtimeSession` from `@livekit/agents`. */\nexport const InferenceRealtimeSession = inference.RealtimeSession;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAA0B;AAE1B,6BAAc,2BALd;AAMA,6BAAc,gCANd;AAOA,6BAAc,gCAPd;AAQA,cAAyB;AAGlB,MAAM,yBAAyB,wBAAU;AAEzC,MAAM,2BAA2B,wBAAU;","names":[]}
@@ -1,5 +1,10 @@
1
+ import { inference } from '@livekit/agents';
1
2
  export * from './api_proto.js';
2
3
  export * from './realtime_model.js';
3
4
  export * from './gpt_live_model.js';
4
5
  export * as GPTLive from './gpt_live_types.js';
6
+ /** @deprecated Use `inference.RealtimeModel` from `@livekit/agents`. */
7
+ export declare const InferenceRealtimeModel: typeof inference.RealtimeModel;
8
+ /** @deprecated Use `inference.RealtimeSession` from `@livekit/agents`. */
9
+ export declare const InferenceRealtimeSession: typeof inference.RealtimeSession;
5
10
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,10 @@
1
+ import { inference } from '@livekit/agents';
1
2
  export * from './api_proto.js';
2
3
  export * from './realtime_model.js';
3
4
  export * from './gpt_live_model.js';
4
5
  export * as GPTLive from './gpt_live_types.js';
6
+ /** @deprecated Use `inference.RealtimeModel` from `@livekit/agents`. */
7
+ export declare const InferenceRealtimeModel: typeof inference.RealtimeModel;
8
+ /** @deprecated Use `inference.RealtimeSession` from `@livekit/agents`. */
9
+ export declare const InferenceRealtimeSession: typeof inference.RealtimeSession;
5
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/realtime/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/realtime/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,wEAAwE;AACxE,eAAO,MAAM,sBAAsB,gCAA0B,CAAC;AAC9D,0EAA0E;AAC1E,eAAO,MAAM,wBAAwB,kCAA4B,CAAC"}
@@ -1,8 +1,13 @@
1
+ import { inference } from "@livekit/agents";
1
2
  export * from "./api_proto.js";
2
3
  export * from "./realtime_model.js";
3
4
  export * from "./gpt_live_model.js";
4
5
  import * as GPTLive from "./gpt_live_types.js";
6
+ const InferenceRealtimeModel = inference.RealtimeModel;
7
+ const InferenceRealtimeSession = inference.RealtimeSession;
5
8
  export {
6
- GPTLive
9
+ GPTLive,
10
+ InferenceRealtimeModel,
11
+ InferenceRealtimeSession
7
12
  };
8
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/realtime/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nexport * from './api_proto.js';\nexport * from './realtime_model.js';\nexport * from './gpt_live_model.js';\nexport * as GPTLive from './gpt_live_types.js';\n"],"mappings":"AAGA,cAAc;AACd,cAAc;AACd,cAAc;AACd,YAAY,aAAa;","names":[]}
1
+ {"version":3,"sources":["../../src/realtime/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { inference } from '@livekit/agents';\n\nexport * from './api_proto.js';\nexport * from './realtime_model.js';\nexport * from './gpt_live_model.js';\nexport * as GPTLive from './gpt_live_types.js';\n\n/** @deprecated Use `inference.RealtimeModel` from `@livekit/agents`. */\nexport const InferenceRealtimeModel = inference.RealtimeModel;\n/** @deprecated Use `inference.RealtimeSession` from `@livekit/agents`. */\nexport const InferenceRealtimeSession = inference.RealtimeSession;\n"],"mappings":"AAGA,SAAS,iBAAiB;AAE1B,cAAc;AACd,cAAc;AACd,cAAc;AACd,YAAY,aAAa;AAGlB,MAAM,yBAAyB,UAAU;AAEzC,MAAM,2BAA2B,UAAU;","names":[]}