@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/index.js
CHANGED
|
@@ -25700,7 +25700,10 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
|
|
|
25700
25700
|
const visibleSideSubagents = sideSubagentDescriptors.filter(
|
|
25701
25701
|
(entry) => !entry.hidden
|
|
25702
25702
|
);
|
|
25703
|
-
const childrenRegistry =
|
|
25703
|
+
const childrenRegistry = _FlowEngine.filterModelVisibleSubagents(
|
|
25704
|
+
await this.getSubagentRegistry(state),
|
|
25705
|
+
state.agentConfig
|
|
25706
|
+
);
|
|
25704
25707
|
if (toolNames.length > 0) {
|
|
25705
25708
|
const providerToolNames = [];
|
|
25706
25709
|
const regularToolNames = [];
|
|
@@ -25842,7 +25845,7 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
|
|
|
25842
25845
|
if (visibleSideSubagents.length > 0 && !tools.some((tool) => tool.function.name === "subagent_create")) {
|
|
25843
25846
|
tools.push(this.buildSubagentCreateTool(visibleSideSubagents));
|
|
25844
25847
|
}
|
|
25845
|
-
if ((
|
|
25848
|
+
if ((visibleSideSubagents.length > 0 || childrenRegistry.length > 0) && !tools.some((tool) => tool.function.name === "subagents")) {
|
|
25846
25849
|
tools.push({
|
|
25847
25850
|
type: "function",
|
|
25848
25851
|
function: {
|