symposium 0.12.1 → 0.12.2

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 +3 -3
  2. package/package.json +1 -1
package/Agent.js CHANGED
@@ -249,10 +249,10 @@ export default class Agent {
249
249
 
250
250
  if (functions.length) {
251
251
  for (let f of functions) {
252
- const response = await this.callFunction(thread, f);
253
-
254
252
  if (this.utility && this.utility.type === 'function')
255
- return this.afterHandle(thread, completion, 'return', response);
253
+ return this.afterHandle(thread, completion, 'return', f.arguments);
254
+
255
+ const response = await this.callFunction(thread, f);
256
256
 
257
257
  thread.addMessage('tool', [
258
258
  {
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.2",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",