refactor: simplify AI action execution and improve sub-action handling

This commit is contained in:
lilong.129
2025-06-08 19:16:37 +08:00
parent bdf64a08aa
commit b9de3cf7a3
8 changed files with 124 additions and 184 deletions
+11
View File
@@ -76,6 +76,17 @@ func (s *DriverSession) Reset() {
s.screenResults = make([]*ScreenResult, 0)
}
func (s *DriverSession) GetData(withReset bool) SessionData {
sessionData := SessionData{
Requests: s.History(),
ScreenResults: s.screenResults,
}
if withReset {
s.Reset()
}
return sessionData
}
func (s *DriverSession) SetBaseURL(baseUrl string) {
s.baseUrl = baseUrl
}