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.
Files changed (2) hide show
  1. package/Agent.js +4 -6
  2. 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
- await this.execute(thread);
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', response);
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
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.12.1",
4
+ "version": "0.12.3",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",