symposium 0.12.1 → 0.12.3
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.js +4 -6
- package/package.json +1 -1
package/Agent.js
CHANGED
|
@@ -91,9 +91,7 @@ export default class Agent {
|
|
|
91
91
|
await this.log('user_message', content);
|
|
92
92
|
thread.addMessage('user', content);
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return thread;
|
|
94
|
+
return this.execute(thread);
|
|
97
95
|
}
|
|
98
96
|
|
|
99
97
|
async beforeExecute(thread) {
|
|
@@ -249,10 +247,10 @@ export default class Agent {
|
|
|
249
247
|
|
|
250
248
|
if (functions.length) {
|
|
251
249
|
for (let f of functions) {
|
|
252
|
-
const response = await this.callFunction(thread, f);
|
|
253
|
-
|
|
254
250
|
if (this.utility && this.utility.type === 'function')
|
|
255
|
-
return this.afterHandle(thread, completion, 'return',
|
|
251
|
+
return this.afterHandle(thread, completion, 'return', f.arguments);
|
|
252
|
+
|
|
253
|
+
const response = await this.callFunction(thread, f);
|
|
256
254
|
|
|
257
255
|
thread.addMessage('tool', [
|
|
258
256
|
{
|