@inkeep/agents-sdk 0.32.2 → 0.33.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/index.cjs +2 -3
- package/dist/index.js +2 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -855,7 +855,8 @@ var Agent = class {
|
|
|
855
855
|
externalAgentId: d.externalAgent.getId(),
|
|
856
856
|
...d.headers && { headers: d.headers }
|
|
857
857
|
};
|
|
858
|
-
}
|
|
858
|
+
}
|
|
859
|
+
if (typeof d === "object" && "agent" in d) {
|
|
859
860
|
return {
|
|
860
861
|
agentId: d.agent.getId(),
|
|
861
862
|
...d.headers && { headers: d.headers }
|
|
@@ -932,8 +933,6 @@ var Agent = class {
|
|
|
932
933
|
subAgents: subAgentsObject,
|
|
933
934
|
externalAgents: externalAgentsObject,
|
|
934
935
|
contextConfig: this.contextConfig?.toObject(),
|
|
935
|
-
// Include tools used by subAgents at agent level (MCP tools only)
|
|
936
|
-
...Object.keys(agentToolsObject).length > 0 && { tools: agentToolsObject },
|
|
937
936
|
// Include function tools at agent level
|
|
938
937
|
...Object.keys(functionToolsObject).length > 0 && { functionTools: functionToolsObject },
|
|
939
938
|
...Object.keys(functionsObject).length > 0 && { functions: functionsObject },
|
package/dist/index.js
CHANGED
|
@@ -828,7 +828,8 @@ var Agent = class {
|
|
|
828
828
|
externalAgentId: d.externalAgent.getId(),
|
|
829
829
|
...d.headers && { headers: d.headers }
|
|
830
830
|
};
|
|
831
|
-
}
|
|
831
|
+
}
|
|
832
|
+
if (typeof d === "object" && "agent" in d) {
|
|
832
833
|
return {
|
|
833
834
|
agentId: d.agent.getId(),
|
|
834
835
|
...d.headers && { headers: d.headers }
|
|
@@ -905,8 +906,6 @@ var Agent = class {
|
|
|
905
906
|
subAgents: subAgentsObject,
|
|
906
907
|
externalAgents: externalAgentsObject,
|
|
907
908
|
contextConfig: this.contextConfig?.toObject(),
|
|
908
|
-
// Include tools used by subAgents at agent level (MCP tools only)
|
|
909
|
-
...Object.keys(agentToolsObject).length > 0 && { tools: agentToolsObject },
|
|
910
909
|
// Include function tools at agent level
|
|
911
910
|
...Object.keys(functionToolsObject).length > 0 && { functionTools: functionToolsObject },
|
|
912
911
|
...Object.keys(functionsObject).length > 0 && { functions: functionsObject },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Agents SDK for building and managing agents in the Inkeep Agent Framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"nanoid": "^5.1.5",
|
|
13
13
|
"typescript": "^5.3.3",
|
|
14
14
|
"zod": "^4.1.11",
|
|
15
|
-
"@inkeep/agents-core": "^0.
|
|
15
|
+
"@inkeep/agents-core": "^0.33.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/js-yaml": "^4.0.9",
|