@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.js
CHANGED
|
@@ -9852,7 +9852,6 @@ var spawnAgentInputSchema = z4.object({
|
|
|
9852
9852
|
"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."
|
|
9853
9853
|
),
|
|
9854
9854
|
instructions: z4.string().nullish().describe("Optional extra instructions for this subagent instance."),
|
|
9855
|
-
model: z4.string().nullish().describe("Optional model override. Must be one of this package's supported text model ids."),
|
|
9856
9855
|
max_steps: z4.number().int().min(1).max(MAX_SUBAGENT_MAX_STEPS).nullish().describe("Optional max step budget for each subagent run.")
|
|
9857
9856
|
});
|
|
9858
9857
|
var sendInputSchema = z4.object({
|
|
@@ -9995,13 +9994,7 @@ function createSubagentToolController(options) {
|
|
|
9995
9994
|
`Subagent depth limit reached (${options.config.maxDepth}). Cannot spawn at depth ${childDepth}.`
|
|
9996
9995
|
);
|
|
9997
9996
|
}
|
|
9998
|
-
|
|
9999
|
-
if (input.model) {
|
|
10000
|
-
if (!isLlmTextModelId(input.model)) {
|
|
10001
|
-
throw new Error(`Unsupported subagent model id: ${input.model}`);
|
|
10002
|
-
}
|
|
10003
|
-
model = input.model;
|
|
10004
|
-
}
|
|
9997
|
+
const model = options.config.model ?? options.parentModel;
|
|
10005
9998
|
const id = `agent_${randomBytes2(6).toString("hex")}`;
|
|
10006
9999
|
const now = Date.now();
|
|
10007
10000
|
const { roleName, roleInstructions } = resolveAgentType(input.agent_type);
|