@inkeep/agents-run-api 0.18.1 → 0.19.1

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.
@@ -75,7 +75,7 @@ async function getScopedHistory({
75
75
  let matchesAgent = true;
76
76
  let matchesTask = true;
77
77
  if (filters.subAgentId) {
78
- matchesAgent = msg.role === "agent" && msg.visibility === "user-facing" || msg.toAgentId === filters.subAgentId || msg.fromAgentId === filters.subAgentId;
78
+ matchesAgent = msg.role === "agent" && msg.visibility === "user-facing" || msg.toSubAgentId === filters.subAgentId || msg.fromSubAgentId === filters.subAgentId;
79
79
  }
80
80
  if (filters.taskId) {
81
81
  matchesTask = msg.taskId === filters.taskId || msg.a2aTaskId === filters.taskId;
@@ -150,12 +150,12 @@ async function getFormattedConversationHistory({
150
150
  if (msg.role === "user") {
151
151
  roleLabel = "user";
152
152
  } else if (msg.role === "agent" && (msg.messageType === "a2a-request" || msg.messageType === "a2a-response")) {
153
- const fromAgent = msg.fromAgentId || msg.fromExternalAgentId || "unknown";
154
- const toAgent = msg.toAgentId || msg.toExternalAgentId || "unknown";
155
- roleLabel = `${fromAgent} to ${toAgent}`;
153
+ const fromSubAgent = msg.fromSubAgentId || msg.fromExternalAgentId || "unknown";
154
+ const toSubAgent = msg.toSubAgentId || msg.toExternalAgentId || "unknown";
155
+ roleLabel = `${fromSubAgent} to ${toSubAgent}`;
156
156
  } else if (msg.role === "agent" && msg.messageType === "chat") {
157
- const fromAgent = msg.fromAgentId || "unknown";
158
- roleLabel = `${fromAgent} to User`;
157
+ const fromSubAgent = msg.fromSubAgentId || "unknown";
158
+ roleLabel = `${fromSubAgent} to User`;
159
159
  } else {
160
160
  roleLabel = msg.role || "system";
161
161
  }
@@ -1 +1 @@
1
- export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-DQQRVSJS.js';
1
+ export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-QRT6EIUX.js';