@strayl/agent 0.1.4 → 0.1.6
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/agent.js +5 -0
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -13545,6 +13545,11 @@ async function runAgent(config) {
|
|
|
13545
13545
|
context.addUser(config.userMessage);
|
|
13546
13546
|
} else {
|
|
13547
13547
|
context.addSystem(systemPrompt);
|
|
13548
|
+
if (config.previousSummary) {
|
|
13549
|
+
context.addUser(`[Previous conversation summary]
|
|
13550
|
+
${config.previousSummary}`);
|
|
13551
|
+
context.addAssistant("I understand the previous conversation context. I'll continue from where we left off.");
|
|
13552
|
+
}
|
|
13548
13553
|
context.addUser(config.userMessage, config.images);
|
|
13549
13554
|
}
|
|
13550
13555
|
while (iteration < maxIterations) {
|