@mastra/livekit 0.2.0 → 0.3.0
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/CHANGELOG.md +267 -0
- package/README.md +164 -38
- package/dist/bridge.d.ts +76 -0
- package/dist/bridge.d.ts.map +1 -1
- package/dist/chunk-4O7IN74Y.js +568 -0
- package/dist/chunk-4O7IN74Y.js.map +1 -0
- package/dist/chunk-DBVKNDAQ.cjs +574 -0
- package/dist/chunk-DBVKNDAQ.cjs.map +1 -0
- package/dist/consent.d.ts +55 -0
- package/dist/consent.d.ts.map +1 -0
- package/dist/end-call.d.ts +50 -0
- package/dist/end-call.d.ts.map +1 -0
- package/dist/index.cjs +46 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -1
- package/dist/index.js.map +1 -1
- package/dist/llm-plugin.d.ts +112 -0
- package/dist/llm-plugin.d.ts.map +1 -0
- package/dist/messages.d.ts +26 -0
- package/dist/messages.d.ts.map +1 -1
- package/dist/plugin-entry.cjs +182 -0
- package/dist/plugin-entry.cjs.map +1 -0
- package/dist/plugin-entry.d.ts +6 -0
- package/dist/plugin-entry.d.ts.map +1 -0
- package/dist/plugin-entry.js +177 -0
- package/dist/plugin-entry.js.map +1 -0
- package/dist/remote.d.ts +68 -0
- package/dist/remote.d.ts.map +1 -0
- package/dist/worker-entry.cjs +157 -210
- package/dist/worker-entry.cjs.map +1 -1
- package/dist/worker-entry.d.ts +5 -3
- package/dist/worker-entry.d.ts.map +1 -1
- package/dist/worker-entry.js +144 -210
- package/dist/worker-entry.js.map +1 -1
- package/dist/worker.d.ts +281 -7
- package/dist/worker.d.ts.map +1 -1
- package/package.json +16 -6
package/dist/worker.d.ts
CHANGED
|
@@ -36,6 +36,12 @@ export interface VoiceCallEndArgs {
|
|
|
36
36
|
metadata: LiveKitSessionMetadata;
|
|
37
37
|
/** Request context for the call, if any. */
|
|
38
38
|
requestContext?: RequestContext;
|
|
39
|
+
/**
|
|
40
|
+
* The worker's `configuration` (greeting, consent requirements, …). Read it here to honor policy
|
|
41
|
+
* at end-of-call — e.g. only flush a call summary to observational memory when
|
|
42
|
+
* `configuration.consentPolicy.summaryStorage` isn't required, or the caller granted it.
|
|
43
|
+
*/
|
|
44
|
+
configuration?: LiveKitWorkerConfiguration;
|
|
39
45
|
/** The LiveKit room name. */
|
|
40
46
|
roomName: string;
|
|
41
47
|
/** The LiveKit job context, for advanced teardown needs. */
|
|
@@ -77,9 +83,17 @@ export interface CreateLiveKitWorkerOptions {
|
|
|
77
83
|
resultText?: (result: unknown) => string | undefined | void;
|
|
78
84
|
/** Lowest-level escape hatch: supply any reply generator directly (a custom workflow, remote bridge, …). */
|
|
79
85
|
generate?: VoiceReplyGenerator;
|
|
80
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Speech-to-text: a LiveKit plugin instance or an inference model string like 'deepgram/nova-3'.
|
|
88
|
+
* For per-call / per-tenant selection, set the `configuration.stt` resolver — it takes
|
|
89
|
+
* precedence, with this option as the fallback.
|
|
90
|
+
*/
|
|
81
91
|
stt?: voice.AgentSessionOptions['stt'];
|
|
82
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Text-to-speech: a LiveKit plugin instance or an inference model string like 'cartesia/sonic-3'.
|
|
94
|
+
* For per-call / per-tenant selection, set the `configuration.tts` resolver — it takes
|
|
95
|
+
* precedence, with this option as the fallback.
|
|
96
|
+
*/
|
|
83
97
|
tts?: voice.AgentSessionOptions['tts'];
|
|
84
98
|
/**
|
|
85
99
|
* Voice activity detection. `'silero'` (default) loads the Silero VAD from
|
|
@@ -136,12 +150,25 @@ export interface CreateLiveKitWorkerOptions {
|
|
|
136
150
|
* grace window; a thrown error is logged, not propagated. See {@link VoiceCallEndArgs}.
|
|
137
151
|
*/
|
|
138
152
|
onCallEnd?: VoiceCallEndHook;
|
|
139
|
-
/**
|
|
153
|
+
/**
|
|
154
|
+
* Grouped conversation & compliance configuration. Related policy knobs live here — rather than
|
|
155
|
+
* as many top-level worker options — so this call stays flat as more are added. Today it carries
|
|
156
|
+
* the greeting / AI-disclosure; it's the intended home for further compliance controls (recording
|
|
157
|
+
* notice, periodic re-disclosure, data retention, human handoff, …). See
|
|
158
|
+
* {@link LiveKitWorkerConfiguration}.
|
|
159
|
+
*/
|
|
160
|
+
configuration?: LiveKitWorkerConfiguration;
|
|
161
|
+
/**
|
|
162
|
+
* Static greeting spoken when the session starts.
|
|
163
|
+
*
|
|
164
|
+
* @deprecated Prefer `configuration.greeting.text`. Still honored for backwards compatibility;
|
|
165
|
+
* when `configuration.greeting` is also set, its fields take precedence.
|
|
166
|
+
*/
|
|
140
167
|
greeting?: string;
|
|
141
168
|
/**
|
|
142
|
-
* Save the spoken greeting to the memory thread as an assistant message
|
|
143
|
-
*
|
|
144
|
-
* greeting
|
|
169
|
+
* Save the spoken greeting to the memory thread as an assistant message.
|
|
170
|
+
*
|
|
171
|
+
* @deprecated Prefer `configuration.greeting.persist`. Still honored for backwards compatibility.
|
|
145
172
|
*/
|
|
146
173
|
persistGreeting?: boolean;
|
|
147
174
|
/**
|
|
@@ -158,6 +185,253 @@ export interface CreateLiveKitWorkerOptions {
|
|
|
158
185
|
}
|
|
159
186
|
export declare function resolveMemoryInstance(options: Pick<CreateLiveKitWorkerOptions, 'memoryInstance' | 'mastra'>, mastraAgent: MastraAgent | undefined, args: ResolveMastraAgentArgs, requestContext: RequestContext | undefined): Promise<MastraMemory | null>;
|
|
160
187
|
export declare function buildTurnHandling(options: Pick<CreateLiveKitWorkerOptions, 'turnHandling'>, turnDetection: TurnDetectionSetting | undefined): voice.AgentSessionOptions['turnHandling'];
|
|
188
|
+
/**
|
|
189
|
+
* Per-call context handed to the `configuration` resolvers (greeting text, STT, TTS) so they can
|
|
190
|
+
* key per-call / per-tenant behavior off the call. Built post-connect, so the dispatch metadata,
|
|
191
|
+
* request context, and room name are all available.
|
|
192
|
+
*/
|
|
193
|
+
export interface VoiceCallContext {
|
|
194
|
+
/**
|
|
195
|
+
* Dispatch metadata for the call — the per-tenant routing signal (dialed number, tenant/agent id,
|
|
196
|
+
* thread/resource, and any `requestContext` entries) parsed from the LiveKit job metadata.
|
|
197
|
+
*/
|
|
198
|
+
metadata: LiveKitSessionMetadata;
|
|
199
|
+
/** The request context built from the dispatch metadata, if any. */
|
|
200
|
+
requestContext?: RequestContext;
|
|
201
|
+
/** The LiveKit room name. */
|
|
202
|
+
roomName: string;
|
|
203
|
+
/** The LiveKit job context, for anything the metadata doesn't carry. */
|
|
204
|
+
ctx: JobContext;
|
|
205
|
+
}
|
|
206
|
+
/** Context handed to a greeting resolver. Alias of {@link VoiceCallContext}. */
|
|
207
|
+
export type GreetingContext = VoiceCallContext;
|
|
208
|
+
/**
|
|
209
|
+
* A per-call resolver for a session component (STT / TTS): invoked once per call (post-connect)
|
|
210
|
+
* with the call {@link VoiceCallContext}. Return `undefined` to fall back to the static top-level
|
|
211
|
+
* option for that component.
|
|
212
|
+
*/
|
|
213
|
+
export type SessionComponentResolver<T> = (context: VoiceCallContext) => T | undefined | void | Promise<T | undefined | void>;
|
|
214
|
+
/**
|
|
215
|
+
* The spoken greeting: a fixed string, or a resolver invoked once per call (post-connect) with the
|
|
216
|
+
* call {@link GreetingContext}. Use the resolver form for a per-tenant greeting derived from the
|
|
217
|
+
* dispatch metadata / request context — one multi-tenant agent, a different opening per tenant.
|
|
218
|
+
* Return `undefined` (or empty) for no greeting on that call.
|
|
219
|
+
*/
|
|
220
|
+
export type GreetingText = string | ((context: GreetingContext) => string | undefined | void | Promise<string | undefined | void>);
|
|
221
|
+
/**
|
|
222
|
+
* The opening greeting spoken when the session starts — and the vehicle for a required AI
|
|
223
|
+
* disclosure. Under the EU AI Act (Art. 50) a person interacting with an AI system must be told so
|
|
224
|
+
* at the first interaction; set `allowInterruptions: false` so that disclosure can't be talked over.
|
|
225
|
+
*/
|
|
226
|
+
export interface GreetingConfiguration {
|
|
227
|
+
/**
|
|
228
|
+
* What is spoken when the session starts. A fixed string, or a resolver invoked once per call
|
|
229
|
+
* (post-connect) with the call {@link GreetingContext} — return a per-tenant greeting built from
|
|
230
|
+
* the dispatch metadata / request context (e.g. `` `Thanks for calling ${tenant}, you're speaking
|
|
231
|
+
* with an AI assistant` ``). Omit, or return `undefined`, for no greeting.
|
|
232
|
+
*/
|
|
233
|
+
text?: GreetingText;
|
|
234
|
+
/**
|
|
235
|
+
* Whether the caller can interrupt (barge over) the greeting. Defaults to LiveKit's behavior
|
|
236
|
+
* (interruptible). Set `false` to make the greeting play through — e.g. when it carries a
|
|
237
|
+
* disclosure the caller is legally required to hear ("you're speaking with an AI assistant"),
|
|
238
|
+
* so they can't talk over it and miss it.
|
|
239
|
+
*/
|
|
240
|
+
allowInterruptions?: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Wait for the greeting to finish playing before continuing (greeting persistence and
|
|
243
|
+
* `onSessionStart`). Defaults to `false`. Pair with `allowInterruptions: false` when a
|
|
244
|
+
* disclosure must fully play out before any post-greeting work runs.
|
|
245
|
+
*/
|
|
246
|
+
awaitPlayout?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Save the spoken greeting to the memory thread as an assistant message, so the saved thread is
|
|
249
|
+
* a faithful call transcript. Defaults to `true`; only applies when memory is enabled.
|
|
250
|
+
*/
|
|
251
|
+
persist?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Periodically re-disclose the AI status on long calls (e.g. California SB 243). Once this many
|
|
254
|
+
* milliseconds have elapsed since the last disclosure, the next turn's reply is prefixed with a
|
|
255
|
+
* short reminder — spoken at the turn boundary, never mid-turn. Omit (or `0`) to disable. Example:
|
|
256
|
+
* `repeatEvery: 3 * 60_000` re-discloses roughly every three minutes.
|
|
257
|
+
*
|
|
258
|
+
* CAVEAT: don't combine with `turnHandling.preemptiveGeneration`. The reminder clock resets when
|
|
259
|
+
* the reminder is threaded into a reply stream; a speculative reply that gets discarded still
|
|
260
|
+
* consumes the interval, so the next real turn can miss its re-disclosure. (Preemptive
|
|
261
|
+
* generation is off by default and already incompatible with memory on this path.)
|
|
262
|
+
*/
|
|
263
|
+
repeatEvery?: number;
|
|
264
|
+
/** The short reminder spoken on each re-disclosure. Defaults to a generic AI-assistant reminder. */
|
|
265
|
+
repeatText?: string;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* One consent item's requirement. `true` is shorthand for a required consent with defaults; the
|
|
269
|
+
* object form carries the metadata a production consent record needs (whether it's required, and a
|
|
270
|
+
* human-readable purpose for the spoken/logged prompt and the audit trail).
|
|
271
|
+
*/
|
|
272
|
+
export type ConsentRequirement = boolean | {
|
|
273
|
+
/** Whether the caller's consent is required for this item. Defaults to `true` when present. */
|
|
274
|
+
required?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Human-readable description of what is being consented to — for the spoken/logged consent
|
|
277
|
+
* prompt and the stored consent record. E.g. "storing a summary of this call".
|
|
278
|
+
*/
|
|
279
|
+
purpose?: string;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* The call's consent policy, as a **named, extensible set** — each item independently required
|
|
283
|
+
* and independently granted at runtime, rather than one global "consented" flag. New consent
|
|
284
|
+
* items are added as named keys so the model grows without reshaping existing ones or conflating
|
|
285
|
+
* unrelated permissions (a production consent model, not one-size-fits-all). Declaring a policy
|
|
286
|
+
* enforces nothing by itself: capture the caller's grant at runtime with `createConsentTool`, and
|
|
287
|
+
* enforce it in your own code (at `onCallEnd`, or before any consent-gated action).
|
|
288
|
+
*/
|
|
289
|
+
export interface ConsentConfiguration {
|
|
290
|
+
/**
|
|
291
|
+
* Consent to store a summary of the call (observational-memory distillation, CRM notes, etc.).
|
|
292
|
+
* When required, persist a call summary only if the caller has granted this consent.
|
|
293
|
+
*/
|
|
294
|
+
summaryStorage?: ConsentRequirement;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Agent-initiated hang-up: let the agent end the call itself (say goodbye → hang up). Enable it here
|
|
298
|
+
* and add a matching tool to the agent with `createEndCallTool` (both default to the tool name
|
|
299
|
+
* `'endCall'`). The tool only signals intent — from inside `agent.stream()` it can't reach the room;
|
|
300
|
+
* the worker owns the hang-up. On each turn the worker watches for the tool, waits for the agent's
|
|
301
|
+
* closing words to finish playing (so the goodbye is never cut off), then disconnects — running
|
|
302
|
+
* `onCallEnd` on the way out, exactly as a caller-initiated hang-up does. Works on the agent and
|
|
303
|
+
* workflow reply paths.
|
|
304
|
+
*/
|
|
305
|
+
export interface EndCallConfiguration {
|
|
306
|
+
/**
|
|
307
|
+
* Name of the tool the agent calls to end the call — must match the `id` you gave
|
|
308
|
+
* `createEndCallTool`. Defaults to `'endCall'`.
|
|
309
|
+
*/
|
|
310
|
+
tool?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Optional closing line spoken (non-interruptibly) right before hanging up, after the agent's own
|
|
313
|
+
* final words finish. Use it for a guaranteed sign-off or a compliance closing. Omit to just hang
|
|
314
|
+
* up once the agent's closing words finish playing.
|
|
315
|
+
*/
|
|
316
|
+
message?: string;
|
|
317
|
+
/** Reason recorded on the shutdown (shows up in LiveKit logs). Defaults to `'agent ended call'`. */
|
|
318
|
+
reason?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Extra drain time in milliseconds between the closing words finishing and the room being
|
|
321
|
+
* deleted. LiveKit's playout accounting is worker-local — when it reports the goodbye complete,
|
|
322
|
+
* the caller's client still holds a few hundred milliseconds of buffered audio (network +
|
|
323
|
+
* jitter buffer), and deleting the room immediately clips the tail of the goodbye mid-air.
|
|
324
|
+
* Defaults to {@link DEFAULT_END_CALL_DRAIN_MS}; set `0` to hang up the instant playout ends.
|
|
325
|
+
*/
|
|
326
|
+
drainMs?: number;
|
|
327
|
+
/**
|
|
328
|
+
* Safety cap in milliseconds on how long to wait for the agent's closing words to finish playing
|
|
329
|
+
* before hanging up, in case the speaking state never clears. Defaults to `30000`.
|
|
330
|
+
*/
|
|
331
|
+
maxWaitMs?: number;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Grouped conversation & compliance configuration for {@link CreateLiveKitWorkerOptions.configuration}.
|
|
335
|
+
* A single home for related policy knobs so they don't each become a top-level worker option. Today
|
|
336
|
+
* it carries the greeting / AI-disclosure, consent requirements, agent-initiated hang-up, and
|
|
337
|
+
* per-call STT/TTS selection; it's the intended landing spot for further compliance controls
|
|
338
|
+
* (recording notice, data retention, …).
|
|
339
|
+
*/
|
|
340
|
+
export interface LiveKitWorkerConfiguration {
|
|
341
|
+
/** The opening greeting / AI-disclosure, plus optional periodic re-disclosure. See {@link GreetingConfiguration}. */
|
|
342
|
+
greeting?: GreetingConfiguration;
|
|
343
|
+
/**
|
|
344
|
+
* The call's consent policy. **Declarative only — the worker enforces nothing by itself.**
|
|
345
|
+
* Capture grants at runtime with `createConsentTool`; enforce them in your own code. See
|
|
346
|
+
* {@link ConsentConfiguration}.
|
|
347
|
+
*/
|
|
348
|
+
consentPolicy?: ConsentConfiguration;
|
|
349
|
+
/** Let the agent end the call itself (say goodbye → hang up). See {@link EndCallConfiguration}. */
|
|
350
|
+
endCall?: EndCallConfiguration;
|
|
351
|
+
/**
|
|
352
|
+
* Per-call speech-to-text: a resolver invoked once per call (post-connect) with the call
|
|
353
|
+
* {@link VoiceCallContext}, returning anything the top-level `stt` option accepts (a plugin
|
|
354
|
+
* instance or an inference model string like `'deepgram/nova-3'`). Use it to pick the
|
|
355
|
+
* transcriber per tenant or language off the dispatch metadata / request context. Return
|
|
356
|
+
* `undefined` to fall back to the top-level `stt`. Runs during call setup, so keep it fast —
|
|
357
|
+
* when it constructs plugin instances, cache them across calls (e.g. a `Map` keyed by tenant).
|
|
358
|
+
*/
|
|
359
|
+
stt?: SessionComponentResolver<voice.AgentSessionOptions['stt']>;
|
|
360
|
+
/**
|
|
361
|
+
* Per-call text-to-speech: a resolver invoked once per call (post-connect) with the call
|
|
362
|
+
* {@link VoiceCallContext}, returning anything the top-level `tts` option accepts (a plugin
|
|
363
|
+
* instance or an inference model string like `'cartesia/sonic-3'`). Use it to give each tenant
|
|
364
|
+
* its own voice / language. Return `undefined` to fall back to the top-level `tts`. Runs during
|
|
365
|
+
* call setup, so keep it fast — when it constructs plugin instances, cache them across calls.
|
|
366
|
+
*/
|
|
367
|
+
tts?: SessionComponentResolver<voice.AgentSessionOptions['tts']>;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Resolves the effective greeting from the canonical `configuration.greeting` and the deprecated
|
|
371
|
+
* top-level `greeting` / `persistGreeting` options. The legacy options are the base so existing
|
|
372
|
+
* worker configs keep working unchanged; `configuration.greeting` overrides field-by-field. Exported
|
|
373
|
+
* for unit testing.
|
|
374
|
+
*/
|
|
375
|
+
export declare function resolveGreetingConfig(options: Pick<CreateLiveKitWorkerOptions, 'greeting' | 'persistGreeting' | 'configuration'>): GreetingConfiguration;
|
|
376
|
+
/**
|
|
377
|
+
* Resolves the greeting text for a call: returns a fixed string as-is, or invokes the resolver form
|
|
378
|
+
* with the call context to produce a per-tenant greeting. Empty / whitespace-nothing results
|
|
379
|
+
* normalize to `undefined` (no greeting). Exported for unit testing.
|
|
380
|
+
*/
|
|
381
|
+
export declare function resolveGreetingText(text: GreetingText | undefined, context: GreetingContext): Promise<string | undefined>;
|
|
382
|
+
/**
|
|
383
|
+
* Resolves a per-call session component (STT / TTS): invokes the `configuration` resolver with the
|
|
384
|
+
* call context, falling back to the static top-level option when there is no resolver or it
|
|
385
|
+
* resolves to `undefined`. Exported for unit testing.
|
|
386
|
+
*/
|
|
387
|
+
export declare function resolveSessionComponent<T>(resolver: SessionComponentResolver<T> | undefined, fallback: T | undefined, context: VoiceCallContext): Promise<T | undefined>;
|
|
388
|
+
/** A {@link GreetingConfiguration} whose `text` resolver has been resolved to a plain string. */
|
|
389
|
+
type ResolvedGreetingConfiguration = Omit<GreetingConfiguration, 'text'> & {
|
|
390
|
+
text?: string;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Speaks the session's opening greeting, honoring the interruption / playout options. Takes the
|
|
394
|
+
* already-resolved greeting (see {@link resolveGreetingText}) and returns the LiveKit `SpeechHandle`,
|
|
395
|
+
* or `undefined` when there is no greeting text. Extracted and exported so the greeting behavior is
|
|
396
|
+
* unit-testable without a live room.
|
|
397
|
+
*/
|
|
398
|
+
export declare function speakGreeting(session: Pick<voice.AgentSession, 'say'>, greeting: ResolvedGreetingConfiguration): Promise<ReturnType<voice.AgentSession['say']> | undefined>;
|
|
399
|
+
/** Default tool name the worker watches for to end the call. Matches `createEndCallTool`'s default. */
|
|
400
|
+
export declare const DEFAULT_END_CALL_TOOL = "endCall";
|
|
401
|
+
/** Default shutdown reason recorded when the agent ends the call. */
|
|
402
|
+
export declare const DEFAULT_END_CALL_REASON = "agent ended call";
|
|
403
|
+
/** Default safety cap on waiting for the agent's closing words to finish before hanging up. */
|
|
404
|
+
export declare const DEFAULT_END_CALL_MAX_WAIT_MS = 30000;
|
|
405
|
+
/**
|
|
406
|
+
* Default post-playout drain before the room is deleted. LiveKit's "playout completed" is
|
|
407
|
+
* worker-local; the caller's client still holds network + jitter-buffer audio, so hanging up the
|
|
408
|
+
* instant the state clears clips the tail of the goodbye.
|
|
409
|
+
*/
|
|
410
|
+
export declare const DEFAULT_END_CALL_DRAIN_MS = 800;
|
|
411
|
+
/** The minimal logger surface these helpers use (the Mastra logger satisfies it). */
|
|
412
|
+
type WarnLogger = {
|
|
413
|
+
warn: (message: string, ...args: unknown[]) => void;
|
|
414
|
+
};
|
|
415
|
+
/**
|
|
416
|
+
* Resolves once the agent is no longer producing or playing a reply — i.e. its state has left
|
|
417
|
+
* `thinking`/`speaking` for `listening`/`idle`. Returns immediately when it's already idle. A
|
|
418
|
+
* `maxWaitMs` safety cap guarantees it resolves even if the speaking state never clears. Used before
|
|
419
|
+
* an agent-initiated hang-up so the closing words play out fully instead of being cut off by the
|
|
420
|
+
* session close. Exported for unit testing.
|
|
421
|
+
*/
|
|
422
|
+
export declare function waitForAgentDoneSpeaking(session: Pick<voice.AgentSession, 'agentState' | 'on' | 'off'>, maxWaitMs?: number): Promise<void>;
|
|
423
|
+
/**
|
|
424
|
+
* Ends the call after the agent asked to (via its end-call tool): wait for the agent's closing words
|
|
425
|
+
* to finish, speak an optional final `message`, hold a short drain (`drainMs`) so audio buffered at
|
|
426
|
+
* the caller finishes playing, then disconnect. The teardown's session close
|
|
427
|
+
* force-interrupts any playing speech, so the waits here MUST complete before we disconnect — that's
|
|
428
|
+
* the whole point of the sequence. `ctx.deleteRoom()` hangs up the caller (SIP-safe); `ctx.shutdown()`
|
|
429
|
+
* ends the job and runs the registered shutdown callbacks (`onCallEnd`), so end-of-call work happens
|
|
430
|
+
* exactly as it does on a caller hang-up. Both run in a `finally` so a hiccup while waiting still ends
|
|
431
|
+
* the call. Never rejects — every step is guarded and failures are logged, so callers can safely
|
|
432
|
+
* fire-and-forget it (`void runEndCall(...)`) from hooks. Exported for unit testing.
|
|
433
|
+
*/
|
|
434
|
+
export declare function runEndCall(session: Pick<voice.AgentSession, 'agentState' | 'on' | 'off' | 'say'>, ctx: Pick<JobContext, 'deleteRoom' | 'shutdown'>, config: EndCallConfiguration, logger: WarnLogger): Promise<void>;
|
|
161
435
|
/**
|
|
162
436
|
* Builds a LiveKit agent worker definition that answers voice sessions with Mastra agents.
|
|
163
437
|
*
|
|
@@ -182,6 +456,6 @@ export declare function buildTurnHandling(options: Pick<CreateLiveKitWorkerOptio
|
|
|
182
456
|
* }
|
|
183
457
|
* ```
|
|
184
458
|
*/
|
|
185
|
-
export declare function createLiveKitWorker(options: CreateLiveKitWorkerOptions): import("@livekit/agents").
|
|
459
|
+
export declare function createLiveKitWorker(options: CreateLiveKitWorkerOptions): import("@livekit/agents").AgentDefinition<WorkerUserData>;
|
|
186
460
|
export {};
|
|
187
461
|
//# sourceMappingURL=worker.d.ts.map
|
package/dist/worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],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;AACnD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAK7C,qFAAqF;AACrF,KAAK,UAAU,GAAG;IAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAAE,CAAC;AAE1E;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,GAAG,KAAK,CAAC,EAC9D,SAAS,GAAE,MAAqC,GAC/C,OAAO,CAAC,IAAI,CAAC,CAsBf;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC,EACtE,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,UAAU,CAAC,EAChD,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,UAAU,GACjB,OAAO,CAAC,IAAI,CAAC,CA8Bf;AAwCD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,6DA+PtE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/livekit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "LiveKit voice integration for Mastra agents — realtime voice with semantic turn detection and barge-in",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,6 +30,16 @@
|
|
|
30
30
|
"default": "./dist/worker-entry.cjs"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
+
"./plugin": {
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/plugin-entry.d.ts",
|
|
36
|
+
"default": "./dist/plugin-entry.js"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/plugin-entry.d.ts",
|
|
40
|
+
"default": "./dist/plugin-entry.cjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
33
43
|
"./package.json": "./package.json"
|
|
34
44
|
},
|
|
35
45
|
"keywords": [
|
|
@@ -77,15 +87,15 @@
|
|
|
77
87
|
"@livekit/agents": "^1.4.5",
|
|
78
88
|
"@livekit/agents-plugin-livekit": "^1.4.5",
|
|
79
89
|
"@livekit/agents-plugin-silero": "^1.4.5",
|
|
80
|
-
"@types/node": "22.
|
|
90
|
+
"@types/node": "22.20.1",
|
|
81
91
|
"eslint": "^10.4.1",
|
|
82
92
|
"tsup": "^8.5.1",
|
|
83
93
|
"typescript": "^6.0.3",
|
|
84
|
-
"vitest": "4.1.
|
|
94
|
+
"vitest": "4.1.10",
|
|
85
95
|
"zod": "^4.4.3",
|
|
86
|
-
"@internal/
|
|
87
|
-
"@internal/
|
|
88
|
-
"@mastra/core": "1.
|
|
96
|
+
"@internal/types-builder": "0.0.89",
|
|
97
|
+
"@internal/lint": "0.0.114",
|
|
98
|
+
"@mastra/core": "1.51.0"
|
|
89
99
|
},
|
|
90
100
|
"scripts": {
|
|
91
101
|
"build:lib": "tsup --silent --config tsup.config.ts",
|