@ai.ntellect/core 0.2.5 ā†’ 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,7 @@ class Evaluator {
27
27
  # CURRENT_RESULTS: ${results.map((r) => r.result).join(", ")}
28
28
  # STEPS: ${steps?.join("\n") || ""}
29
29
  `;
30
+ console.log("Evaluator Context:", context);
30
31
  return context;
31
32
  }
32
33
  async process(prompt, results) {
@@ -39,7 +40,6 @@ class Evaluator {
39
40
  });
40
41
  console.log("\nšŸ” Evaluator processing");
41
42
  console.log("Goal:", prompt);
42
- console.log("Results to evaluate:", JSON.stringify(results, null, 2));
43
43
  const response = await (0, ai_1.generateObject)({
44
44
  model: this.model,
45
45
  schema: zod_1.z.object({
@@ -68,7 +68,7 @@ class Evaluator {
68
68
  });
69
69
  const validatedResponse = {
70
70
  ...response.object,
71
- nextActions: response.object.nextActionsNeeded.map((action) => ({
71
+ nextActionsNeeded: response.object.nextActionsNeeded.map((action) => ({
72
72
  ...action,
73
73
  parameters: action.parameters || {},
74
74
  })),
@@ -31,7 +31,7 @@ export class Evaluator {
31
31
  # CURRENT_RESULTS: ${results.map((r) => r.result).join(", ")}
32
32
  # STEPS: ${steps?.join("\n") || ""}
33
33
  `;
34
-
34
+ console.log("Evaluator Context:", context);
35
35
  return context;
36
36
  }
37
37
 
@@ -45,7 +45,6 @@ export class Evaluator {
45
45
  });
46
46
  console.log("\nšŸ” Evaluator processing");
47
47
  console.log("Goal:", prompt);
48
- console.log("Results to evaluate:", JSON.stringify(results, null, 2));
49
48
 
50
49
  const response = await generateObject({
51
50
  model: this.model,
@@ -82,7 +81,7 @@ export class Evaluator {
82
81
 
83
82
  const validatedResponse = {
84
83
  ...response.object,
85
- nextActions: response.object.nextActionsNeeded.map((action) => ({
84
+ nextActionsNeeded: response.object.nextActionsNeeded.map((action) => ({
86
85
  ...action,
87
86
  parameters: action.parameters || {},
88
87
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai.ntellect/core",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {