refactor: split ai related logic to pkg/ai

This commit is contained in:
lilong.129
2025-02-08 10:38:48 +08:00
parent 06d7a7e721
commit 5e45eb7836
32 changed files with 798 additions and 487 deletions

View File

@@ -12,6 +12,7 @@ import (
"time"
"github.com/httprunner/httprunner/v5/internal/json"
"github.com/httprunner/httprunner/v5/pkg/ai"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
@@ -24,7 +25,7 @@ type Session struct {
// cache to avoid repeated query
scale float64
windowSize Size
windowSize ai.Size
// cache uia2/wda request and response
requests []*DriverRequests