@fonoster/autopilot 0.9.7 → 0.9.8

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.
@@ -27,9 +27,11 @@ const envs_1 = require("../envs");
27
27
  const logger = (0, logger_1.getLogger)({ service: "autopilot", filePath: __filename });
28
28
  class AbstractKnowledgeBase {
29
29
  constructor(params) {
30
- this.embeddings = params?.embeddings || new openai_1.OpenAIEmbeddings({
31
- apiKey: envs_1.OPENAI_API_KEY
32
- });
30
+ this.embeddings =
31
+ params?.embeddings ||
32
+ new openai_1.OpenAIEmbeddings({
33
+ apiKey: envs_1.OPENAI_API_KEY
34
+ });
33
35
  }
34
36
  async load() {
35
37
  const loaders = (await this.getLoaders());
@@ -1,10 +1,24 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.evaluateTextResponse = evaluateTextResponse;
2
4
  /*
3
5
  * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
4
- * Licensed under the MIT License.
6
+ * http://github.com/fonoster/fonoster
7
+ *
8
+ * This file is part of Fonoster
9
+ *
10
+ * Licensed under the MIT License (the "License");
11
+ * you may not use this file except in compliance with
12
+ * the License. You may obtain a copy of the License at
13
+ *
14
+ * https://opensource.org/licenses/MIT
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
5
21
  */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.evaluateTextResponse = evaluateTextResponse;
8
22
  const types_1 = require("./types");
9
23
  async function evaluateTextResponse(expected, aiResponse, testTextSimilarity) {
10
24
  if (expected.type === types_1.ExpectedTextType.EXACT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/autopilot",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
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",
@@ -37,7 +37,7 @@
37
37
  "@fonoster/logger": "^0.9.7",
38
38
  "@fonoster/sdk": "^0.9.7",
39
39
  "@fonoster/types": "^0.9.0",
40
- "@fonoster/voice": "^0.9.7",
40
+ "@fonoster/voice": "^0.9.8",
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": "58373b604b2e29bcfc6b88a2f30ae45afb4e97a7"
60
+ "gitHead": "ce8a2ea35fa85d494b158ddb8e61bd92ff2af00b"
61
61
  }