feat(ext): expose more config

This commit is contained in:
Simon
2026-03-05 20:34:55 +08:00
parent 19b03b83ea
commit 7a97de2a37
3 changed files with 130 additions and 35 deletions

View File

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