feat: change maxSteps to 40

This commit is contained in:
Simon
2026-03-05 19:26:56 +08:00
parent 1cd8a8de60
commit 598b144d06
3 changed files with 3 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ export class PageAgentCore extends EventTarget {
constructor(config: PageAgentCoreConfig) {
super()
this.config = { ...config, maxSteps: config.maxSteps || 20 }
this.config = { ...config, maxSteps: config.maxSteps || 40 }
this.#llm = new LLM(this.config)
this.tools = new Map(tools)

View File

@@ -12,7 +12,7 @@ export interface AgentConfig extends LLMConfig {
/**
* Maximum number of steps the agent can take per task.
* @default 20
* @default 40
*/
maxSteps?: number