symposium 1.4.2 → 1.4.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.
- package/Agent.js +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
package/Agent.js
CHANGED
|
@@ -121,7 +121,7 @@ export default class Agent {
|
|
|
121
121
|
if (is_there_on_request) {
|
|
122
122
|
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;
|
|
123
123
|
if (!this.tools.has('get_context'))
|
|
124
|
-
this.addTool(new GetContextTool(this));
|
|
124
|
+
await this.addTool(new GetContextTool(this));
|
|
125
125
|
}
|
|
126
126
|
context_string = '\n<context_info>' + context_string + '</context_info>';
|
|
127
127
|
|
package/README.md
CHANGED
|
@@ -218,7 +218,7 @@ import WeatherTool from './WeatherTool.js';
|
|
|
218
218
|
|
|
219
219
|
// ... inside main()
|
|
220
220
|
const agent = new MyChatAgent();
|
|
221
|
-
agent.addTool(new WeatherTool());
|
|
221
|
+
await agent.addTool(new WeatherTool());
|
|
222
222
|
await agent.init();
|
|
223
223
|
|
|
224
224
|
const emitter = await agent.message("What's the weather like in Paris?");
|