@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.
- package/dist/{chunk-DQQRVSJS.js → chunk-QRT6EIUX.js} +6 -6
- package/dist/{conversations-JSORLLWS.js → conversations-OFIM2WLJ.js} +1 -1
- package/dist/index.cjs +582 -548
- package/dist/index.js +578 -541
- package/package.json +4 -3
- package/templates/v1/phase1/system-prompt.xml +1 -1
- package/templates/v1/shared/artifact-retrieval-guidance.xml +1 -1
|
@@ -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.
|
|
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
|
|
154
|
-
const
|
|
155
|
-
roleLabel = `${
|
|
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
|
|
158
|
-
roleLabel = `${
|
|
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-
|
|
1
|
+
export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-QRT6EIUX.js';
|