@ljoukov/llm 5.0.3 → 5.0.4
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 +1 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9966,7 +9966,6 @@ var spawnAgentInputSchema = import_zod4.z.object({
|
|
|
9966
9966
|
"When true, fork the current thread history into the new agent before sending the initial prompt. This must be used when you want the new agent to have exactly the same context as you."
|
|
9967
9967
|
),
|
|
9968
9968
|
instructions: import_zod4.z.string().nullish().describe("Optional extra instructions for this subagent instance."),
|
|
9969
|
-
model: import_zod4.z.string().nullish().describe("Optional model override. Must be one of this package's supported text model ids."),
|
|
9970
9969
|
max_steps: import_zod4.z.number().int().min(1).max(MAX_SUBAGENT_MAX_STEPS).nullish().describe("Optional max step budget for each subagent run.")
|
|
9971
9970
|
});
|
|
9972
9971
|
var sendInputSchema = import_zod4.z.object({
|
|
@@ -10109,13 +10108,7 @@ function createSubagentToolController(options) {
|
|
|
10109
10108
|
`Subagent depth limit reached (${options.config.maxDepth}). Cannot spawn at depth ${childDepth}.`
|
|
10110
10109
|
);
|
|
10111
10110
|
}
|
|
10112
|
-
|
|
10113
|
-
if (input.model) {
|
|
10114
|
-
if (!isLlmTextModelId(input.model)) {
|
|
10115
|
-
throw new Error(`Unsupported subagent model id: ${input.model}`);
|
|
10116
|
-
}
|
|
10117
|
-
model = input.model;
|
|
10118
|
-
}
|
|
10111
|
+
const model = options.config.model ?? options.parentModel;
|
|
10119
10112
|
const id = `agent_${(0, import_node_crypto3.randomBytes)(6).toString("hex")}`;
|
|
10120
10113
|
const now = Date.now();
|
|
10121
10114
|
const { roleName, roleInstructions } = resolveAgentType(input.agent_type);
|