@fonoster/autopilot 0.12.0 → 0.12.2
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/machine/context.js
CHANGED
|
@@ -17,6 +17,7 @@ const context = ({ input }) => ({
|
|
|
17
17
|
maxIdleTimeoutCount: input.conversationSettings.idleOptions.maxTimeoutCount,
|
|
18
18
|
idleTimeoutCount: 0,
|
|
19
19
|
maxSpeechWaitTimeout: input.conversationSettings.maxSpeechWaitTimeout,
|
|
20
|
+
allowUserBargeIn: input.conversationSettings.allowUserBargeIn,
|
|
20
21
|
isSpeaking: false,
|
|
21
22
|
sessionStartTime: Date.now(),
|
|
22
23
|
maxSessionDuration: input.conversationSettings.maxSessionDuration,
|
|
@@ -98,6 +98,7 @@ declare const machine: import("xstate").StateMachine<any, import("./types").Auto
|
|
|
98
98
|
maxIdleTimeoutCount: number;
|
|
99
99
|
idleTimeoutCount: number;
|
|
100
100
|
maxSpeechWaitTimeout: number;
|
|
101
|
+
allowUserBargeIn: boolean;
|
|
101
102
|
isSpeaking: boolean;
|
|
102
103
|
sessionStartTime: number;
|
|
103
104
|
maxSessionDuration: number;
|
|
@@ -207,6 +208,9 @@ declare const machine: import("xstate").StateMachine<any, import("./types").Auto
|
|
|
207
208
|
readonly actions: readonly [{
|
|
208
209
|
readonly type: "cleanSpeech";
|
|
209
210
|
}];
|
|
211
|
+
readonly guard: ({ context }: import("xstate/dist/declarations/src/guards").GuardArgs<any, {
|
|
212
|
+
type: "SPEECH_START";
|
|
213
|
+
}>) => any;
|
|
210
214
|
};
|
|
211
215
|
};
|
|
212
216
|
readonly invoke: {
|
package/dist/machine/machine.js
CHANGED
|
@@ -121,7 +121,8 @@ const machine = setup_1.machineSetup.createMachine({
|
|
|
121
121
|
SPEECH_START: {
|
|
122
122
|
target: "listeningToUser",
|
|
123
123
|
description: "Event from VAD or similar system.",
|
|
124
|
-
actions: [{ type: "cleanSpeech" }]
|
|
124
|
+
actions: [{ type: "cleanSpeech" }],
|
|
125
|
+
guard: ({ context }) => context.enableUserBargeIn
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
128
|
invoke: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/autopilot",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
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",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@aws-sdk/client-s3": "^3.712.0",
|
|
36
36
|
"@dmitryrechkin/json-schema-to-zod": "^1.0.1",
|
|
37
|
-
"@fonoster/common": "^0.12.
|
|
38
|
-
"@fonoster/logger": "^0.12.
|
|
39
|
-
"@fonoster/sdk": "^0.12.
|
|
40
|
-
"@fonoster/types": "^0.12.
|
|
41
|
-
"@fonoster/voice": "^0.12.
|
|
37
|
+
"@fonoster/common": "^0.12.2",
|
|
38
|
+
"@fonoster/logger": "^0.12.2",
|
|
39
|
+
"@fonoster/sdk": "^0.12.2",
|
|
40
|
+
"@fonoster/types": "^0.12.2",
|
|
41
|
+
"@fonoster/voice": "^0.12.2",
|
|
42
42
|
"@langchain/anthropic": "^0.3.15",
|
|
43
43
|
"@langchain/community": "^0.3.32",
|
|
44
44
|
"@langchain/core": "^0.3.40",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"xstate": "^5.17.3",
|
|
60
60
|
"zod": "^3.23.8"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "7f6504faf9edb384893c8f8d9ae0c4d28d082a68"
|
|
63
63
|
}
|