refactor: move cached screenResults from XTDriver to DriverSession

This commit is contained in:
lilong.129
2025-05-06 00:10:54 +08:00
parent ce93df1f23
commit 379fea9008
5 changed files with 22 additions and 15 deletions
+1 -5
View File
@@ -84,8 +84,7 @@ type IDriver interface {
func NewXTDriver(driver IDriver, opts ...option.AIServiceOption) (*XTDriver, error) {
driverExt := &XTDriver{
IDriver: driver,
screenResults: make([]*ScreenResult, 0),
IDriver: driver,
}
services := option.NewAIServiceOptions(opts...)
@@ -114,7 +113,4 @@ type XTDriver struct {
IDriver
CVService ai.ICVService // OCR/CV
LLMService ai.ILLMService // LLM
// cache screenshot results
screenResults []*ScreenResult
}