@ai.ntellect/core 0.0.29 → 0.0.30
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/agent/index.ts +7 -7
- package/package.json +1 -1
package/agent/index.ts
CHANGED
@@ -75,13 +75,6 @@ export class Agent {
|
|
75
75
|
callbacks
|
76
76
|
);
|
77
77
|
|
78
|
-
if (!this.actionHandler.hasNonPrepareActions(actionsResult.data)) {
|
79
|
-
return {
|
80
|
-
data: actionsResult.data,
|
81
|
-
initialPrompt,
|
82
|
-
};
|
83
|
-
}
|
84
|
-
|
85
78
|
const evaluator = new Evaluator(this.dependencies.orchestrator.tools);
|
86
79
|
const evaluation = await evaluator.process(
|
87
80
|
initialPrompt,
|
@@ -102,6 +95,13 @@ export class Agent {
|
|
102
95
|
);
|
103
96
|
}
|
104
97
|
|
98
|
+
if (!this.actionHandler.hasNonPrepareActions(actionsResult.data)) {
|
99
|
+
return {
|
100
|
+
data: actionsResult.data,
|
101
|
+
initialPrompt,
|
102
|
+
};
|
103
|
+
}
|
104
|
+
|
105
105
|
return this.handleActionResults({ ...actionsResult, initialPrompt });
|
106
106
|
}
|
107
107
|
|