fix cyclical import
This commit is contained in:
parent
6182a3ffa0
commit
fc5e22f5ad
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { services } from "../services/index.js";
|
||||
import { executeSubAgent } from "../subagent/executor.js";
|
||||
import {
|
||||
generateSubagentToolDescription,
|
||||
getSubagent,
|
||||
|
|
@ -95,6 +94,8 @@ export const subagentTool: GetTool = (params) => ({
|
|||
// Create abort controller for child execution
|
||||
const abortController = new AbortController();
|
||||
|
||||
const { executeSubAgent } = await import("../subagent/executor.js"); // prevent cyclical import
|
||||
|
||||
// Execute subagent with output streaming
|
||||
const result = await executeSubAgent({
|
||||
agent,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue