@standardagents/builder 0.41.18 → 0.41.20
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/built-in-routes.js +8 -5
- package/dist/built-in-routes.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +5 -2
- package/dist/runtime.js.map +1 -1
- package/package.json +5 -5
package/dist/runtime.js
CHANGED
|
@@ -25693,7 +25693,10 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
|
|
|
25693
25693
|
const visibleSideSubagents = sideSubagentDescriptors.filter(
|
|
25694
25694
|
(entry) => !entry.hidden
|
|
25695
25695
|
);
|
|
25696
|
-
const childrenRegistry =
|
|
25696
|
+
const childrenRegistry = _FlowEngine.filterModelVisibleSubagents(
|
|
25697
|
+
await this.getSubagentRegistry(state),
|
|
25698
|
+
state.agentConfig
|
|
25699
|
+
);
|
|
25697
25700
|
if (toolNames.length > 0) {
|
|
25698
25701
|
const providerToolNames = [];
|
|
25699
25702
|
const regularToolNames = [];
|
|
@@ -25835,7 +25838,7 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
|
|
|
25835
25838
|
if (visibleSideSubagents.length > 0 && !tools.some((tool) => tool.function.name === "subagent_create")) {
|
|
25836
25839
|
tools.push(this.buildSubagentCreateTool(visibleSideSubagents));
|
|
25837
25840
|
}
|
|
25838
|
-
if ((
|
|
25841
|
+
if ((visibleSideSubagents.length > 0 || childrenRegistry.length > 0) && !tools.some((tool) => tool.function.name === "subagents")) {
|
|
25839
25842
|
tools.push({
|
|
25840
25843
|
type: "function",
|
|
25841
25844
|
function: {
|