@fonoster/autopilot 0.8.42 → 0.8.44
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 +0 -3
- package/dist/machine/machine.js +17 -18
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -14,9 +14,6 @@ The autopilot module provides a way to create Voice AI applications in Fonoster.
|
|
|
14
14
|
* [Adding Tools](#configuring-the-tools)
|
|
15
15
|
* [What's Next](#whats-next)
|
|
16
16
|
|
|
17
|
-
> [!WARNING]
|
|
18
|
-
> This is an overview of Fonoster's Autopilot. This module is still under heavy development, and the API is subject to change. This overview implements OpenAI and Groq models, but we are working to bring support to additional providers. If you have any suggestions or feedback, please let us know.
|
|
19
|
-
|
|
20
17
|
## Installation
|
|
21
18
|
|
|
22
19
|
```sh-session
|
package/dist/machine/machine.js
CHANGED
|
@@ -241,6 +241,11 @@ const machine = (0, xstate_1.setup)({
|
|
|
241
241
|
SPEECH_START: {
|
|
242
242
|
target: "waitingForUserRequest",
|
|
243
243
|
description: "Event from VAD system."
|
|
244
|
+
},
|
|
245
|
+
SPEECH_RESULT: {
|
|
246
|
+
target: "waitingForUserRequest",
|
|
247
|
+
description: "User started speaking before SPEECH_START event",
|
|
248
|
+
actions: [{ type: "appendSpeech" }]
|
|
244
249
|
}
|
|
245
250
|
},
|
|
246
251
|
after: {
|
|
@@ -299,29 +304,12 @@ const machine = (0, xstate_1.setup)({
|
|
|
299
304
|
{
|
|
300
305
|
actions: { type: "appendSpeech" },
|
|
301
306
|
guard: "isSpeaking",
|
|
302
|
-
description: "Just append the speech result
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
target: "processingUserRequest",
|
|
306
|
-
actions: { type: "appendSpeech" },
|
|
307
|
-
guard: (0, xstate_1.not)("isSpeaking"),
|
|
308
|
-
description: "Append the speech result and process it."
|
|
307
|
+
description: "Just append the speech result when actively speaking"
|
|
309
308
|
}
|
|
310
309
|
]
|
|
311
310
|
}
|
|
312
311
|
},
|
|
313
312
|
waitingForSpeechTimeout: {
|
|
314
|
-
after: {
|
|
315
|
-
MAX_SPEECH_WAIT_TIMEOUT: [
|
|
316
|
-
{
|
|
317
|
-
target: "processingUserRequest",
|
|
318
|
-
guard: "hasSpeechResult"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
target: "idle"
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
},
|
|
325
313
|
on: {
|
|
326
314
|
SPEECH_START: {
|
|
327
315
|
target: "waitingForUserRequest",
|
|
@@ -334,6 +322,17 @@ const machine = (0, xstate_1.setup)({
|
|
|
334
322
|
},
|
|
335
323
|
description: "Append final speech and process the request"
|
|
336
324
|
}
|
|
325
|
+
},
|
|
326
|
+
after: {
|
|
327
|
+
MAX_SPEECH_WAIT_TIMEOUT: [
|
|
328
|
+
{
|
|
329
|
+
target: "processingUserRequest",
|
|
330
|
+
guard: "hasSpeechResult"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
target: "idle"
|
|
334
|
+
}
|
|
335
|
+
]
|
|
337
336
|
}
|
|
338
337
|
},
|
|
339
338
|
processingUserRequest: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/autopilot",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.44",
|
|
4
4
|
"description": "Voice AI for the Fonoster platform",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@aws-sdk/client-s3": "^3.712.0",
|
|
36
|
-
"@fonoster/common": "^0.8.
|
|
37
|
-
"@fonoster/logger": "^0.8.
|
|
38
|
-
"@fonoster/sdk": "^0.8.
|
|
39
|
-
"@fonoster/types": "^0.8.
|
|
40
|
-
"@fonoster/voice": "^0.8.
|
|
36
|
+
"@fonoster/common": "^0.8.43",
|
|
37
|
+
"@fonoster/logger": "^0.8.43",
|
|
38
|
+
"@fonoster/sdk": "^0.8.44",
|
|
39
|
+
"@fonoster/types": "^0.8.43",
|
|
40
|
+
"@fonoster/voice": "^0.8.44",
|
|
41
41
|
"@langchain/community": "^0.3.19",
|
|
42
42
|
"@langchain/core": "^0.3.23",
|
|
43
43
|
"@langchain/groq": "^0.1.2",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"typescript": "^5.5.4"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "32955ea46d8b4b326157f248b1aa5f9a5c58e9b7"
|
|
59
59
|
}
|