@mozaik-ai/core 4.0.1 → 4.0.2
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 +19 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -822,10 +822,10 @@ var EventPublisherLoopVisitor = class {
|
|
|
822
822
|
this.cloud = createCloudClient();
|
|
823
823
|
}
|
|
824
824
|
visitContextUpdateStarted(input) {
|
|
825
|
-
this.publish("context_update.started",
|
|
825
|
+
this.publish("context_update.started", input);
|
|
826
826
|
}
|
|
827
827
|
visitContextUpdateCompleted(output) {
|
|
828
|
-
this.publish("context_update.completed",
|
|
828
|
+
this.publish("context_update.completed", output);
|
|
829
829
|
}
|
|
830
830
|
visitInferenceStarted(input) {
|
|
831
831
|
this.publish("inference.started", input);
|
|
@@ -855,7 +855,23 @@ var EventPublisherLoopVisitor = class {
|
|
|
855
855
|
const event = new SemanticEvent(type, this.agentId, /* @__PURE__ */ new Date(), payload);
|
|
856
856
|
this.runtime.publish(event);
|
|
857
857
|
if (this.cloud.enabled) {
|
|
858
|
-
this.
|
|
858
|
+
const participant = this.runtime.getParticipant(this.agentId);
|
|
859
|
+
const agent = participant;
|
|
860
|
+
if (agent) {
|
|
861
|
+
this.cloud.send({
|
|
862
|
+
...event,
|
|
863
|
+
payload: {
|
|
864
|
+
...payload,
|
|
865
|
+
loopId: this.loopId,
|
|
866
|
+
agent: {
|
|
867
|
+
manfifeset: agent.getManifest(),
|
|
868
|
+
developerMessage: agent.getDeveloperMessage(),
|
|
869
|
+
tools: agent.getTools(),
|
|
870
|
+
memory: agent.getMemory().getContext().getItems()
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
}
|
|
859
875
|
}
|
|
860
876
|
}
|
|
861
877
|
};
|