orquesta-cli 0.2.78 → 0.2.79
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/eval/eval-runner.js +12 -0
- package/package.json +1 -1
package/dist/eval/eval-runner.js
CHANGED
|
@@ -111,6 +111,18 @@ export class EvalRunner {
|
|
|
111
111
|
if (msg.role === 'assistant' && msg.tool_calls) {
|
|
112
112
|
for (const toolCall of msg.tool_calls) {
|
|
113
113
|
this.emitToolCall(toolCall.function.name, toolCall.function.arguments);
|
|
114
|
+
if (toolCall.function.name === 'final_response') {
|
|
115
|
+
try {
|
|
116
|
+
const args = typeof toolCall.function.arguments === 'string'
|
|
117
|
+
? JSON.parse(toolCall.function.arguments)
|
|
118
|
+
: toolCall.function.arguments;
|
|
119
|
+
const message = args?.message;
|
|
120
|
+
if (typeof message === 'string' && message.trim()) {
|
|
121
|
+
this.lastResponse = message;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
catch { }
|
|
125
|
+
}
|
|
114
126
|
}
|
|
115
127
|
}
|
|
116
128
|
if (msg.role === 'tool') {
|