feat: add stepDelay config option

Add configurable delay between agent steps.
Previously hardcoded to 0.4s.

Changes:
- Add stepDelay?: number to AgentConfig
- Use config value with 0.4s default
This commit is contained in:
linked-danis
2026-03-12 14:05:59 +01:00
parent e08e9e0cff
commit 734ec47d0b
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ export class PageAgentCore extends EventTarget {
return result
}
await waitFor(0.4) // @TODO: configurable
await waitFor(this.config.stepDelay ?? 0.4)
}
}
+6
View File
@@ -152,6 +152,12 @@ export interface AgentConfig extends LLMConfig {
* @experimental Use with caution - incorrect prompts may break agent behavior.
*/
customSystemPrompt?: string
/**
* Delay between steps in seconds.
* @default 0.4
*/
stepDelay?: number
}
/**