@voicelayer/sdk 0.1.7 → 0.1.8

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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z, ZodType } from 'zod';
2
- import { A as AgentContext, P as Participant, C as CallInfo } from './text-session-B8-jhQzv.js';
3
- export { a as AgentTurnEvent, b as AudioProfile, c as AudioSurface, d as ChannelKind, D as DtmfEvent, e as DtmfHandler, E as EndCallControllerHandle, f as EndCallOutcome, F as FakeSessionAdapter, g as FloorControlConfig, I as InboundOptions, L as LK_AGENT_STATE_MAP, M as MemoryHandle, h as MetricsEvent, N as NON_BUSY_STATES, i as ParticipantId, j as ParticipantKind, k as ParticipantSet, l as ProcessSnapshot, R as RespondOptions, m as Room, n as RouteEntry, o as RoutingRule, p as RoutingSnapshot, q as RunTextSessionOptions, r as RunTextTranscriptOptions, S as SayOptions, s as SendDtmfOptions, t as SessionAdapter, u as SessionCapabilities, v as SessionErrorEvent, w as SessionEvent, x as SessionEventMap, y as SessionFactory, z as SessionFactoryInput, B as SessionOutbound, G as SessionState, H as SpeechResult, J as SpeechTarget, K as StateChangeEvent, T as TextSession, O as TextTranscriptResult, Q as TtsVoiceConfig, U as TurnEvent, V as Unsubscribe, W as UserInputEvent, X as UserTurn, Y as applySpeechTurnHandling, Z as dtmfCodeToDigit, _ as dtmfDigitToCode, $ as duck, a0 as mute, a1 as normalizeState, i as participantId, a2 as passthrough, a3 as runTextSession, a4 as runTextTranscript, a5 as transform } from './text-session-B8-jhQzv.js';
2
+ import { A as AgentContext, P as Participant, C as CallInfo } from './text-session-BoUmDEX9.js';
3
+ export { a as AgentTurnEvent, b as AudioProfile, c as AudioSurface, d as ChannelKind, D as DtmfEvent, e as DtmfHandler, E as EndCallControllerHandle, f as EndCallOutcome, F as FakeSessionAdapter, g as FloorControlConfig, I as InboundOptions, L as LK_AGENT_STATE_MAP, M as MemoryHandle, h as MetricsEvent, N as NON_BUSY_STATES, i as ParticipantId, j as ParticipantKind, k as ParticipantSet, l as ProcessSnapshot, R as RespondOptions, m as Room, n as RouteEntry, o as RoutingRule, p as RoutingSnapshot, q as RunTextSessionOptions, r as RunTextTranscriptOptions, S as SayOptions, s as SendDtmfOptions, t as SessionAdapter, u as SessionCapabilities, v as SessionErrorEvent, w as SessionEvent, x as SessionEventMap, y as SessionFactory, z as SessionFactoryInput, B as SessionOutbound, G as SessionState, H as SpeechResult, J as SpeechTarget, K as StateChangeEvent, T as TextSession, O as TextTranscriptResult, Q as TtsVoiceConfig, U as TurnEvent, V as Unsubscribe, W as UserInputEvent, X as UserTurn, Y as applySpeechTurnHandling, Z as dtmfCodeToDigit, _ as dtmfDigitToCode, $ as duck, a0 as mute, a1 as normalizeState, i as participantId, a2 as passthrough, a3 as runTextSession, a4 as runTextTranscript, a5 as transform } from './text-session-BoUmDEX9.js';
4
4
  import { llm } from '@livekit/agents';
5
5
  import { Redis } from 'ioredis';
6
6
 
@@ -104,11 +104,11 @@ declare const ProcessSchemaDTO: z.ZodObject<{
104
104
  retentionDays: z.ZodOptional<z.ZodNumber>;
105
105
  piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106
106
  }, "strip", z.ZodTypeAny, {
107
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
107
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
108
108
  retentionDays?: number | undefined;
109
109
  piiFields?: string[] | undefined;
110
110
  }, {
111
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
111
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
112
112
  retentionDays?: number | undefined;
113
113
  piiFields?: string[] | undefined;
114
114
  }>>;
@@ -140,13 +140,58 @@ declare const ProcessSchemaDTO: z.ZodObject<{
140
140
  headers?: Record<string, string> | undefined;
141
141
  connectionRef?: string | undefined;
142
142
  }>, "many">>;
143
+ speech: z.ZodOptional<z.ZodObject<{
144
+ interruption: z.ZodOptional<z.ZodObject<{
145
+ enabled: z.ZodOptional<z.ZodBoolean>;
146
+ minWords: z.ZodOptional<z.ZodNumber>;
147
+ minDuration: z.ZodOptional<z.ZodNumber>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ enabled?: boolean | undefined;
150
+ minWords?: number | undefined;
151
+ minDuration?: number | undefined;
152
+ }, {
153
+ enabled?: boolean | undefined;
154
+ minWords?: number | undefined;
155
+ minDuration?: number | undefined;
156
+ }>>;
157
+ endpointing: z.ZodOptional<z.ZodObject<{
158
+ minDelay: z.ZodOptional<z.ZodNumber>;
159
+ maxDelay: z.ZodOptional<z.ZodNumber>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ minDelay?: number | undefined;
162
+ maxDelay?: number | undefined;
163
+ }, {
164
+ minDelay?: number | undefined;
165
+ maxDelay?: number | undefined;
166
+ }>>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ interruption?: {
169
+ enabled?: boolean | undefined;
170
+ minWords?: number | undefined;
171
+ minDuration?: number | undefined;
172
+ } | undefined;
173
+ endpointing?: {
174
+ minDelay?: number | undefined;
175
+ maxDelay?: number | undefined;
176
+ } | undefined;
177
+ }, {
178
+ interruption?: {
179
+ enabled?: boolean | undefined;
180
+ minWords?: number | undefined;
181
+ minDuration?: number | undefined;
182
+ } | undefined;
183
+ endpointing?: {
184
+ minDelay?: number | undefined;
185
+ maxDelay?: number | undefined;
186
+ } | undefined;
187
+ }>>;
143
188
  program: z.ZodOptional<z.ZodObject<{
144
189
  v: z.ZodLiteral<1>;
145
190
  id: z.ZodString;
146
191
  entry: z.ZodArray<z.ZodString, "many">;
147
192
  nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
148
193
  id: z.ZodString;
149
- type: z.ZodEnum<["start", "say", "ask", "confirm", "tool", "decision", "handoff", "end", "trigger", "gate", "playbook", "menu", "code", "set", "subflow", "llm", "rag", "memory", "classify", "router", "note"]>;
194
+ type: z.ZodEnum<["start", "say", "ask", "confirm", "tool", "decision", "handoff", "end", "trigger", "gate", "playbook", "menu", "code", "set", "subflow", "llm", "rag", "memory", "speech", "classify", "router", "note"]>;
150
195
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
151
196
  out: z.ZodArray<z.ZodObject<{
152
197
  to: z.ZodString;
@@ -155,34 +200,34 @@ declare const ProcessSchemaDTO: z.ZodObject<{
155
200
  label: z.ZodOptional<z.ZodString>;
156
201
  }, "strip", z.ZodTypeAny, {
157
202
  to: string;
203
+ condition?: string | undefined;
158
204
  sourceHandle?: string | undefined;
159
205
  label?: string | undefined;
160
- condition?: string | undefined;
161
206
  }, {
162
207
  to: string;
208
+ condition?: string | undefined;
163
209
  sourceHandle?: string | undefined;
164
210
  label?: string | undefined;
165
- condition?: string | undefined;
166
211
  }>, "many">;
167
212
  }, "strip", z.ZodTypeAny, {
168
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
213
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
169
214
  id: string;
170
215
  config: Record<string, unknown>;
171
216
  out: {
172
217
  to: string;
218
+ condition?: string | undefined;
173
219
  sourceHandle?: string | undefined;
174
220
  label?: string | undefined;
175
- condition?: string | undefined;
176
221
  }[];
177
222
  }, {
178
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
223
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
179
224
  id: string;
180
225
  config: Record<string, unknown>;
181
226
  out: {
182
227
  to: string;
228
+ condition?: string | undefined;
183
229
  sourceHandle?: string | undefined;
184
230
  label?: string | undefined;
185
- condition?: string | undefined;
186
231
  }[];
187
232
  }>>;
188
233
  completionGate: z.ZodObject<{
@@ -208,18 +253,18 @@ declare const ProcessSchemaDTO: z.ZodObject<{
208
253
  }, "strip", z.ZodTypeAny, {
209
254
  v: 1;
210
255
  id: string;
256
+ entry: string[];
211
257
  nodes: Record<string, {
212
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
258
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
213
259
  id: string;
214
260
  config: Record<string, unknown>;
215
261
  out: {
216
262
  to: string;
263
+ condition?: string | undefined;
217
264
  sourceHandle?: string | undefined;
218
265
  label?: string | undefined;
219
- condition?: string | undefined;
220
266
  }[];
221
267
  }>;
222
- entry: string[];
223
268
  completionGate: {
224
269
  requiredFields: string[];
225
270
  };
@@ -231,18 +276,18 @@ declare const ProcessSchemaDTO: z.ZodObject<{
231
276
  }, {
232
277
  v: 1;
233
278
  id: string;
279
+ entry: string[];
234
280
  nodes: Record<string, {
235
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
281
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
236
282
  id: string;
237
283
  config: Record<string, unknown>;
238
284
  out: {
239
285
  to: string;
286
+ condition?: string | undefined;
240
287
  sourceHandle?: string | undefined;
241
288
  label?: string | undefined;
242
- condition?: string | undefined;
243
289
  }[];
244
290
  }>;
245
- entry: string[];
246
291
  completionGate: {
247
292
  requiredFields: string[];
248
293
  };
@@ -276,10 +321,21 @@ declare const ProcessSchemaDTO: z.ZodObject<{
276
321
  routes?: Record<string, string> | undefined;
277
322
  } | undefined;
278
323
  memory?: {
279
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
324
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
280
325
  retentionDays?: number | undefined;
281
326
  piiFields?: string[] | undefined;
282
327
  } | undefined;
328
+ speech?: {
329
+ interruption?: {
330
+ enabled?: boolean | undefined;
331
+ minWords?: number | undefined;
332
+ minDuration?: number | undefined;
333
+ } | undefined;
334
+ endpointing?: {
335
+ minDelay?: number | undefined;
336
+ maxDelay?: number | undefined;
337
+ } | undefined;
338
+ } | undefined;
283
339
  prompts?: {
284
340
  id: string;
285
341
  text: string;
@@ -303,18 +359,18 @@ declare const ProcessSchemaDTO: z.ZodObject<{
303
359
  program?: {
304
360
  v: 1;
305
361
  id: string;
362
+ entry: string[];
306
363
  nodes: Record<string, {
307
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
364
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
308
365
  id: string;
309
366
  config: Record<string, unknown>;
310
367
  out: {
311
368
  to: string;
369
+ condition?: string | undefined;
312
370
  sourceHandle?: string | undefined;
313
371
  label?: string | undefined;
314
- condition?: string | undefined;
315
372
  }[];
316
373
  }>;
317
- entry: string[];
318
374
  completionGate: {
319
375
  requiredFields: string[];
320
376
  };
@@ -348,10 +404,21 @@ declare const ProcessSchemaDTO: z.ZodObject<{
348
404
  routes?: Record<string, string> | undefined;
349
405
  } | undefined;
350
406
  memory?: {
351
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
407
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
352
408
  retentionDays?: number | undefined;
353
409
  piiFields?: string[] | undefined;
354
410
  } | undefined;
411
+ speech?: {
412
+ interruption?: {
413
+ enabled?: boolean | undefined;
414
+ minWords?: number | undefined;
415
+ minDuration?: number | undefined;
416
+ } | undefined;
417
+ endpointing?: {
418
+ minDelay?: number | undefined;
419
+ maxDelay?: number | undefined;
420
+ } | undefined;
421
+ } | undefined;
355
422
  prompts?: {
356
423
  id: string;
357
424
  text: string;
@@ -375,18 +442,18 @@ declare const ProcessSchemaDTO: z.ZodObject<{
375
442
  program?: {
376
443
  v: 1;
377
444
  id: string;
445
+ entry: string[];
378
446
  nodes: Record<string, {
379
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
447
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
380
448
  id: string;
381
449
  config: Record<string, unknown>;
382
450
  out: {
383
451
  to: string;
452
+ condition?: string | undefined;
384
453
  sourceHandle?: string | undefined;
385
454
  label?: string | undefined;
386
- condition?: string | undefined;
387
455
  }[];
388
456
  }>;
389
- entry: string[];
390
457
  completionGate: {
391
458
  requiredFields: string[];
392
459
  };
@@ -518,11 +585,11 @@ declare const AgentDTO: z.ZodObject<{
518
585
  retentionDays: z.ZodOptional<z.ZodNumber>;
519
586
  piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
520
587
  }, "strip", z.ZodTypeAny, {
521
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
588
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
522
589
  retentionDays?: number | undefined;
523
590
  piiFields?: string[] | undefined;
524
591
  }, {
525
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
592
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
526
593
  retentionDays?: number | undefined;
527
594
  piiFields?: string[] | undefined;
528
595
  }>>;
@@ -554,13 +621,58 @@ declare const AgentDTO: z.ZodObject<{
554
621
  headers?: Record<string, string> | undefined;
555
622
  connectionRef?: string | undefined;
556
623
  }>, "many">>;
624
+ speech: z.ZodOptional<z.ZodObject<{
625
+ interruption: z.ZodOptional<z.ZodObject<{
626
+ enabled: z.ZodOptional<z.ZodBoolean>;
627
+ minWords: z.ZodOptional<z.ZodNumber>;
628
+ minDuration: z.ZodOptional<z.ZodNumber>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ enabled?: boolean | undefined;
631
+ minWords?: number | undefined;
632
+ minDuration?: number | undefined;
633
+ }, {
634
+ enabled?: boolean | undefined;
635
+ minWords?: number | undefined;
636
+ minDuration?: number | undefined;
637
+ }>>;
638
+ endpointing: z.ZodOptional<z.ZodObject<{
639
+ minDelay: z.ZodOptional<z.ZodNumber>;
640
+ maxDelay: z.ZodOptional<z.ZodNumber>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ minDelay?: number | undefined;
643
+ maxDelay?: number | undefined;
644
+ }, {
645
+ minDelay?: number | undefined;
646
+ maxDelay?: number | undefined;
647
+ }>>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ interruption?: {
650
+ enabled?: boolean | undefined;
651
+ minWords?: number | undefined;
652
+ minDuration?: number | undefined;
653
+ } | undefined;
654
+ endpointing?: {
655
+ minDelay?: number | undefined;
656
+ maxDelay?: number | undefined;
657
+ } | undefined;
658
+ }, {
659
+ interruption?: {
660
+ enabled?: boolean | undefined;
661
+ minWords?: number | undefined;
662
+ minDuration?: number | undefined;
663
+ } | undefined;
664
+ endpointing?: {
665
+ minDelay?: number | undefined;
666
+ maxDelay?: number | undefined;
667
+ } | undefined;
668
+ }>>;
557
669
  program: z.ZodOptional<z.ZodObject<{
558
670
  v: z.ZodLiteral<1>;
559
671
  id: z.ZodString;
560
672
  entry: z.ZodArray<z.ZodString, "many">;
561
673
  nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
562
674
  id: z.ZodString;
563
- type: z.ZodEnum<["start", "say", "ask", "confirm", "tool", "decision", "handoff", "end", "trigger", "gate", "playbook", "menu", "code", "set", "subflow", "llm", "rag", "memory", "classify", "router", "note"]>;
675
+ type: z.ZodEnum<["start", "say", "ask", "confirm", "tool", "decision", "handoff", "end", "trigger", "gate", "playbook", "menu", "code", "set", "subflow", "llm", "rag", "memory", "speech", "classify", "router", "note"]>;
564
676
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
565
677
  out: z.ZodArray<z.ZodObject<{
566
678
  to: z.ZodString;
@@ -569,34 +681,34 @@ declare const AgentDTO: z.ZodObject<{
569
681
  label: z.ZodOptional<z.ZodString>;
570
682
  }, "strip", z.ZodTypeAny, {
571
683
  to: string;
684
+ condition?: string | undefined;
572
685
  sourceHandle?: string | undefined;
573
686
  label?: string | undefined;
574
- condition?: string | undefined;
575
687
  }, {
576
688
  to: string;
689
+ condition?: string | undefined;
577
690
  sourceHandle?: string | undefined;
578
691
  label?: string | undefined;
579
- condition?: string | undefined;
580
692
  }>, "many">;
581
693
  }, "strip", z.ZodTypeAny, {
582
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
694
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
583
695
  id: string;
584
696
  config: Record<string, unknown>;
585
697
  out: {
586
698
  to: string;
699
+ condition?: string | undefined;
587
700
  sourceHandle?: string | undefined;
588
701
  label?: string | undefined;
589
- condition?: string | undefined;
590
702
  }[];
591
703
  }, {
592
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
704
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
593
705
  id: string;
594
706
  config: Record<string, unknown>;
595
707
  out: {
596
708
  to: string;
709
+ condition?: string | undefined;
597
710
  sourceHandle?: string | undefined;
598
711
  label?: string | undefined;
599
- condition?: string | undefined;
600
712
  }[];
601
713
  }>>;
602
714
  completionGate: z.ZodObject<{
@@ -622,18 +734,18 @@ declare const AgentDTO: z.ZodObject<{
622
734
  }, "strip", z.ZodTypeAny, {
623
735
  v: 1;
624
736
  id: string;
737
+ entry: string[];
625
738
  nodes: Record<string, {
626
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
739
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
627
740
  id: string;
628
741
  config: Record<string, unknown>;
629
742
  out: {
630
743
  to: string;
744
+ condition?: string | undefined;
631
745
  sourceHandle?: string | undefined;
632
746
  label?: string | undefined;
633
- condition?: string | undefined;
634
747
  }[];
635
748
  }>;
636
- entry: string[];
637
749
  completionGate: {
638
750
  requiredFields: string[];
639
751
  };
@@ -645,18 +757,18 @@ declare const AgentDTO: z.ZodObject<{
645
757
  }, {
646
758
  v: 1;
647
759
  id: string;
760
+ entry: string[];
648
761
  nodes: Record<string, {
649
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
762
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
650
763
  id: string;
651
764
  config: Record<string, unknown>;
652
765
  out: {
653
766
  to: string;
767
+ condition?: string | undefined;
654
768
  sourceHandle?: string | undefined;
655
769
  label?: string | undefined;
656
- condition?: string | undefined;
657
770
  }[];
658
771
  }>;
659
- entry: string[];
660
772
  completionGate: {
661
773
  requiredFields: string[];
662
774
  };
@@ -690,10 +802,21 @@ declare const AgentDTO: z.ZodObject<{
690
802
  routes?: Record<string, string> | undefined;
691
803
  } | undefined;
692
804
  memory?: {
693
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
805
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
694
806
  retentionDays?: number | undefined;
695
807
  piiFields?: string[] | undefined;
696
808
  } | undefined;
809
+ speech?: {
810
+ interruption?: {
811
+ enabled?: boolean | undefined;
812
+ minWords?: number | undefined;
813
+ minDuration?: number | undefined;
814
+ } | undefined;
815
+ endpointing?: {
816
+ minDelay?: number | undefined;
817
+ maxDelay?: number | undefined;
818
+ } | undefined;
819
+ } | undefined;
697
820
  prompts?: {
698
821
  id: string;
699
822
  text: string;
@@ -717,18 +840,18 @@ declare const AgentDTO: z.ZodObject<{
717
840
  program?: {
718
841
  v: 1;
719
842
  id: string;
843
+ entry: string[];
720
844
  nodes: Record<string, {
721
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
845
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
722
846
  id: string;
723
847
  config: Record<string, unknown>;
724
848
  out: {
725
849
  to: string;
850
+ condition?: string | undefined;
726
851
  sourceHandle?: string | undefined;
727
852
  label?: string | undefined;
728
- condition?: string | undefined;
729
853
  }[];
730
854
  }>;
731
- entry: string[];
732
855
  completionGate: {
733
856
  requiredFields: string[];
734
857
  };
@@ -762,10 +885,21 @@ declare const AgentDTO: z.ZodObject<{
762
885
  routes?: Record<string, string> | undefined;
763
886
  } | undefined;
764
887
  memory?: {
765
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
888
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
766
889
  retentionDays?: number | undefined;
767
890
  piiFields?: string[] | undefined;
768
891
  } | undefined;
892
+ speech?: {
893
+ interruption?: {
894
+ enabled?: boolean | undefined;
895
+ minWords?: number | undefined;
896
+ minDuration?: number | undefined;
897
+ } | undefined;
898
+ endpointing?: {
899
+ minDelay?: number | undefined;
900
+ maxDelay?: number | undefined;
901
+ } | undefined;
902
+ } | undefined;
769
903
  prompts?: {
770
904
  id: string;
771
905
  text: string;
@@ -789,18 +923,18 @@ declare const AgentDTO: z.ZodObject<{
789
923
  program?: {
790
924
  v: 1;
791
925
  id: string;
926
+ entry: string[];
792
927
  nodes: Record<string, {
793
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
928
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
794
929
  id: string;
795
930
  config: Record<string, unknown>;
796
931
  out: {
797
932
  to: string;
933
+ condition?: string | undefined;
798
934
  sourceHandle?: string | undefined;
799
935
  label?: string | undefined;
800
- condition?: string | undefined;
801
936
  }[];
802
937
  }>;
803
- entry: string[];
804
938
  completionGate: {
805
939
  requiredFields: string[];
806
940
  };
@@ -855,10 +989,21 @@ declare const AgentDTO: z.ZodObject<{
855
989
  routes?: Record<string, string> | undefined;
856
990
  } | undefined;
857
991
  memory?: {
858
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
992
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
859
993
  retentionDays?: number | undefined;
860
994
  piiFields?: string[] | undefined;
861
995
  } | undefined;
996
+ speech?: {
997
+ interruption?: {
998
+ enabled?: boolean | undefined;
999
+ minWords?: number | undefined;
1000
+ minDuration?: number | undefined;
1001
+ } | undefined;
1002
+ endpointing?: {
1003
+ minDelay?: number | undefined;
1004
+ maxDelay?: number | undefined;
1005
+ } | undefined;
1006
+ } | undefined;
862
1007
  prompts?: {
863
1008
  id: string;
864
1009
  text: string;
@@ -882,18 +1027,18 @@ declare const AgentDTO: z.ZodObject<{
882
1027
  program?: {
883
1028
  v: 1;
884
1029
  id: string;
1030
+ entry: string[];
885
1031
  nodes: Record<string, {
886
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
1032
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
887
1033
  id: string;
888
1034
  config: Record<string, unknown>;
889
1035
  out: {
890
1036
  to: string;
1037
+ condition?: string | undefined;
891
1038
  sourceHandle?: string | undefined;
892
1039
  label?: string | undefined;
893
- condition?: string | undefined;
894
1040
  }[];
895
1041
  }>;
896
- entry: string[];
897
1042
  completionGate: {
898
1043
  requiredFields: string[];
899
1044
  };
@@ -946,10 +1091,21 @@ declare const AgentDTO: z.ZodObject<{
946
1091
  routes?: Record<string, string> | undefined;
947
1092
  } | undefined;
948
1093
  memory?: {
949
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
1094
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
950
1095
  retentionDays?: number | undefined;
951
1096
  piiFields?: string[] | undefined;
952
1097
  } | undefined;
1098
+ speech?: {
1099
+ interruption?: {
1100
+ enabled?: boolean | undefined;
1101
+ minWords?: number | undefined;
1102
+ minDuration?: number | undefined;
1103
+ } | undefined;
1104
+ endpointing?: {
1105
+ minDelay?: number | undefined;
1106
+ maxDelay?: number | undefined;
1107
+ } | undefined;
1108
+ } | undefined;
953
1109
  prompts?: {
954
1110
  id: string;
955
1111
  text: string;
@@ -973,18 +1129,18 @@ declare const AgentDTO: z.ZodObject<{
973
1129
  program?: {
974
1130
  v: 1;
975
1131
  id: string;
1132
+ entry: string[];
976
1133
  nodes: Record<string, {
977
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
1134
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
978
1135
  id: string;
979
1136
  config: Record<string, unknown>;
980
1137
  out: {
981
1138
  to: string;
1139
+ condition?: string | undefined;
982
1140
  sourceHandle?: string | undefined;
983
1141
  label?: string | undefined;
984
- condition?: string | undefined;
985
1142
  }[];
986
1143
  }>;
987
- entry: string[];
988
1144
  completionGate: {
989
1145
  requiredFields: string[];
990
1146
  };
@@ -1062,11 +1218,11 @@ declare const CallPlan: z.ZodObject<{
1062
1218
  kind: z.ZodLiteral<"say">;
1063
1219
  text: z.ZodString;
1064
1220
  }, "strip", z.ZodTypeAny, {
1065
- kind: "say";
1066
1221
  text: string;
1067
- }, {
1068
1222
  kind: "say";
1223
+ }, {
1069
1224
  text: string;
1225
+ kind: "say";
1070
1226
  }>]>;
1071
1227
  onlyWhile: z.ZodOptional<z.ZodString>;
1072
1228
  }, "strip", z.ZodTypeAny, {
@@ -1075,8 +1231,8 @@ declare const CallPlan: z.ZodObject<{
1075
1231
  } | {
1076
1232
  kind: "endCall";
1077
1233
  } | {
1078
- kind: "say";
1079
1234
  text: string;
1235
+ kind: "say";
1080
1236
  };
1081
1237
  on: {
1082
1238
  kind: "regex";
@@ -1093,8 +1249,8 @@ declare const CallPlan: z.ZodObject<{
1093
1249
  } | {
1094
1250
  kind: "endCall";
1095
1251
  } | {
1096
- kind: "say";
1097
1252
  text: string;
1253
+ kind: "say";
1098
1254
  };
1099
1255
  on: {
1100
1256
  kind: "regex";
@@ -1350,8 +1506,8 @@ declare const CallPlan: z.ZodObject<{
1350
1506
  } | {
1351
1507
  kind: "endCall";
1352
1508
  } | {
1353
- kind: "say";
1354
1509
  text: string;
1510
+ kind: "say";
1355
1511
  };
1356
1512
  on: {
1357
1513
  kind: "regex";
@@ -1449,8 +1605,8 @@ declare const CallPlan: z.ZodObject<{
1449
1605
  } | {
1450
1606
  kind: "endCall";
1451
1607
  } | {
1452
- kind: "say";
1453
1608
  text: string;
1609
+ kind: "say";
1454
1610
  };
1455
1611
  on: {
1456
1612
  kind: "regex";
@@ -1547,14 +1703,14 @@ declare const CallPlan: z.ZodObject<{
1547
1703
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1548
1704
  deferrableToCallee: z.ZodDefault<z.ZodBoolean>;
1549
1705
  }, "strip", z.ZodTypeAny, {
1550
- kind: "decision" | "auth" | "fact";
1551
1706
  id: string;
1707
+ kind: "decision" | "auth" | "fact";
1552
1708
  prompt: string;
1553
1709
  deferrableToCallee: boolean;
1554
1710
  options?: string[] | undefined;
1555
1711
  }, {
1556
- kind: "decision" | "auth" | "fact";
1557
1712
  id: string;
1713
+ kind: "decision" | "auth" | "fact";
1558
1714
  prompt: string;
1559
1715
  options?: string[] | undefined;
1560
1716
  deferrableToCallee?: boolean | undefined;
@@ -1566,14 +1722,14 @@ declare const CallPlan: z.ZodObject<{
1566
1722
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1567
1723
  deferrableToCallee: z.ZodDefault<z.ZodBoolean>;
1568
1724
  }, "strip", z.ZodTypeAny, {
1569
- kind: "decision" | "auth" | "fact";
1570
1725
  id: string;
1726
+ kind: "decision" | "auth" | "fact";
1571
1727
  prompt: string;
1572
1728
  deferrableToCallee: boolean;
1573
1729
  options?: string[] | undefined;
1574
1730
  }, {
1575
- kind: "decision" | "auth" | "fact";
1576
1731
  id: string;
1732
+ kind: "decision" | "auth" | "fact";
1577
1733
  prompt: string;
1578
1734
  options?: string[] | undefined;
1579
1735
  deferrableToCallee?: boolean | undefined;
@@ -1619,8 +1775,8 @@ declare const CallPlan: z.ZodObject<{
1619
1775
  } | {
1620
1776
  kind: "endCall";
1621
1777
  } | {
1622
- kind: "say";
1623
1778
  text: string;
1779
+ kind: "say";
1624
1780
  };
1625
1781
  on: {
1626
1782
  kind: "regex";
@@ -1711,15 +1867,15 @@ declare const CallPlan: z.ZodObject<{
1711
1867
  }[] | undefined;
1712
1868
  };
1713
1869
  openQuestions: {
1714
- kind: "decision" | "auth" | "fact";
1715
1870
  id: string;
1871
+ kind: "decision" | "auth" | "fact";
1716
1872
  prompt: string;
1717
1873
  deferrableToCallee: boolean;
1718
1874
  options?: string[] | undefined;
1719
1875
  }[];
1720
1876
  unresolvedQuestions: {
1721
- kind: "decision" | "auth" | "fact";
1722
1877
  id: string;
1878
+ kind: "decision" | "auth" | "fact";
1723
1879
  prompt: string;
1724
1880
  deferrableToCallee: boolean;
1725
1881
  options?: string[] | undefined;
@@ -1759,8 +1915,8 @@ declare const CallPlan: z.ZodObject<{
1759
1915
  } | {
1760
1916
  kind: "endCall";
1761
1917
  } | {
1762
- kind: "say";
1763
1918
  text: string;
1919
+ kind: "say";
1764
1920
  };
1765
1921
  on: {
1766
1922
  kind: "regex";
@@ -1851,15 +2007,15 @@ declare const CallPlan: z.ZodObject<{
1851
2007
  }[] | undefined;
1852
2008
  } | undefined;
1853
2009
  openQuestions?: {
1854
- kind: "decision" | "auth" | "fact";
1855
2010
  id: string;
2011
+ kind: "decision" | "auth" | "fact";
1856
2012
  prompt: string;
1857
2013
  options?: string[] | undefined;
1858
2014
  deferrableToCallee?: boolean | undefined;
1859
2015
  }[] | undefined;
1860
2016
  unresolvedQuestions?: {
1861
- kind: "decision" | "auth" | "fact";
1862
2017
  id: string;
2018
+ kind: "decision" | "auth" | "fact";
1863
2019
  prompt: string;
1864
2020
  options?: string[] | undefined;
1865
2021
  deferrableToCallee?: boolean | undefined;
@@ -1877,13 +2033,13 @@ declare const RelevantContext: z.ZodObject<{
1877
2033
  account: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1878
2034
  platform: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1879
2035
  }, "strip", z.ZodTypeAny, {
1880
- caller: Record<string, unknown>;
1881
2036
  call: Record<string, unknown>;
2037
+ caller: Record<string, unknown>;
1882
2038
  account: Record<string, unknown>;
1883
2039
  platform: Record<string, unknown>;
1884
2040
  }, {
1885
- caller: Record<string, unknown>;
1886
2041
  call: Record<string, unknown>;
2042
+ caller: Record<string, unknown>;
1887
2043
  account: Record<string, unknown>;
1888
2044
  platform: Record<string, unknown>;
1889
2045
  }>;
@@ -1941,10 +2097,10 @@ declare const DeleteCallerResponse: z.ZodObject<{
1941
2097
  scopesPurged: z.ZodArray<z.ZodEnum<["call", "caller", "account", "platform"]>, "many">;
1942
2098
  }, "strip", z.ZodTypeAny, {
1943
2099
  ok: true;
1944
- scopesPurged: ("caller" | "call" | "account" | "platform")[];
2100
+ scopesPurged: ("call" | "caller" | "account" | "platform")[];
1945
2101
  }, {
1946
2102
  ok: true;
1947
- scopesPurged: ("caller" | "call" | "account" | "platform")[];
2103
+ scopesPurged: ("call" | "caller" | "account" | "platform")[];
1948
2104
  }>;
1949
2105
  type DeleteCallerResponse = z.infer<typeof DeleteCallerResponse>;
1950
2106
 
@@ -2255,11 +2411,11 @@ declare const AgentConfig$1: z.ZodObject<{
2255
2411
  kind: z.ZodLiteral<"say">;
2256
2412
  text: z.ZodString;
2257
2413
  }, "strip", z.ZodTypeAny, {
2258
- kind: "say";
2259
2414
  text: string;
2260
- }, {
2261
2415
  kind: "say";
2416
+ }, {
2262
2417
  text: string;
2418
+ kind: "say";
2263
2419
  }>]>;
2264
2420
  onlyWhile: z.ZodOptional<z.ZodString>;
2265
2421
  }, "strip", z.ZodTypeAny, {
@@ -2268,8 +2424,8 @@ declare const AgentConfig$1: z.ZodObject<{
2268
2424
  } | {
2269
2425
  kind: "endCall";
2270
2426
  } | {
2271
- kind: "say";
2272
2427
  text: string;
2428
+ kind: "say";
2273
2429
  };
2274
2430
  on: {
2275
2431
  kind: "regex";
@@ -2286,8 +2442,8 @@ declare const AgentConfig$1: z.ZodObject<{
2286
2442
  } | {
2287
2443
  kind: "endCall";
2288
2444
  } | {
2289
- kind: "say";
2290
2445
  text: string;
2446
+ kind: "say";
2291
2447
  };
2292
2448
  on: {
2293
2449
  kind: "regex";
@@ -2377,8 +2533,8 @@ declare const AgentConfig$1: z.ZodObject<{
2377
2533
  } | {
2378
2534
  kind: "endCall";
2379
2535
  } | {
2380
- kind: "say";
2381
2536
  text: string;
2537
+ kind: "say";
2382
2538
  };
2383
2539
  on: {
2384
2540
  kind: "regex";
@@ -2467,8 +2623,8 @@ declare const AgentConfig$1: z.ZodObject<{
2467
2623
  } | {
2468
2624
  kind: "endCall";
2469
2625
  } | {
2470
- kind: "say";
2471
2626
  text: string;
2627
+ kind: "say";
2472
2628
  };
2473
2629
  on: {
2474
2630
  kind: "regex";
@@ -2611,14 +2767,14 @@ declare const ConnectorUpFrame: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2611
2767
  code: z.ZodEnum<["upstream_timeout", "upstream_error", "bad_response", "normalize_failed", "unreachable"]>;
2612
2768
  message: z.ZodString;
2613
2769
  }, "strip", z.ZodTypeAny, {
2770
+ code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
2614
2771
  message: string;
2615
2772
  kind: "brain.error";
2616
- code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
2617
2773
  streamId: string;
2618
2774
  }, {
2775
+ code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
2619
2776
  message: string;
2620
2777
  kind: "brain.error";
2621
- code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
2622
2778
  streamId: string;
2623
2779
  }>]>;
2624
2780
  type ConnectorUpFrame = z.infer<typeof ConnectorUpFrame>;
@@ -2897,10 +3053,21 @@ declare class AgentsClient {
2897
3053
  routes?: Record<string, string> | undefined;
2898
3054
  } | undefined;
2899
3055
  memory?: {
2900
- scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
3056
+ scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
2901
3057
  retentionDays?: number | undefined;
2902
3058
  piiFields?: string[] | undefined;
2903
3059
  } | undefined;
3060
+ speech?: {
3061
+ interruption?: {
3062
+ enabled?: boolean | undefined;
3063
+ minWords?: number | undefined;
3064
+ minDuration?: number | undefined;
3065
+ } | undefined;
3066
+ endpointing?: {
3067
+ minDelay?: number | undefined;
3068
+ maxDelay?: number | undefined;
3069
+ } | undefined;
3070
+ } | undefined;
2904
3071
  prompts?: {
2905
3072
  id: string;
2906
3073
  text: string;
@@ -2924,18 +3091,18 @@ declare class AgentsClient {
2924
3091
  program?: {
2925
3092
  v: 1;
2926
3093
  id: string;
3094
+ entry: string[];
2927
3095
  nodes: Record<string, {
2928
- type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "classify" | "router" | "note";
3096
+ type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
2929
3097
  id: string;
2930
3098
  config: Record<string, unknown>;
2931
3099
  out: {
2932
3100
  to: string;
3101
+ condition?: string | undefined;
2933
3102
  sourceHandle?: string | undefined;
2934
3103
  label?: string | undefined;
2935
- condition?: string | undefined;
2936
3104
  }[];
2937
3105
  }>;
2938
- entry: string[];
2939
3106
  completionGate: {
2940
3107
  requiredFields: string[];
2941
3108
  };
@@ -3087,15 +3254,18 @@ declare class CallsClient {
3087
3254
  reportUsage(callId: string, report: CallUsageReport): Promise<void>;
3088
3255
  appendDtmfEvent(callId: string, input: AppendDtmfEventInput): Promise<void>;
3089
3256
  /**
3090
- * Append a structured call event. Today the API accepts consultation
3091
- * lifecycle kinds only — see apps/api/src/routes/calls.ts AppendEventBody.
3257
+ * Append a structured call event — consultation lifecycle kinds, or the
3258
+ * operational vocabulary the call-detail Timeline renders between
3259
+ * transcript rows (tool.* / handoff.* / lookup.* / record.* / notify.*).
3260
+ * See apps/api/src/routes/calls.ts AppendEventBody for the accepted shapes.
3092
3261
  *
3093
3262
  * The agent SDK's built-in `ask_host` tool calls this on consultation start
3094
- * / end so the MCP host (via SSE) and dashboard see the "let me check" UX
3095
- * in real time.
3263
+ * / end; the handoff runtime and graph interpreter emit op events through it
3264
+ * so the operational story (dial → answered → briefed → dropped, tool calls)
3265
+ * is visible in the dashboard, not just the spoken transcript.
3096
3266
  */
3097
3267
  appendEvent(callId: string, input: {
3098
- readonly kind: 'consultation.requested' | 'consultation.resolved';
3268
+ readonly kind: 'consultation.requested' | 'consultation.resolved' | `tool.${string}` | `handoff.${string}` | `lookup.${string}` | `record.${string}` | `notify.${string}`;
3099
3269
  readonly payload: Record<string, unknown>;
3100
3270
  }): Promise<void>;
3101
3271
  }
@@ -4342,6 +4512,9 @@ interface CompiledAgentParts {
4342
4512
  readonly handoff?: HandoffConfig;
4343
4513
  readonly memory?: MemoryConfig;
4344
4514
  readonly tools?: Record<string, ToolDefinition$1>;
4515
+ /** Voice turn-taking from the flow's speech capability (schema.speech →
4516
+ * AgentConfig.speech → applySpeechTurnHandling). */
4517
+ readonly speech?: SpeechConfig;
4345
4518
  }
4346
4519
  /**
4347
4520
  * Turn a compiled ProcessSchemaDTO into the full set of `defineAgent` parts a