@elizaos/plugin-bootstrap 1.6.2-alpha.5 → 1.6.2-alpha.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/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7428,13 +7428,14 @@ ${response}`);
|
|
|
7428
7428
|
}
|
|
7429
7429
|
let responseContent = null;
|
|
7430
7430
|
let responseMessages = [];
|
|
7431
|
+
const keepResp = parseBooleanFromText2(runtime.getSetting("BOOTSTRAP_KEEP_RESP"));
|
|
7431
7432
|
if (shouldRespondToMessage) {
|
|
7432
7433
|
const result = useMultiStep ? await runMultiStepCore({ runtime, message, state, callback }) : await runSingleShotCore({ runtime, message, state });
|
|
7433
7434
|
responseContent = result.responseContent;
|
|
7434
7435
|
responseMessages = result.responseMessages;
|
|
7435
7436
|
state = result.state;
|
|
7436
7437
|
const currentResponseId = agentResponses.get(message.roomId);
|
|
7437
|
-
if (currentResponseId !== responseId) {
|
|
7438
|
+
if (currentResponseId !== responseId && !keepResp) {
|
|
7438
7439
|
runtime.logger.info(`Response discarded - newer message being processed for agent: ${runtime.agentId}, room: ${message.roomId}`);
|
|
7439
7440
|
return;
|
|
7440
7441
|
}
|
|
@@ -7467,7 +7468,6 @@ ${response}`);
|
|
|
7467
7468
|
} else {
|
|
7468
7469
|
runtime.logger.debug("[Bootstrap] Agent decided not to respond (shouldRespond is false).");
|
|
7469
7470
|
const currentResponseId = agentResponses.get(message.roomId);
|
|
7470
|
-
const keepResp = parseBooleanFromText2(runtime.getSetting("BOOTSTRAP_KEEP_RESP"));
|
|
7471
7471
|
if (currentResponseId !== responseId && !keepResp) {
|
|
7472
7472
|
runtime.logger.info(`Ignore response discarded - newer message being processed for agent: ${runtime.agentId}, room: ${message.roomId}`);
|
|
7473
7473
|
await runtime.emitEvent(EventType2.RUN_ENDED, {
|
|
@@ -8443,5 +8443,5 @@ export {
|
|
|
8443
8443
|
actionStateProvider
|
|
8444
8444
|
};
|
|
8445
8445
|
|
|
8446
|
-
//# debugId=
|
|
8446
|
+
//# debugId=624B04108437664964756E2164756E21
|
|
8447
8447
|
//# sourceMappingURL=index.js.map
|