This commit is contained in:
seb
2026-10-12 18:01:21 +02:00
parent 358a023b10
commit 713c31a21e
9 changed files with 511 additions and 44 deletions

View File

@@ -28,6 +28,7 @@ import { createSearchArticlesTool } from '../tools/search-articles.js';
import { createEanChecksumTool } from '../tools/ean-checksum.js';
import { createNetGrossCalcTool } from '../tools/net-gross-calc.js';
import { createSetUserRouteTool } from '../tools/set-user-route.js';
import { createSubagentTool } from '../tools/subagent.js';
import { resolveOpenRouterKey, resolveDefaultModel, resolveModelReasoning, RETIRED_MODELS, hasConfiguredOpenRouterKey } from '../tools/llm-key.js';
// #region Constants
@@ -757,6 +758,13 @@ export class ConversationManager {
this.broadcast('route', { route });
},
}),
createSubagentTool({
googleAuthId,
companyId: this.companyId,
conversationId: this.conversationId,
parentModel: model,
depth: 0,
}),
],
});