@jambonz/sdk 0.1.13 → 0.1.16

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.
@@ -1,5 +1,5 @@
1
- import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-Q_HBbPz4.cjs';
2
- import { A as ActionHook, y as Verb } from '../verbs-B_lYU2RS.cjs';
1
+ import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-HNzc9abq.cjs';
2
+ import { A as ActionHook, y as Verb } from '../verbs-pPRZK2ME.cjs';
3
3
 
4
4
  /**
5
5
  * JambonzClient — REST API client for the jambonz platform.
@@ -1,5 +1,5 @@
1
- import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-DEEB3QK9.js';
2
- import { A as ActionHook, y as Verb } from '../verbs-B_lYU2RS.js';
1
+ import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-Ca2Zw6QX.js';
2
+ import { A as ActionHook, y as Verb } from '../verbs-pPRZK2ME.js';
3
3
 
4
4
  /**
5
5
  * JambonzClient — REST API client for the jambonz platform.
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from './verbs-B_lYU2RS.cjs';
1
+ export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from './verbs-pPRZK2ME.cjs';
2
2
  export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from './session-DHc6G_9y.cjs';
3
3
  export { E as EnvVarDef, a as EnvVarSchema, L as Logger } from './common-BSJZX7WO.cjs';
4
- export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-Q_HBbPz4.cjs';
5
- export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-CciZHUjo.cjs';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-HNzc9abq.cjs';
5
+ export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-CZ3oXfC7.cjs';
6
6
  export { WebhookResponse, envVarsMiddleware } from './webhook/index.cjs';
7
7
  export { AudioClient, AudioClientEvents, AudioStream, AudioStreamEvents, AudioStreamMetadata, EndpointOptions, MakeService, Middleware, PlayAudioOptions, Session, WsClient, WsClientEvents, WsRouter, createEndpoint } from './websocket/index.cjs';
8
8
  export { CallsResource, ClientOptions, ConferencesResource, JambonzClient, QueuesResource } from './client/index.cjs';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from './verbs-B_lYU2RS.js';
1
+ export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from './verbs-pPRZK2ME.js';
2
2
  export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from './session-DHc6G_9y.js';
3
3
  export { E as EnvVarDef, a as EnvVarSchema, L as Logger } from './common-BSJZX7WO.js';
4
- export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-DEEB3QK9.js';
5
- export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-CmrtErY7.js';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-Ca2Zw6QX.js';
5
+ export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-BvWA5lVf.js';
6
6
  export { WebhookResponse, envVarsMiddleware } from './webhook/index.js';
7
7
  export { AudioClient, AudioClientEvents, AudioStream, AudioStreamEvents, AudioStreamMetadata, EndpointOptions, MakeService, Middleware, PlayAudioOptions, Session, WsClient, WsClientEvents, WsRouter, createEndpoint } from './websocket/index.js';
8
8
  export { CallsResource, ClientOptions, ConferencesResource, JambonzClient, QueuesResource } from './client/index.js';
@@ -1,4 +1,4 @@
1
- import { A as ActionHook, y as Verb } from './verbs-B_lYU2RS.js';
1
+ import { A as ActionHook, y as Verb } from './verbs-pPRZK2ME.js';
2
2
 
3
3
  /**
4
4
  * Types for the jambonz REST API client.
@@ -1,4 +1,4 @@
1
- import { A as ActionHook, y as Verb } from './verbs-B_lYU2RS.cjs';
1
+ import { A as ActionHook, y as Verb } from './verbs-pPRZK2ME.cjs';
2
2
 
3
3
  /**
4
4
  * Types for the jambonz REST API client.
@@ -1,4 +1,4 @@
1
- export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from '../verbs-B_lYU2RS.cjs';
1
+ export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from '../verbs-pPRZK2ME.cjs';
2
2
  export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from '../session-DHc6G_9y.cjs';
3
3
  export { E as EnvVarDef, a as EnvVarSchema, L as Logger } from '../common-BSJZX7WO.cjs';
4
- export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-Q_HBbPz4.cjs';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-HNzc9abq.cjs';
@@ -1,4 +1,4 @@
1
- export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from '../verbs-B_lYU2RS.js';
1
+ export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from '../verbs-pPRZK2ME.js';
2
2
  export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from '../session-DHc6G_9y.js';
3
3
  export { E as EnvVarDef, a as EnvVarSchema, L as Logger } from '../common-BSJZX7WO.js';
4
- export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-DEEB3QK9.js';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-Ca2Zw6QX.js';
@@ -1,4 +1,4 @@
1
- import { y as Verb, S as SayVerb, p as PlayVerb, G as GatherVerb, m as LlmVerb, I as S2sVerb, K as LlmBaseOptions, N as DialogflowVerb, o as PipelineVerb, l as ListenVerb, u as StreamVerb, x as TranscribeVerb, i as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, q as RedirectVerb, P as PauseVerb, L as LeaveVerb, r as SipDeclineVerb, t as SipRequestVerb, s as SipReferVerb, h as ConfigVerb, f as AnswerVerb, c as AlertVerb, T as TagVerb, j as DtmfVerb, k as DubVerb, n as MessageVerb } from './verbs-B_lYU2RS.js';
1
+ import { y as Verb, S as SayVerb, p as PlayVerb, G as GatherVerb, m as LlmVerb, I as S2sVerb, K as LlmBaseOptions, N as DialogflowVerb, o as PipelineVerb, l as ListenVerb, u as StreamVerb, x as TranscribeVerb, i as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, q as RedirectVerb, P as PauseVerb, L as LeaveVerb, r as SipDeclineVerb, t as SipRequestVerb, s as SipReferVerb, h as ConfigVerb, f as AnswerVerb, c as AlertVerb, T as TagVerb, j as DtmfVerb, k as DubVerb, n as MessageVerb } from './verbs-pPRZK2ME.js';
2
2
 
3
3
  /**
4
4
  * Schema-based validation using AJV.
@@ -1,4 +1,4 @@
1
- import { y as Verb, S as SayVerb, p as PlayVerb, G as GatherVerb, m as LlmVerb, I as S2sVerb, K as LlmBaseOptions, N as DialogflowVerb, o as PipelineVerb, l as ListenVerb, u as StreamVerb, x as TranscribeVerb, i as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, q as RedirectVerb, P as PauseVerb, L as LeaveVerb, r as SipDeclineVerb, t as SipRequestVerb, s as SipReferVerb, h as ConfigVerb, f as AnswerVerb, c as AlertVerb, T as TagVerb, j as DtmfVerb, k as DubVerb, n as MessageVerb } from './verbs-B_lYU2RS.cjs';
1
+ import { y as Verb, S as SayVerb, p as PlayVerb, G as GatherVerb, m as LlmVerb, I as S2sVerb, K as LlmBaseOptions, N as DialogflowVerb, o as PipelineVerb, l as ListenVerb, u as StreamVerb, x as TranscribeVerb, i as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, q as RedirectVerb, P as PauseVerb, L as LeaveVerb, r as SipDeclineVerb, t as SipRequestVerb, s as SipReferVerb, h as ConfigVerb, f as AnswerVerb, c as AlertVerb, T as TagVerb, j as DtmfVerb, k as DubVerb, n as MessageVerb } from './verbs-pPRZK2ME.cjs';
2
2
 
3
3
  /**
4
4
  * Schema-based validation using AJV.
@@ -444,18 +444,20 @@ interface PipelineVerb {
444
444
  stt: Recognizer;
445
445
  /** TTS configuration. */
446
446
  tts: Synthesizer;
447
- /** VAD configuration. */
448
- vad?: Vad;
449
- /** Turn detection configuration. */
450
- turnDetection?: {
451
- vendor: string;
447
+ /** Turn detection strategy. String shorthand ('stt' or 'krisp') or object with tunable params. */
448
+ turnDetection?: 'stt' | 'krisp' | {
449
+ mode: 'krisp';
452
450
  threshold?: number;
453
- eagerEotThreshold?: number;
451
+ model?: string;
452
+ };
453
+ /** Barge-in configuration — controls user interruption of assistant speech. */
454
+ bargeIn?: {
455
+ enable?: boolean;
456
+ minSpeechDuration?: number;
457
+ sticky?: boolean;
454
458
  };
455
459
  /** LLM configuration. */
456
460
  llm: Record<string, unknown>;
457
- /** Pre-establish LLM connection before call starts. */
458
- preflightLlm?: boolean;
459
461
  /** Webhook when pipeline ends. */
460
462
  actionHook?: ActionHook;
461
463
  /** Webhook for pipeline events. */
@@ -444,18 +444,20 @@ interface PipelineVerb {
444
444
  stt: Recognizer;
445
445
  /** TTS configuration. */
446
446
  tts: Synthesizer;
447
- /** VAD configuration. */
448
- vad?: Vad;
449
- /** Turn detection configuration. */
450
- turnDetection?: {
451
- vendor: string;
447
+ /** Turn detection strategy. String shorthand ('stt' or 'krisp') or object with tunable params. */
448
+ turnDetection?: 'stt' | 'krisp' | {
449
+ mode: 'krisp';
452
450
  threshold?: number;
453
- eagerEotThreshold?: number;
451
+ model?: string;
452
+ };
453
+ /** Barge-in configuration — controls user interruption of assistant speech. */
454
+ bargeIn?: {
455
+ enable?: boolean;
456
+ minSpeechDuration?: number;
457
+ sticky?: boolean;
454
458
  };
455
459
  /** LLM configuration. */
456
460
  llm: Record<string, unknown>;
457
- /** Pre-establish LLM connection before call starts. */
458
- preflightLlm?: boolean;
459
461
  /** Webhook when pipeline ends. */
460
462
  actionHook?: ActionHook;
461
463
  /** Webhook for pipeline events. */
@@ -1,5 +1,5 @@
1
- import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-CciZHUjo.cjs';
2
- import { J as JambonzApp } from '../verbs-B_lYU2RS.cjs';
1
+ import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-CZ3oXfC7.cjs';
2
+ import { J as JambonzApp } from '../verbs-pPRZK2ME.cjs';
3
3
  import { IncomingMessage, ServerResponse } from 'http';
4
4
  import { a as EnvVarSchema } from '../common-BSJZX7WO.cjs';
5
5
 
@@ -1,5 +1,5 @@
1
- import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-CmrtErY7.js';
2
- import { J as JambonzApp } from '../verbs-B_lYU2RS.js';
1
+ import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-BvWA5lVf.js';
2
+ import { J as JambonzApp } from '../verbs-pPRZK2ME.js';
3
3
  import { IncomingMessage, ServerResponse } from 'http';
4
4
  import { a as EnvVarSchema } from '../common-BSJZX7WO.js';
5
5
 
@@ -3,8 +3,8 @@ import { L as Logger, a as EnvVarSchema } from '../common-BSJZX7WO.cjs';
3
3
  import { EventEmitter } from 'events';
4
4
  import { WebSocket } from 'ws';
5
5
  import { C as CallSession, W as WsMessage } from '../session-DHc6G_9y.cjs';
6
- import { y as Verb } from '../verbs-B_lYU2RS.cjs';
7
- import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-CciZHUjo.cjs';
6
+ import { y as Verb } from '../verbs-pPRZK2ME.cjs';
7
+ import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-CZ3oXfC7.cjs';
8
8
 
9
9
  /**
10
10
  * WebSocket Session — represents a single call over a persistent WebSocket connection.
@@ -3,8 +3,8 @@ import { L as Logger, a as EnvVarSchema } from '../common-BSJZX7WO.js';
3
3
  import { EventEmitter } from 'events';
4
4
  import { WebSocket } from 'ws';
5
5
  import { C as CallSession, W as WsMessage } from '../session-DHc6G_9y.js';
6
- import { y as Verb } from '../verbs-B_lYU2RS.js';
7
- import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-CmrtErY7.js';
6
+ import { y as Verb } from '../verbs-pPRZK2ME.js';
7
+ import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-BvWA5lVf.js';
8
8
 
9
9
  /**
10
10
  * WebSocket Session — represents a single call over a persistent WebSocket connection.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/sdk",
3
- "version": "0.1.13",
3
+ "version": "0.1.16",
4
4
  "description": "jambonz SDK for building voice applications — optimized for AI agents",
5
5
  "author": "Dave Horton",
6
6
  "license": "MIT",
@@ -21,43 +21,68 @@
21
21
  "$ref": "../components/synthesizer",
22
22
  "description": "Text-to-speech configuration for the pipeline."
23
23
  },
24
- "vad": {
25
- "$ref": "../components/vad",
26
- "description": "Voice activity detection configuration for the pipeline."
27
- },
28
24
  "turnDetection": {
25
+ "oneOf": [
26
+ {
27
+ "type": "string",
28
+ "enum": ["stt", "krisp"],
29
+ "description": "Turn detection strategy shorthand. 'stt' uses the STT vendor's native signals (silence-based for most vendors; acoustic+semantic for deepgramflux, assemblyai, speechmatics). 'krisp' uses the Krisp acoustic end-of-turn model with default settings."
30
+ },
31
+ {
32
+ "type": "object",
33
+ "description": "Turn detection configuration with tunable parameters.",
34
+ "properties": {
35
+ "mode": {
36
+ "type": "string",
37
+ "enum": ["krisp"],
38
+ "description": "Turn detection mode. Currently only 'krisp' supports object-form tuning."
39
+ },
40
+ "threshold": {
41
+ "type": "number",
42
+ "minimum": 0,
43
+ "maximum": 1,
44
+ "description": "Krisp end-of-turn confidence threshold (0.0–1.0). Lower values trigger earlier turn transitions. Default: 0.5"
45
+ },
46
+ "model": {
47
+ "type": "string",
48
+ "description": "Optional Krisp model name override."
49
+ }
50
+ },
51
+ "required": ["mode"],
52
+ "additionalProperties": false
53
+ }
54
+ ],
55
+ "default": "stt",
56
+ "description": "Turn detection strategy. Controls when the pipeline decides the user has finished speaking. STT vendors with native turn-taking (deepgramflux, assemblyai, speechmatics) always use their built-in detection regardless of this setting."
57
+ },
58
+ "bargeIn": {
29
59
  "type": "object",
30
- "description": "Turn detection configuration. Determines when the user has finished speaking and it's the AI's turn to respond.",
60
+ "description": "Controls whether and how the user can interrupt the assistant while it is speaking.",
31
61
  "properties": {
32
- "vendor": {
33
- "type": "string",
34
- "enum": [
35
- "krisp"
36
- ],
37
- "description": "The turn detection vendor."
62
+ "enable": {
63
+ "type": "boolean",
64
+ "description": "Allow the user to interrupt the assistant while it is speaking. Default: true.",
65
+ "default": true
38
66
  },
39
- "threshold": {
67
+ "minSpeechDuration": {
40
68
  "type": "number",
41
- "description": "Confidence threshold for turn detection."
69
+ "minimum": 0,
70
+ "description": "Seconds of detected speech required before confirming an interruption. Prevents brief noises from cutting off the assistant. Default: 0.5",
71
+ "default": 0.5
42
72
  },
43
- "eagerEotThreshold": {
44
- "type": "number",
45
- "description": "Threshold for eager end-of-turn detection. Lower values cause earlier turn transitions."
73
+ "sticky": {
74
+ "type": "boolean",
75
+ "description": "If true, once the user interrupts the assistant does not resume speaking. Default: false.",
76
+ "default": false
46
77
  }
47
78
  },
48
- "required": [
49
- "vendor"
50
- ]
79
+ "additionalProperties": false
51
80
  },
52
81
  "llm": {
53
82
  "type": "object",
54
83
  "description": "LLM configuration for the pipeline. See the 'llm' verb schema for details.",
55
84
  "additionalProperties": true
56
85
  },
57
- "preflightLlm": {
58
- "type": "boolean",
59
- "description": "If true, establish the LLM connection before the call starts to reduce latency on the first interaction."
60
- },
61
86
  "actionHook": {
62
87
  "$ref": "../components/actionHook",
63
88
  "description": "A webhook invoked when the pipeline ends."
@@ -99,9 +124,39 @@
99
124
  ]
100
125
  }
101
126
  },
127
+ "turnDetection": "stt",
128
+ "actionHook": "/pipeline-complete"
129
+ },
130
+ {
131
+ "verb": "pipeline",
132
+ "stt": {
133
+ "vendor": "deepgram",
134
+ "language": "en-US"
135
+ },
136
+ "tts": {
137
+ "vendor": "cartesia",
138
+ "voice": "sonic-english"
139
+ },
140
+ "llm": {
141
+ "vendor": "anthropic",
142
+ "model": "claude-opus-4-6",
143
+ "llmOptions": {
144
+ "messages": [
145
+ {
146
+ "role": "user",
147
+ "content": "You are a helpful voice assistant."
148
+ }
149
+ ]
150
+ }
151
+ },
102
152
  "turnDetection": {
103
- "vendor": "krisp",
104
- "threshold": 0.5
153
+ "mode": "krisp",
154
+ "threshold": 0.3
155
+ },
156
+ "bargeIn": {
157
+ "enable": true,
158
+ "minSpeechDuration": 0.3,
159
+ "sticky": false
105
160
  },
106
161
  "actionHook": "/pipeline-complete"
107
162
  }