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.
- package/Agent.js +6 -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(
|
|
89
|
-
|
|
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) {
|