fix(agent): raise max iterations default from 10 to 200
The low default caused the agent to stop mid-task prematurely. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,7 @@ export class NativeAgent {
|
||||
this.session = config.session;
|
||||
this.toolRegistry = config.toolRegistry;
|
||||
this.toolExecutor = config.toolExecutor;
|
||||
this.maxIterations = config.maxIterations ?? 10;
|
||||
this.maxIterations = config.maxIterations ?? 200;
|
||||
this.onToolUse = config.onToolUse;
|
||||
this._toolPolicyContext = config.toolPolicyContext;
|
||||
this._attachmentCollector = config.attachmentCollector;
|
||||
|
||||
@@ -293,7 +293,7 @@ const agentsSchema = z.object({
|
||||
auto_escalate: z.boolean().default(false),
|
||||
max_delegation_depth: z.number().min(1).max(10).default(3),
|
||||
/** Maximum tool-loop iterations before the agent stops. */
|
||||
max_iterations: z.number().min(1).max(50).default(10),
|
||||
max_iterations: z.number().min(1).max(200).default(200),
|
||||
/** Truthfulness enforcement level: strict | standard | relaxed. */
|
||||
truthfulness_mode: truthfulnessModeSchema.default('standard'),
|
||||
/** Autonomy level for tool execution: conservative | standard | autonomous. */
|
||||
|
||||
Reference in New Issue
Block a user