@fonoster/autopilot 0.8.56 → 0.8.59

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.
@@ -66,7 +66,7 @@ const loadAssistantFromAPI_1 = require("./loadAssistantFromAPI");
66
66
  const fs_1 = __importDefault(require("fs"));
67
67
  const logger = (0, logger_1.getLogger)({ service: "autopilot", filePath: __filename });
68
68
  async function handleVoiceRequest(req, res) {
69
- const { accessKeyId, ingressNumber, sessionRef, appRef, callDirection } = req;
69
+ const { accessKeyId, callerNumber, ingressNumber, sessionRef, appRef, callDirection } = req;
70
70
  logger.verbose("voice request", {
71
71
  accessKeyId,
72
72
  ingressNumber,
@@ -99,7 +99,6 @@ async function handleVoiceRequest(req, res) {
99
99
  logger.verbose("knowledge base loaded");
100
100
  });
101
101
  const voice = new _1.VoiceImpl(sessionRef, res);
102
- const { ingressNumber, callerNumber, callDirection } = req;
103
102
  const languageModel = (0, createLanguageModel_1.createLanguageModel)({
104
103
  voice,
105
104
  assistantConfig,
@@ -1 +1 @@
1
- export declare const textSimilaryPrompt = "\nYou are a text similarity evaluator for a Voice Assistant application. \n\nGive Text1 and Text2, you use the following process to evaluate the similarity between the two texts:\n\n- Take the first text and determmine the intent of the text.\n- Take the second text and determine the intent of the text.\n- Compare the intents of the two texts ignoring the actual text content and the entities and the length of the text.\n\n## Example 1\n\nText1: \"You're welcome. Have a great day!\"\nText2: \"You're welcome [name]. Your appointment is confirmed. Goodbye!\"\n\nAnswer: true\n\n=== \n\nAre the intents of the two texts the same? Respond with true.\n";
1
+ export declare const textSimilaryPrompt = "\nYou are a text similarity evaluator for a Voice Assistant application. \n\nGive Text1 and Text2, you use the following process to evaluate the similarity between the two texts:\n\n- Take the first text and determmine the intent of the text.\n- Take the second text and determine the intent of the text.\n- Compare the intents of the two texts ignoring the actual text content and the entities, and length of the text.\n\n## Example 1\n\nText1: \"You're welcome. Have a great day!\"\nText2: \"You're welcome [name]. Your appointment is confirmed. Goodbye!\"\n\nAnswer: true\n\n=== \n\nAre the intents of the two texts the same? Respond with true.\n";
@@ -26,7 +26,7 @@ Give Text1 and Text2, you use the following process to evaluate the similarity b
26
26
 
27
27
  - Take the first text and determmine the intent of the text.
28
28
  - Take the second text and determine the intent of the text.
29
- - Compare the intents of the two texts ignoring the actual text content and the entities and the length of the text.
29
+ - Compare the intents of the two texts ignoring the actual text content and the entities, and length of the text.
30
30
 
31
31
  ## Example 1
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/autopilot",
3
- "version": "0.8.56",
3
+ "version": "0.8.59",
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.56",
37
- "@fonoster/logger": "^0.8.56",
38
- "@fonoster/sdk": "^0.8.56",
39
- "@fonoster/types": "^0.8.56",
40
- "@fonoster/voice": "^0.8.56",
36
+ "@fonoster/common": "^0.8.59",
37
+ "@fonoster/logger": "^0.8.59",
38
+ "@fonoster/sdk": "^0.8.59",
39
+ "@fonoster/types": "^0.8.59",
40
+ "@fonoster/voice": "^0.8.59",
41
41
  "@langchain/community": "^0.3.29",
42
42
  "@langchain/core": "^0.3.39",
43
43
  "@langchain/groq": "^0.1.3",
@@ -57,5 +57,5 @@
57
57
  "devDependencies": {
58
58
  "typescript": "^5.5.4"
59
59
  },
60
- "gitHead": "eb95cb72d964068fe3d525b696f17c4d4b0522a2"
60
+ "gitHead": "6a5255febb9e4bcd9184d93abe72281f945c8c4d"
61
61
  }