symposium 0.10.2 → 0.10.4

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 CHANGED
@@ -18,10 +18,15 @@ export default class Agent {
18
18
  ...options,
19
19
  };
20
20
 
21
+ this.threads = new Map();
22
+ }
23
+
24
+ async init() {
25
+ for (let i of this.options.interfaces)
26
+ await i.init(this);
27
+
21
28
  if (this.options.memory_handler)
22
29
  this.options.memory_handler.setAgent(this);
23
-
24
- this.threads = new Map();
25
30
  }
26
31
 
27
32
  async reset(thread) {
package/Interface.js CHANGED
@@ -1,10 +1,10 @@
1
1
  export default class Interface {
2
- async static init(agent) {
2
+ static async init(agent) {
3
3
  }
4
4
 
5
- async static output(thread, msg) {
5
+ static async output(thread, msg) {
6
6
  }
7
7
 
8
- async static error(thread, error) {
8
+ static async error(thread, error) {
9
9
  }
10
10
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.10.2",
4
+ "version": "0.10.4",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",