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>
|
</user_request>
|
||||||
<step_info>
|
<step_info>
|
||||||
Step ${stepCount + 1} of ${this.config.maxSteps} max possible steps
|
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>
|
</step_info>
|
||||||
</agent_state>
|
</agent_state>
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ export class PageController extends EventTarget {
|
|||||||
*/
|
*/
|
||||||
private assertIndexed(): void {
|
private assertIndexed(): void {
|
||||||
if (!this.isIndexed) {
|
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