@inkeep/agents-run-api 0.30.2 → 0.30.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.cjs +24 -10
- package/dist/index.js +24 -10
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4729,7 +4729,8 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
|
|
|
4729
4729
|
"agent_session.id": this.sessionId,
|
|
4730
4730
|
"artifact.id": artifactData.artifactId,
|
|
4731
4731
|
"artifact.type": artifactData.artifactType || "unknown",
|
|
4732
|
-
"
|
|
4732
|
+
"subAgent.id": artifactData.subAgentId || "unknown",
|
|
4733
|
+
"subAgent.name": artifactData.subAgentName || "unknown",
|
|
4733
4734
|
"artifact.tool_call_id": artifactData.metadata?.toolCallId || "unknown",
|
|
4734
4735
|
"artifact.data": JSON.stringify(artifactData.data, null, 2),
|
|
4735
4736
|
"tenant.id": artifactData.tenantId || "unknown",
|
|
@@ -8424,7 +8425,8 @@ var Agent = class {
|
|
|
8424
8425
|
"conversation.id": this.conversationId,
|
|
8425
8426
|
"tool.purpose": toolDefinition.description || "No description provided",
|
|
8426
8427
|
"ai.toolType": toolType || "unknown",
|
|
8427
|
-
"
|
|
8428
|
+
"subAgent.name": this.config.name || "unknown",
|
|
8429
|
+
"subAgent.id": this.config.id || "unknown",
|
|
8428
8430
|
"agent.id": this.config.agentId || "unknown"
|
|
8429
8431
|
});
|
|
8430
8432
|
}
|
|
@@ -8757,7 +8759,8 @@ var Agent = class {
|
|
|
8757
8759
|
originalToolName: tool3.name
|
|
8758
8760
|
}),
|
|
8759
8761
|
"ai.toolType": "mcp",
|
|
8760
|
-
"
|
|
8762
|
+
"subAgent.name": this.config.name || "unknown",
|
|
8763
|
+
"subAgent.id": this.config.id || "unknown",
|
|
8761
8764
|
"conversation.id": this.conversationId || "unknown",
|
|
8762
8765
|
"agent.id": this.config.agentId || "unknown",
|
|
8763
8766
|
"tenant.id": this.config.tenantId || "unknown",
|
|
@@ -9461,8 +9464,8 @@ var Agent = class {
|
|
|
9461
9464
|
"agent.generate",
|
|
9462
9465
|
{
|
|
9463
9466
|
attributes: {
|
|
9464
|
-
"
|
|
9465
|
-
"
|
|
9467
|
+
"subAgent.id": this.config.id,
|
|
9468
|
+
"subAgent.name": this.config.name
|
|
9466
9469
|
}
|
|
9467
9470
|
},
|
|
9468
9471
|
async (span) => {
|
|
@@ -9620,7 +9623,11 @@ var Agent = class {
|
|
|
9620
9623
|
isEnabled: true,
|
|
9621
9624
|
functionId: this.config.id,
|
|
9622
9625
|
recordInputs: true,
|
|
9623
|
-
recordOutputs: true
|
|
9626
|
+
recordOutputs: true,
|
|
9627
|
+
metadata: {
|
|
9628
|
+
subAgentId: this.config.id,
|
|
9629
|
+
subAgentName: this.config.name
|
|
9630
|
+
}
|
|
9624
9631
|
},
|
|
9625
9632
|
abortSignal: AbortSignal.timeout(timeoutMs)
|
|
9626
9633
|
});
|
|
@@ -9744,7 +9751,9 @@ var Agent = class {
|
|
|
9744
9751
|
recordInputs: true,
|
|
9745
9752
|
recordOutputs: true,
|
|
9746
9753
|
metadata: {
|
|
9747
|
-
phase: "planning"
|
|
9754
|
+
phase: "planning",
|
|
9755
|
+
subAgentId: this.config.id,
|
|
9756
|
+
subAgentName: this.config.name
|
|
9748
9757
|
}
|
|
9749
9758
|
},
|
|
9750
9759
|
abortSignal: AbortSignal.timeout(timeoutMs)
|
|
@@ -9884,7 +9893,9 @@ ${output}${structureHintsFormatted}`;
|
|
|
9884
9893
|
recordInputs: true,
|
|
9885
9894
|
recordOutputs: true,
|
|
9886
9895
|
metadata: {
|
|
9887
|
-
phase: "structured_generation"
|
|
9896
|
+
phase: "structured_generation",
|
|
9897
|
+
subAgentId: this.config.id,
|
|
9898
|
+
subAgentName: this.config.name
|
|
9888
9899
|
}
|
|
9889
9900
|
},
|
|
9890
9901
|
abortSignal: AbortSignal.timeout(phase2TimeoutMs)
|
|
@@ -9953,7 +9964,9 @@ ${output}${structureHintsFormatted}`;
|
|
|
9953
9964
|
recordInputs: true,
|
|
9954
9965
|
recordOutputs: true,
|
|
9955
9966
|
metadata: {
|
|
9956
|
-
phase: "structured_generation"
|
|
9967
|
+
phase: "structured_generation",
|
|
9968
|
+
subAgentId: this.config.id,
|
|
9969
|
+
subAgentName: this.config.name
|
|
9957
9970
|
}
|
|
9958
9971
|
},
|
|
9959
9972
|
abortSignal: AbortSignal.timeout(phase2TimeoutMs)
|
|
@@ -11782,7 +11795,8 @@ var ExecutionHandler = class {
|
|
|
11782
11795
|
span.setAttributes({
|
|
11783
11796
|
"ai.response.content": textContent || "No response content",
|
|
11784
11797
|
"ai.response.timestamp": (/* @__PURE__ */ new Date()).toISOString(),
|
|
11785
|
-
"
|
|
11798
|
+
"subAgent.name": agentConfig?.subAgents[currentAgentId]?.name,
|
|
11799
|
+
"subAgent.id": currentAgentId
|
|
11786
11800
|
});
|
|
11787
11801
|
await agentsCore.createMessage(dbClient_default)({
|
|
11788
11802
|
id: agentsCore.generateId(),
|
package/dist/index.js
CHANGED
|
@@ -3281,7 +3281,8 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
|
|
|
3281
3281
|
"agent_session.id": this.sessionId,
|
|
3282
3282
|
"artifact.id": artifactData.artifactId,
|
|
3283
3283
|
"artifact.type": artifactData.artifactType || "unknown",
|
|
3284
|
-
"
|
|
3284
|
+
"subAgent.id": artifactData.subAgentId || "unknown",
|
|
3285
|
+
"subAgent.name": artifactData.subAgentName || "unknown",
|
|
3285
3286
|
"artifact.tool_call_id": artifactData.metadata?.toolCallId || "unknown",
|
|
3286
3287
|
"artifact.data": JSON.stringify(artifactData.data, null, 2),
|
|
3287
3288
|
"tenant.id": artifactData.tenantId || "unknown",
|
|
@@ -6951,7 +6952,8 @@ var Agent = class {
|
|
|
6951
6952
|
"conversation.id": this.conversationId,
|
|
6952
6953
|
"tool.purpose": toolDefinition.description || "No description provided",
|
|
6953
6954
|
"ai.toolType": toolType || "unknown",
|
|
6954
|
-
"
|
|
6955
|
+
"subAgent.name": this.config.name || "unknown",
|
|
6956
|
+
"subAgent.id": this.config.id || "unknown",
|
|
6955
6957
|
"agent.id": this.config.agentId || "unknown"
|
|
6956
6958
|
});
|
|
6957
6959
|
}
|
|
@@ -7284,7 +7286,8 @@ var Agent = class {
|
|
|
7284
7286
|
originalToolName: tool3.name
|
|
7285
7287
|
}),
|
|
7286
7288
|
"ai.toolType": "mcp",
|
|
7287
|
-
"
|
|
7289
|
+
"subAgent.name": this.config.name || "unknown",
|
|
7290
|
+
"subAgent.id": this.config.id || "unknown",
|
|
7288
7291
|
"conversation.id": this.conversationId || "unknown",
|
|
7289
7292
|
"agent.id": this.config.agentId || "unknown",
|
|
7290
7293
|
"tenant.id": this.config.tenantId || "unknown",
|
|
@@ -7988,8 +7991,8 @@ var Agent = class {
|
|
|
7988
7991
|
"agent.generate",
|
|
7989
7992
|
{
|
|
7990
7993
|
attributes: {
|
|
7991
|
-
"
|
|
7992
|
-
"
|
|
7994
|
+
"subAgent.id": this.config.id,
|
|
7995
|
+
"subAgent.name": this.config.name
|
|
7993
7996
|
}
|
|
7994
7997
|
},
|
|
7995
7998
|
async (span) => {
|
|
@@ -8147,7 +8150,11 @@ var Agent = class {
|
|
|
8147
8150
|
isEnabled: true,
|
|
8148
8151
|
functionId: this.config.id,
|
|
8149
8152
|
recordInputs: true,
|
|
8150
|
-
recordOutputs: true
|
|
8153
|
+
recordOutputs: true,
|
|
8154
|
+
metadata: {
|
|
8155
|
+
subAgentId: this.config.id,
|
|
8156
|
+
subAgentName: this.config.name
|
|
8157
|
+
}
|
|
8151
8158
|
},
|
|
8152
8159
|
abortSignal: AbortSignal.timeout(timeoutMs)
|
|
8153
8160
|
});
|
|
@@ -8271,7 +8278,9 @@ var Agent = class {
|
|
|
8271
8278
|
recordInputs: true,
|
|
8272
8279
|
recordOutputs: true,
|
|
8273
8280
|
metadata: {
|
|
8274
|
-
phase: "planning"
|
|
8281
|
+
phase: "planning",
|
|
8282
|
+
subAgentId: this.config.id,
|
|
8283
|
+
subAgentName: this.config.name
|
|
8275
8284
|
}
|
|
8276
8285
|
},
|
|
8277
8286
|
abortSignal: AbortSignal.timeout(timeoutMs)
|
|
@@ -8411,7 +8420,9 @@ ${output}${structureHintsFormatted}`;
|
|
|
8411
8420
|
recordInputs: true,
|
|
8412
8421
|
recordOutputs: true,
|
|
8413
8422
|
metadata: {
|
|
8414
|
-
phase: "structured_generation"
|
|
8423
|
+
phase: "structured_generation",
|
|
8424
|
+
subAgentId: this.config.id,
|
|
8425
|
+
subAgentName: this.config.name
|
|
8415
8426
|
}
|
|
8416
8427
|
},
|
|
8417
8428
|
abortSignal: AbortSignal.timeout(phase2TimeoutMs)
|
|
@@ -8480,7 +8491,9 @@ ${output}${structureHintsFormatted}`;
|
|
|
8480
8491
|
recordInputs: true,
|
|
8481
8492
|
recordOutputs: true,
|
|
8482
8493
|
metadata: {
|
|
8483
|
-
phase: "structured_generation"
|
|
8494
|
+
phase: "structured_generation",
|
|
8495
|
+
subAgentId: this.config.id,
|
|
8496
|
+
subAgentName: this.config.name
|
|
8484
8497
|
}
|
|
8485
8498
|
},
|
|
8486
8499
|
abortSignal: AbortSignal.timeout(phase2TimeoutMs)
|
|
@@ -10294,7 +10307,8 @@ var ExecutionHandler = class {
|
|
|
10294
10307
|
span.setAttributes({
|
|
10295
10308
|
"ai.response.content": textContent || "No response content",
|
|
10296
10309
|
"ai.response.timestamp": (/* @__PURE__ */ new Date()).toISOString(),
|
|
10297
|
-
"
|
|
10310
|
+
"subAgent.name": agentConfig?.subAgents[currentAgentId]?.name,
|
|
10311
|
+
"subAgent.id": currentAgentId
|
|
10298
10312
|
});
|
|
10299
10313
|
await createMessage(dbClient_default)({
|
|
10300
10314
|
id: generateId(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.3",
|
|
4
4
|
"description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"traverse": "^0.6.11",
|
|
53
53
|
"ts-pattern": "^5.7.1",
|
|
54
54
|
"zod": "^4.1.11",
|
|
55
|
-
"@inkeep/agents-core": "^0.30.
|
|
55
|
+
"@inkeep/agents-core": "^0.30.3"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
58
|
"keytar": "^7.9.0"
|