@voctiv/agent-sdk 0.2.5 → 0.2.7
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/README.md +198 -10
- package/dist/define-script.d.ts +15 -2
- package/dist/define-script.d.ts.map +1 -1
- package/dist/define-script.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ export default defineScript(async ({ channel, logger, context }) => {
|
|
|
79
79
|
- `channel` is the media channel for SIP, WS, ASR, TTS, audio playback, LLM, and structured data messages.
|
|
80
80
|
- `logger` writes structured script logs and can stream logs to a debug endpoint.
|
|
81
81
|
- `context` contains dialog identity, caller/called numbers, language, flags, params, entry point, persisted env, and runtime budget.
|
|
82
|
-
- `platform` exposes
|
|
82
|
+
- `platform` exposes platform operations: NLU, dialog state, outbound call scheduling, messaging, and phrase records.
|
|
83
83
|
|
|
84
84
|
`MediaChannel` is the main real-time API:
|
|
85
85
|
|
|
@@ -371,7 +371,7 @@ await channel.audio.say(
|
|
|
371
371
|
|
|
372
372
|
## Platform API
|
|
373
373
|
|
|
374
|
-
`platform` exposes Voctiv
|
|
374
|
+
`platform` exposes Voctiv platform operations.
|
|
375
375
|
|
|
376
376
|
`platform.nlu.extract(utterance, options?)` calls NLU v3 `/infer`. The runtime sends `phrase`, `context`, and `agent_id`. If `options.context` is omitted, current dialog params are serialized and used as NLU context.
|
|
377
377
|
|
|
@@ -383,7 +383,7 @@ const result = await platform.nlu.extract('I want to reschedule', {
|
|
|
383
383
|
});
|
|
384
384
|
```
|
|
385
385
|
|
|
386
|
-
|
|
386
|
+
Platform APIs require `context.legacyV3Compat === true`. This includes NLU, outbound calls, dialog writes, messaging sends, and phrase records.
|
|
387
387
|
|
|
388
388
|
### Dialog State
|
|
389
389
|
|
|
@@ -394,19 +394,68 @@ platform.dialog.result = 'done';
|
|
|
394
394
|
|
|
395
395
|
Setters update the local value immediately and ask the platform DB to persist asynchronously. They are not awaitable and should not be used as transactional writes.
|
|
396
396
|
|
|
397
|
-
###
|
|
397
|
+
### Platform-Scheduled Calls
|
|
398
|
+
|
|
399
|
+
Use `platform.call(msisdn, options?)` when the script needs to ask the platform to place an outbound SIP call. This is different from `channel.sip.makeCall()`: `makeCall()` creates a B-leg immediately inside the current live SIP session, while `platform.call()` schedules a separate platform-managed call that may happen now or later.
|
|
400
|
+
|
|
401
|
+
The destination number should be E.164 formatted.
|
|
402
|
+
|
|
403
|
+
```ts
|
|
404
|
+
await platform.call('+12025551234');
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
By default, the platform schedules the call for immediate processing. Use `date` to schedule it for the future:
|
|
398
408
|
|
|
399
409
|
```ts
|
|
400
410
|
await platform.call('+12025551234', {
|
|
401
|
-
date: new Date(Date.now() + 60_000),
|
|
411
|
+
date: new Date(Date.now() + 15 * 60_000),
|
|
402
412
|
entryPoint: 'on_callback',
|
|
403
|
-
|
|
413
|
+
});
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
`entryPoint` is passed to the script when the scheduled call starts. Use it to route the callback into a specific branch:
|
|
417
|
+
|
|
418
|
+
```ts
|
|
419
|
+
export default defineScript(async ({ context, channel }) => {
|
|
420
|
+
if (context.entryPoint === 'on_callback') {
|
|
421
|
+
channel.sip.answer();
|
|
422
|
+
await channel.audio.say('Hello, this is your scheduled callback.');
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
await channel.audio.say('I will call you back in fifteen minutes.');
|
|
427
|
+
});
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
Use `dateEnd` to define the latest time when the call is still useful. If the platform cannot place the call before that deadline, it can skip the attempt.
|
|
431
|
+
|
|
432
|
+
```ts
|
|
433
|
+
await platform.call('+12025551234', {
|
|
434
|
+
date: new Date('2026-04-29T10:00:00Z'),
|
|
435
|
+
dateEnd: new Date('2026-04-29T10:30:00Z'),
|
|
436
|
+
entryPoint: 'on_reminder',
|
|
437
|
+
});
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
Retries are controlled with `recallCount` and `recallDelay`:
|
|
441
|
+
|
|
442
|
+
```ts
|
|
443
|
+
await platform.call('+12025551234', {
|
|
444
|
+
entryPoint: 'on_follow_up',
|
|
445
|
+
recallCount: 3,
|
|
404
446
|
recallDelay: 300,
|
|
405
|
-
priority: 10,
|
|
406
447
|
});
|
|
407
448
|
```
|
|
408
449
|
|
|
409
|
-
This
|
|
450
|
+
This means the platform may retry up to three times, waiting about five minutes between attempts.
|
|
451
|
+
|
|
452
|
+
Other scheduling options:
|
|
453
|
+
|
|
454
|
+
- `priority`: higher-priority calls can be processed earlier by the dialer.
|
|
455
|
+
- `timezone`: timezone offset used by the platform when interpreting scheduled dates.
|
|
456
|
+
- `onSuccessCall`: entry point to use after a successful call.
|
|
457
|
+
- `onFailedCall`: entry point to use after failed attempts.
|
|
458
|
+
- `protoAdditional`: extra protocol-level parameters, such as SIP headers expected by your telephony setup.
|
|
410
459
|
|
|
411
460
|
### Messaging
|
|
412
461
|
|
|
@@ -420,6 +469,145 @@ await platform.messaging.send({
|
|
|
420
469
|
|
|
421
470
|
Outbound messages are transported through legacy Redis streams. `platform.messaging.message$` currently replays the inbound message that started a headless messaging script; it is not a live subscription to all future Redis messages.
|
|
422
471
|
|
|
472
|
+
## Offline / Headless Logic
|
|
473
|
+
|
|
474
|
+
Offline, or headless, sessions run a script without a live SIP call, WebSocket audio stream, RTP pipeline, ASR, or TTS playback. They are used for platform-driven background logic, queued dialog processing, and messaging events.
|
|
475
|
+
|
|
476
|
+
The script entry point is still the same `defineScript()` handler. Detect this mode with `context.headless`:
|
|
477
|
+
|
|
478
|
+
```ts
|
|
479
|
+
export default defineScript(async ({ channel, context, logger, platform }) => {
|
|
480
|
+
if (!context.headless) {
|
|
481
|
+
channel.sip.answer();
|
|
482
|
+
await channel.audio.say('Hello.');
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
logger.log('Running offline logic', {
|
|
487
|
+
dialogUuid: context.dialogUuid,
|
|
488
|
+
entryPoint: context.entryPoint,
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
// Offline logic usually works with text, params, env, NLU, LLM, and platform APIs.
|
|
492
|
+
});
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
Headless sessions can be started by host integrations such as:
|
|
496
|
+
|
|
497
|
+
- a platform dialog queue worker that loads pending dialogs;
|
|
498
|
+
- an inbound messaging worker, usually with `context.entryPoint === 'on_message_api_received'`;
|
|
499
|
+
- an HTTP/API request that asks ScriptEngine to run a script without media.
|
|
500
|
+
|
|
501
|
+
### What Works In Headless
|
|
502
|
+
|
|
503
|
+
These APIs are available and are the intended tools for offline scripts:
|
|
504
|
+
|
|
505
|
+
- `context.dialogParams`, `context.initialData`, `context.dialogEntity`, and `context.callEntity` for platform data.
|
|
506
|
+
- `context.env$` for persisted per-dialog state.
|
|
507
|
+
- `platform.nlu.extract()` for text NLU when legacy platform compatibility is enabled.
|
|
508
|
+
- `platform.messaging.send()` for outbound messages through the configured platform messaging transport.
|
|
509
|
+
- `platform.call()` for scheduling outbound platform-managed calls.
|
|
510
|
+
- `platform.dialog.entryPoint` and `platform.dialog.result` for updating dialog routing and outcome.
|
|
511
|
+
- `channel.llm.ask()`, `channel.llm.stream()`, and `channel.llm.extract()` for Omni LLM operations.
|
|
512
|
+
- `logger` for structured logs.
|
|
513
|
+
|
|
514
|
+
Audio and telephony APIs are intentionally inert:
|
|
515
|
+
|
|
516
|
+
- `channel.audio.say()`, `play()`, `preload()`, and `presay()` do not play audio and only log warnings.
|
|
517
|
+
- `channel.createAsr()` returns an inert handle with empty observables.
|
|
518
|
+
- `channel.textInput` does not simulate ASR in headless mode.
|
|
519
|
+
- `channel.sip.state` behaves as an already-active synthetic channel, but real SIP actions such as nested calls and bridging are not available.
|
|
520
|
+
|
|
521
|
+
Use headless mode for text and platform workflows. Use SIP or WS sessions when the script needs real audio, ASR, TTS, DTMF, pre-answer media, or bridging.
|
|
522
|
+
|
|
523
|
+
### Inbound Messaging
|
|
524
|
+
|
|
525
|
+
When a headless script is triggered by an inbound message, the runtime exposes the message as `context.inboundMessage` and also replays it on `platform.messaging.message$`.
|
|
526
|
+
|
|
527
|
+
```ts
|
|
528
|
+
export default defineScript(async ({ context, platform, logger }) => {
|
|
529
|
+
const inbound = context.inboundMessage;
|
|
530
|
+
const payload = inbound?.payload ?? {};
|
|
531
|
+
|
|
532
|
+
const text =
|
|
533
|
+
typeof payload.text === 'string'
|
|
534
|
+
? payload.text
|
|
535
|
+
: typeof payload.message === 'string'
|
|
536
|
+
? payload.message
|
|
537
|
+
: '';
|
|
538
|
+
|
|
539
|
+
logger.log('Inbound message received', {
|
|
540
|
+
src: inbound?.src,
|
|
541
|
+
dst: inbound?.dst,
|
|
542
|
+
channelType: inbound?.channelType,
|
|
543
|
+
text,
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
if (!text.trim()) {
|
|
547
|
+
return { output: { reason: 'empty_message' } };
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
const nlu = await platform.nlu.extract(text, {
|
|
551
|
+
intents: ['support_request', 'callback_request'],
|
|
552
|
+
});
|
|
553
|
+
|
|
554
|
+
await platform.messaging.send({
|
|
555
|
+
src: inbound?.dst ?? 'bot',
|
|
556
|
+
destination: inbound?.src ?? '',
|
|
557
|
+
text: 'Thanks, I received your message.',
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
return {
|
|
561
|
+
output: {
|
|
562
|
+
text,
|
|
563
|
+
nlu,
|
|
564
|
+
},
|
|
565
|
+
};
|
|
566
|
+
});
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
`context.inboundMessage.payload` is the raw transport payload. Different messaging providers may use different field names (`text`, `message`, `body`, `content`, etc.), so production scripts should normalize the text they need.
|
|
570
|
+
|
|
571
|
+
### Persisting Offline State
|
|
572
|
+
|
|
573
|
+
Use `context.env$` to keep state between offline runs for the same dialog:
|
|
574
|
+
|
|
575
|
+
```ts
|
|
576
|
+
const env = context.env$?.getValue() ?? {};
|
|
577
|
+
const messageCount = Number(env.messageCount ?? 0) + 1;
|
|
578
|
+
|
|
579
|
+
context.env$?.next({
|
|
580
|
+
...env,
|
|
581
|
+
messageCount,
|
|
582
|
+
lastMessageAt: new Date().toISOString(),
|
|
583
|
+
});
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
Do not return `env` from the script. ScriptEngine snapshots `context.env$` after completion and persists it according to the host integration.
|
|
587
|
+
|
|
588
|
+
### Combining Voice And Offline In One Script
|
|
589
|
+
|
|
590
|
+
One script can support both live calls and offline messages by branching on `context.headless`:
|
|
591
|
+
|
|
592
|
+
```ts
|
|
593
|
+
export default defineScript(async ({ channel, context, platform }) => {
|
|
594
|
+
if (context.headless) {
|
|
595
|
+
const text = String(context.inboundMessage?.payload?.text ?? '');
|
|
596
|
+
|
|
597
|
+
if (text.includes('call me')) {
|
|
598
|
+
await platform.call(context.msisdn, {
|
|
599
|
+
entryPoint: 'on_callback',
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
return { output: { handledOffline: true } };
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
channel.sip.answer();
|
|
607
|
+
await channel.audio.say('How can I help you?');
|
|
608
|
+
});
|
|
609
|
+
```
|
|
610
|
+
|
|
423
611
|
## Dialog Context And Persisted Env
|
|
424
612
|
|
|
425
613
|
`context` includes identity, telephony fields, params, routing metadata, and runtime helpers.
|
|
@@ -475,9 +663,9 @@ Headless channels are for offline, queue, or messaging sessions:
|
|
|
475
663
|
- Audio methods are no-ops that log warnings.
|
|
476
664
|
- SIP methods are mostly no-ops.
|
|
477
665
|
- `createAsr()` returns an inert handle.
|
|
478
|
-
- LLM
|
|
666
|
+
- LLM, NLU, messaging, platform calls, dialog state, and `env$` still work.
|
|
479
667
|
|
|
480
|
-
Use `context.headless` to branch when a script must behave differently without a real media channel.
|
|
668
|
+
Use `context.headless` to branch when a script must behave differently without a real media channel. See [Offline / Headless Logic](#offline--headless-logic) for details and examples.
|
|
481
669
|
|
|
482
670
|
## Text Input For Tests
|
|
483
671
|
|
package/dist/define-script.d.ts
CHANGED
|
@@ -94,7 +94,13 @@ export interface ScriptDialogContext {
|
|
|
94
94
|
dialogParams: Record<string, unknown>;
|
|
95
95
|
/** Whether Voctiv platform compatibility mode is active. */
|
|
96
96
|
legacyV3Compat: boolean;
|
|
97
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* `true` when the script runs without a real media channel (offline / queue / messaging).
|
|
99
|
+
*
|
|
100
|
+
* In this mode ASR/TTS/audio/SIP operations are inert or synthetic. Use text payloads,
|
|
101
|
+
* `platform.nlu`, `platform.messaging`, `platform.call`, `channel.llm`, and `env$`
|
|
102
|
+
* for background dialog logic.
|
|
103
|
+
*/
|
|
98
104
|
headless: boolean;
|
|
99
105
|
/**
|
|
100
106
|
* Persisted dialog environment for this conversation. ScriptEngine converts the
|
|
@@ -131,7 +137,14 @@ export interface ScriptDialogContext {
|
|
|
131
137
|
recallCount?: number;
|
|
132
138
|
/** Delay in seconds between recall attempts. */
|
|
133
139
|
recallDelay?: number;
|
|
134
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* Inbound message that triggered this headless session.
|
|
142
|
+
*
|
|
143
|
+
* Present for messaging-driven offline runs, commonly with
|
|
144
|
+
* `entryPoint === "on_message_api_received"`. The `payload` field is the raw
|
|
145
|
+
* provider payload; normalize text defensively because transports may use
|
|
146
|
+
* different keys such as `text`, `message`, `body`, or `content`.
|
|
147
|
+
*/
|
|
135
148
|
inboundMessage?: InboundMessage;
|
|
136
149
|
/**
|
|
137
150
|
* Async-phase execution budget: remaining time, extension pool, {@link ScriptRunTime.extend}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-script.d.ts","sourceRoot":"","sources":["../src/define-script.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,KAA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AC1B,qFAAqF;IACrF,QAAQ,CAAC,GAAG,EAAE,YAAY,CAAC;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IACjC;;;;;OAKG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE;;;;;OAKG;IACH,UAAU,CAAC,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;CAC5E;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,OAAO,EAAE,YAAY,CAAC;IACtB,0FAA0F;IAC1F,MAAM,EAAE,YAAY,CAAC;IACrB,wFAAwF;IACxF,OAAO,EAAE,mBAAmB,CAAC;IAC7B,mEAAmE;IACnE,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,CACrB,GAAG,EAAE,aAAa,KACf,IAAI,GAAG,YAAY,GAAG,OAAO,CAAC,IAAI,GAAG,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,QAAQ,GAAG,QAAQ,CAEnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-script.js","sourceRoot":"","sources":["../src/define-script.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"define-script.js","sourceRoot":"","sources":["../src/define-script.ts"],"names":[],"mappings":";;AAobA,oCAEC;AA3BD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,YAAY,CAAC,EAAY;IACvC,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
package/package.json
CHANGED