feat: enhance report generation with new AI query and validation display features

This commit is contained in:
lilong.129
2025-06-18 22:35:19 +08:00
parent a3f2ff37bc
commit e40db65287
4 changed files with 334 additions and 241 deletions

View File

@@ -164,7 +164,7 @@ func (dExt *XTDriver) PlanNextAction(ctx context.Context, prompt string, opts ..
// Step 1: Take screenshot
screenshotStartTime := time.Now()
// Use GetScreenResult to handle screenshot capture, save, and session tracking
screenResult, err := dExt.GetScreenResult(
screenResult, err := dExt.createScreenshotWithSession(
option.WithScreenShotFileName(builtin.GenNameWithTimestamp("%d_screenshot")),
)
screenshotElapsed := time.Since(screenshotStartTime).Milliseconds()