@mozaik-ai/core 4.0.2 → 4.0.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/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -852,7 +852,10 @@ var EventPublisherLoopVisitor = class {
|
|
|
852
852
|
this.publish("interception.finished", transition);
|
|
853
853
|
}
|
|
854
854
|
publish(type, payload) {
|
|
855
|
-
const event = new SemanticEvent(type, this.agentId, /* @__PURE__ */ new Date(),
|
|
855
|
+
const event = new SemanticEvent(type, this.agentId, /* @__PURE__ */ new Date(), {
|
|
856
|
+
...payload,
|
|
857
|
+
loopId: this.loopId
|
|
858
|
+
});
|
|
856
859
|
this.runtime.publish(event);
|
|
857
860
|
if (this.cloud.enabled) {
|
|
858
861
|
const participant = this.runtime.getParticipant(this.agentId);
|
|
@@ -864,7 +867,7 @@ var EventPublisherLoopVisitor = class {
|
|
|
864
867
|
...payload,
|
|
865
868
|
loopId: this.loopId,
|
|
866
869
|
agent: {
|
|
867
|
-
|
|
870
|
+
manifest: agent.getManifest(),
|
|
868
871
|
developerMessage: agent.getDeveloperMessage(),
|
|
869
872
|
tools: agent.getTools(),
|
|
870
873
|
memory: agent.getMemory().getContext().getItems()
|