@economic/agents 2.3.15 → 2.3.16
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/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -142,11 +142,11 @@ var Agent = class extends Think {
|
|
|
142
142
|
*/
|
|
143
143
|
async beforeTurn(ctx) {
|
|
144
144
|
this._toolContextForCurrentTurn = this.getToolContextForCurrentTurn(ctx.body);
|
|
145
|
-
await this.session.refreshSystemPrompt();
|
|
146
145
|
this._toolsForCurrentTurn = ctx.tools;
|
|
147
146
|
const activeSkillName = this._getLastActivatedSkillName(ctx.messages);
|
|
148
147
|
const { tools, activeTools } = await this._getAuthorizedTools(ctx.tools, activeSkillName);
|
|
149
148
|
return {
|
|
149
|
+
system: await this.session.refreshSystemPrompt(),
|
|
150
150
|
model: this.getModel(this._toolContextForCurrentTurn),
|
|
151
151
|
messages: pruneMessages({
|
|
152
152
|
messages: ctx.messages,
|