@fonoster/autopilot 0.9.16 → 0.9.18
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.
|
@@ -33,11 +33,11 @@ function evaluateToolCalls(expectedTools, toolCalls) {
|
|
|
33
33
|
toolPassed = false;
|
|
34
34
|
errorMessage = `Expected tool "${expectedTool.tool}" but got "${actualCall.name}".`;
|
|
35
35
|
}
|
|
36
|
-
// Validate expected parameters against the actual ones
|
|
37
36
|
const expectedParams = expectedTool.parameters || {};
|
|
38
37
|
const actualParams = actualCall.args || {};
|
|
39
38
|
for (const key of Object.keys(expectedParams)) {
|
|
40
|
-
|
|
39
|
+
// Check for the special case of a valid-date
|
|
40
|
+
if (expectedParams[key].trim() === "valid-date") {
|
|
41
41
|
actualParams[key] = (0, moment_1.default)(actualParams[key], moment_1.default.ISO_8601, true);
|
|
42
42
|
if (!actualParams[key].isValid()) {
|
|
43
43
|
toolPassed = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/autopilot",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.18",
|
|
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",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@fonoster/sdk": "^0.9.16",
|
|
39
39
|
"@fonoster/types": "^0.9.15",
|
|
40
40
|
"@fonoster/voice": "^0.9.16",
|
|
41
|
-
"@langchain/community": "^0.3.
|
|
42
|
-
"@langchain/core": "^0.3.
|
|
41
|
+
"@langchain/community": "^0.3.32",
|
|
42
|
+
"@langchain/core": "^0.3.40",
|
|
43
43
|
"@langchain/groq": "^0.1.3",
|
|
44
|
-
"@langchain/ollama": "^0.1.
|
|
45
|
-
"@langchain/openai": "^0.4.
|
|
44
|
+
"@langchain/ollama": "^0.1.6",
|
|
45
|
+
"@langchain/openai": "^0.4.4",
|
|
46
46
|
"cheerio": "^1.0.0",
|
|
47
47
|
"cli-table3": "^0.6.5",
|
|
48
48
|
"dotenv": "^16.4.5",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"typescript": "^5.5.4"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "e153b66840d43e9f281b1065b7c70db3df6778a0"
|
|
61
61
|
}
|