symposium 1.2.1 → 1.2.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 +8 -3
  2. package/package.json +1 -1
package/Agent.js CHANGED
@@ -118,7 +118,7 @@ export default class Agent {
118
118
  if (context_texts.length) {
119
119
  let context_string = context_texts.join('\n');
120
120
  if (is_there_on_request) {
121
- context_string = '<important>Some of the context is available to you immediately here, while longer texts may be available only on request; you are provided with a title and a description. If you think it may be useful for your current task, you can request the text via the get_context tool</important>';
121
+ context_string = '<important>Some of the context files are available to you immediately here, while longer texts may be available only on request; you are provided with a title and a description of these files. If you think it may be useful for your current task, you can request the text via the get_context tool - IMPORTANT: use the title of the file verbatim as it is provided</important>' + context_string;
122
122
  if (!this.tools.has('get_context'))
123
123
  this.addTool(new GetContextTool(this));
124
124
  }
@@ -273,8 +273,13 @@ export default class Agent {
273
273
  } catch (e) {
274
274
  console.error(e);
275
275
 
276
- if (counter < this.max_retries)
277
- await this.execute(thread, emitter, counter + 1);
276
+ if (counter < this.max_retries) {
277
+ await this.execute(thread, emitter, counter + 1)
278
+ .then(response => resolve(response))
279
+ .catch(err => reject(err));
280
+ } else {
281
+ throw e;
282
+ }
278
283
  }
279
284
  } catch (e) {
280
285
  reject(e);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "1.2.1",
4
+ "version": "1.2.3",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",