@fonoster/autopilot 0.9.32 → 0.9.35
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.
|
@@ -22,12 +22,12 @@ exports.printEval = printEval;
|
|
|
22
22
|
* See the License for the specific language governing permissions and
|
|
23
23
|
* limitations under the License.
|
|
24
24
|
*/
|
|
25
|
-
const
|
|
25
|
+
const ansis_1 = __importDefault(require("ansis"));
|
|
26
26
|
const cli_table3_1 = __importDefault(require("cli-table3"));
|
|
27
27
|
function printEval(results) {
|
|
28
28
|
results.forEach((result) => {
|
|
29
|
-
console.log(
|
|
30
|
-
console.log(
|
|
29
|
+
console.log(ansis_1.default.bold.blue(`\nScenario: ${result.scenarioRef}`));
|
|
30
|
+
console.log(ansis_1.default.bold(`Overall Passed: ${result.overallPassed ? ansis_1.default.green("✔") : ansis_1.default.red("✘")}`));
|
|
31
31
|
const table = new cli_table3_1.default({
|
|
32
32
|
head: [
|
|
33
33
|
"Step",
|
|
@@ -76,19 +76,19 @@ function printEval(results) {
|
|
|
76
76
|
step.expectedResponse,
|
|
77
77
|
step.aiResponse,
|
|
78
78
|
toolEvalText,
|
|
79
|
-
step.passed ?
|
|
79
|
+
step.passed ? ansis_1.default.green("✔") : ansis_1.default.red("✘")
|
|
80
80
|
]);
|
|
81
81
|
// Print error message if step failed
|
|
82
82
|
if (!step.passed && step.errorMessage) {
|
|
83
|
-
console.log(
|
|
84
|
-
console.log(
|
|
83
|
+
console.log(ansis_1.default.red(`\nError in step ${index + 1}:`));
|
|
84
|
+
console.log(ansis_1.default.red(step.errorMessage));
|
|
85
85
|
}
|
|
86
86
|
// Print tool evaluation errors if any
|
|
87
87
|
if (step.toolEvaluations) {
|
|
88
88
|
step.toolEvaluations.forEach((toolEval) => {
|
|
89
89
|
if (!toolEval.passed && toolEval.errorMessage) {
|
|
90
|
-
console.log(
|
|
91
|
-
console.log(
|
|
90
|
+
console.log(ansis_1.default.red(`\nTool Error in step ${index + 1}:`));
|
|
91
|
+
console.log(ansis_1.default.red(toolEval.errorMessage));
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/autopilot",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.35",
|
|
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,17 +33,17 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@aws-sdk/client-s3": "^3.712.0",
|
|
36
|
-
"@fonoster/common": "^0.9.
|
|
36
|
+
"@fonoster/common": "^0.9.35",
|
|
37
37
|
"@fonoster/logger": "^0.9.30",
|
|
38
|
-
"@fonoster/sdk": "^0.9.
|
|
38
|
+
"@fonoster/sdk": "^0.9.35",
|
|
39
39
|
"@fonoster/types": "^0.9.30",
|
|
40
|
-
"@fonoster/voice": "^0.9.
|
|
40
|
+
"@fonoster/voice": "^0.9.35",
|
|
41
41
|
"@langchain/community": "^0.3.32",
|
|
42
42
|
"@langchain/core": "^0.3.40",
|
|
43
43
|
"@langchain/groq": "^0.1.3",
|
|
44
44
|
"@langchain/ollama": "^0.1.6",
|
|
45
45
|
"@langchain/openai": "^0.4.4",
|
|
46
|
-
"
|
|
46
|
+
"ansis": "^3.17.0",
|
|
47
47
|
"cheerio": "^1.0.0",
|
|
48
48
|
"cli-table3": "^0.6.5",
|
|
49
49
|
"dotenv": "^16.4.5",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"xstate": "^5.17.3",
|
|
57
57
|
"zod": "^3.23.8"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "051baac1de8595a8d657022ee588d8cbb59f32ef"
|
|
60
60
|
}
|