@fonoster/autopilot 0.9.8 → 0.9.12
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/envs.js +1 -1
- package/dist/models/evaluations/evalTestCases.d.ts +3 -0
- package/dist/models/evaluations/{evals.js → evalTestCases.js} +4 -3
- package/dist/models/evaluations/index.d.ts +2 -1
- package/dist/models/evaluations/index.js +2 -1
- package/dist/models/evaluations/types.d.ts +6 -1
- package/package.json +7 -7
- package/dist/models/evaluations/evals.d.ts +0 -3
package/dist/envs.js
CHANGED
|
@@ -51,7 +51,7 @@ exports.APISERVER_ENDPOINT = e.AUTOPILOT_APISERVER_ENDPOINT
|
|
|
51
51
|
: "apiserver:50051";
|
|
52
52
|
exports.INTEGRATIONS_FILE = e.AUTOPILOT_INTEGRATIONS_FILE
|
|
53
53
|
? e.AUTOPILOT_INTEGRATIONS_FILE
|
|
54
|
-
:
|
|
54
|
+
: "/opt/fonoster/integrations.json";
|
|
55
55
|
exports.OPENAI_API_KEY = e.AUTOPILOT_OPENAI_API_KEY;
|
|
56
56
|
exports.SKIP_IDENTITY = e.AUTOPILOT_SKIP_IDENTITY === "true";
|
|
57
57
|
if (exports.SILERO_VAD_VERSION !== "v4" && exports.SILERO_VAD_VERSION !== "v5") {
|
|
@@ -5,8 +5,9 @@ const createLanguageModel_1 = require("../createLanguageModel");
|
|
|
5
5
|
const createTestTextSimilarity_1 = require("./createTestTextSimilarity");
|
|
6
6
|
const evaluateScenario_1 = require("./evaluateScenario");
|
|
7
7
|
const textSimilaryPrompt_1 = require("./textSimilaryPrompt");
|
|
8
|
-
async function evalTestCases(
|
|
9
|
-
const { testCases } =
|
|
8
|
+
async function evalTestCases(autopilotApplication) {
|
|
9
|
+
const { testCases } = autopilotApplication.intelligence.config;
|
|
10
|
+
const { config: assistantConfig } = autopilotApplication.intelligence;
|
|
10
11
|
const voice = {
|
|
11
12
|
say: async (_) => { }
|
|
12
13
|
};
|
|
@@ -14,7 +15,7 @@ async function evalTestCases(assistantConfig) {
|
|
|
14
15
|
for (const scenario of testCases?.scenarios) {
|
|
15
16
|
const languageModel = (0, createLanguageModel_1.createLanguageModel)({
|
|
16
17
|
voice,
|
|
17
|
-
assistantConfig,
|
|
18
|
+
assistantConfig: autopilotApplication.intelligence.config,
|
|
18
19
|
knowledgeBase: {
|
|
19
20
|
load: async () => { },
|
|
20
21
|
queryKnowledgeBase: async (query, k) => query
|
|
@@ -32,5 +32,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
32
32
|
* See the License for the specific language governing permissions and
|
|
33
33
|
* limitations under the License.
|
|
34
34
|
*/
|
|
35
|
-
__exportStar(require("./
|
|
35
|
+
__exportStar(require("./evalTestCases"), exports);
|
|
36
36
|
__exportStar(require("./printEval"), exports);
|
|
37
|
+
__exportStar(require("./types"), exports);
|
|
@@ -38,4 +38,9 @@ type ScenarioEvaluationConfig = {
|
|
|
38
38
|
languageModel: LanguageModel;
|
|
39
39
|
testTextSimilarity: (text1: string, text2: string) => Promise<boolean>;
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
type AutopilotApplication = {
|
|
42
|
+
intelligence: {
|
|
43
|
+
config: AssistantConfig;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export { AutopilotApplication, ExpectedTextType, ScenarioEvaluationReport, StepEvaluationReport, ToolEvaluationReport, ScenarioEvaluationConfig, EvaluateStepParams };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/autopilot",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12",
|
|
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.9.
|
|
37
|
-
"@fonoster/logger": "^0.9.
|
|
38
|
-
"@fonoster/sdk": "^0.9.
|
|
39
|
-
"@fonoster/types": "^0.9.
|
|
40
|
-
"@fonoster/voice": "^0.9.
|
|
36
|
+
"@fonoster/common": "^0.9.12",
|
|
37
|
+
"@fonoster/logger": "^0.9.12",
|
|
38
|
+
"@fonoster/sdk": "^0.9.12",
|
|
39
|
+
"@fonoster/types": "^0.9.12",
|
|
40
|
+
"@fonoster/voice": "^0.9.12",
|
|
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": "
|
|
60
|
+
"gitHead": "f54a197806d36b9aa8832a9840186e4d24a0e317"
|
|
61
61
|
}
|