@elizaos/plugin-bootstrap 1.0.0-beta.71 → 1.0.0-beta.73
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 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5802,6 +5802,8 @@ ${response}`
|
|
|
5802
5802
|
}
|
|
5803
5803
|
if (responseContent && message.id) {
|
|
5804
5804
|
responseContent.inReplyTo = createUniqueUuid4(runtime, message.id);
|
|
5805
|
+
const isSimple = responseContent.actions?.length === 1 && responseContent.actions[0].toUpperCase() === "REPLY" && (!responseContent.providers || responseContent.providers.length === 0);
|
|
5806
|
+
responseContent.simple = isSimple;
|
|
5805
5807
|
const responseMesssage = {
|
|
5806
5808
|
id: asUUID(v4_default()),
|
|
5807
5809
|
entityId: runtime.agentId,
|
|
@@ -5819,7 +5821,7 @@ ${response}`
|
|
|
5819
5821
|
if (responseContent?.providers?.length && responseContent?.providers?.length > 0) {
|
|
5820
5822
|
state = await runtime.composeState(message, responseContent?.providers || []);
|
|
5821
5823
|
}
|
|
5822
|
-
if (responseContent && responseContent.simple && responseContent.text
|
|
5824
|
+
if (responseContent && responseContent.simple && responseContent.text) {
|
|
5823
5825
|
await callback(responseContent);
|
|
5824
5826
|
} else {
|
|
5825
5827
|
await runtime.processActions(message, responseMessages, state, callback);
|