feat: improve date format and error message for llm

This commit is contained in:
Simon
2026-01-28 15:24:08 +08:00
parent f6394a04b1
commit 501411b254
2 changed files with 2 additions and 2 deletions

View File

@@ -515,7 +515,7 @@ export class PageAgentCore extends EventTarget {
</user_request>
<step_info>
Step ${stepCount + 1} of ${this.config.maxSteps} max possible steps
Current date and time: ${new Date().toISOString()}
Current date and time: ${new Date().toLocaleString()}
</step_info>
</agent_state>
`

View File

@@ -227,7 +227,7 @@ export class PageController extends EventTarget {
*/
private assertIndexed(): void {
if (!this.isIndexed) {
throw new Error('DOM tree not indexed. Can not perform actions on elements.')
throw new Error('DOM tree not indexed yet. Can not perform actions on elements.')
}
}