symposium 0.10.7 → 0.10.8

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 +6 -2
  2. package/package.json +1 -1
package/Agent.js CHANGED
@@ -85,12 +85,16 @@ export default class Agent {
85
85
  return null;
86
86
  }
87
87
 
88
- async message(thread_id, content) {
89
- const thread = await this.getThread(thread_id);
88
+ async message(thread, content) {
89
+ if (typeof thread !== 'object')
90
+ thread = await this.getThread(thread);
91
+
90
92
  await this.log('user_message', content);
91
93
  thread.addMessage('user', content);
92
94
 
93
95
  await this.execute(thread);
96
+
97
+ return thread;
94
98
  }
95
99
 
96
100
  async beforeExecute(thread) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.10.7",
4
+ "version": "0.10.8",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",