feat: improve date format and error message for llm
This commit is contained in:
@@ -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>
|
||||
`
|
||||
|
||||
@@ -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.')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user