@livekit/agents-plugin-openai 1.9.1 → 1.9.3
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/models.cjs +14 -1
- package/dist/models.cjs.map +1 -1
- package/dist/models.d.cts +3 -2
- package/dist/models.d.ts +3 -2
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +14 -1
- package/dist/models.js.map +1 -1
- package/dist/realtime/api_proto.cjs +3 -21
- package/dist/realtime/api_proto.cjs.map +1 -1
- package/dist/realtime/api_proto.d.cts +1 -504
- package/dist/realtime/api_proto.d.ts +1 -504
- package/dist/realtime/api_proto.d.ts.map +1 -1
- package/dist/realtime/api_proto.js +1 -12
- package/dist/realtime/api_proto.js.map +1 -1
- package/dist/realtime/gpt_live_model.cjs +7 -851
- package/dist/realtime/gpt_live_model.cjs.map +1 -1
- package/dist/realtime/gpt_live_model.d.cts +6 -178
- package/dist/realtime/gpt_live_model.d.ts +6 -178
- package/dist/realtime/gpt_live_model.d.ts.map +1 -1
- package/dist/realtime/gpt_live_model.js +7 -850
- package/dist/realtime/gpt_live_model.js.map +1 -1
- package/dist/realtime/gpt_live_model.test.cjs +32 -1
- package/dist/realtime/gpt_live_model.test.cjs.map +1 -1
- package/dist/realtime/gpt_live_model.test.js +32 -1
- package/dist/realtime/gpt_live_model.test.js.map +1 -1
- package/dist/realtime/gpt_live_types.cjs +6 -0
- package/dist/realtime/gpt_live_types.cjs.map +1 -1
- package/dist/realtime/gpt_live_types.d.cts +1 -169
- package/dist/realtime/gpt_live_types.d.ts +1 -169
- package/dist/realtime/gpt_live_types.d.ts.map +1 -1
- package/dist/realtime/gpt_live_types.js +1 -0
- package/dist/realtime/gpt_live_types.js.map +1 -1
- package/dist/realtime/index.cjs +8 -1
- package/dist/realtime/index.cjs.map +1 -1
- package/dist/realtime/index.d.cts +5 -0
- package/dist/realtime/index.d.ts +5 -0
- package/dist/realtime/index.d.ts.map +1 -1
- package/dist/realtime/index.js +6 -1
- package/dist/realtime/index.js.map +1 -1
- package/dist/realtime/realtime_model.cjs +3 -1831
- package/dist/realtime/realtime_model.cjs.map +1 -1
- package/dist/realtime/realtime_model.d.cts +1 -232
- package/dist/realtime/realtime_model.d.ts +1 -232
- package/dist/realtime/realtime_model.d.ts.map +1 -1
- package/dist/realtime/realtime_model.js +1 -1827
- package/dist/realtime/realtime_model.js.map +1 -1
- package/dist/realtime/realtime_model.test.cjs +11 -976
- package/dist/realtime/realtime_model.test.cjs.map +1 -1
- package/dist/realtime/realtime_model.test.js +16 -982
- package/dist/realtime/realtime_model.test.js.map +1 -1
- package/dist/stt.cjs +128 -86
- package/dist/stt.cjs.map +1 -1
- package/dist/stt.d.ts.map +1 -1
- package/dist/stt.js +133 -87
- package/dist/stt.js.map +1 -1
- package/dist/stt_recovery.test.cjs +197 -0
- package/dist/stt_recovery.test.cjs.map +1 -0
- package/dist/stt_recovery.test.d.cts +2 -0
- package/dist/stt_recovery.test.d.ts +2 -0
- package/dist/stt_recovery.test.d.ts.map +1 -0
- package/dist/stt_recovery.test.js +174 -0
- package/dist/stt_recovery.test.js.map +1 -0
- package/dist/ws/llm.cjs +1 -1
- package/dist/ws/llm.cjs.map +1 -1
- package/dist/ws/llm.js +1 -1
- package/dist/ws/llm.js.map +1 -1
- package/package.json +5 -6
- package/src/models.ts +23 -2
- package/src/realtime/api_proto.ts +2 -715
- package/src/realtime/gpt_live_model.test.ts +42 -1
- package/src/realtime/gpt_live_model.ts +17 -1030
- package/src/realtime/gpt_live_types.ts +1 -136
- package/src/realtime/index.ts +7 -0
- package/src/realtime/realtime_model.test.ts +17 -1268
- package/src/realtime/realtime_model.ts +2 -2332
- package/src/stt.ts +147 -104
- package/src/stt_recovery.test.ts +190 -0
- package/src/ws/llm.ts +1 -1
|
@@ -1,170 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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":"
|
|
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 @@
|
|
|
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":[]}
|
package/dist/realtime/index.cjs
CHANGED
|
@@ -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,
|
|
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
|
package/dist/realtime/index.d.ts
CHANGED
|
@@ -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"}
|
package/dist/realtime/index.js
CHANGED
|
@@ -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":[]}
|