23 lines
No EOL
429 B
Python
23 lines
No EOL
429 B
Python
from dataclasses import dataclass
|
|
from typing import Optional
|
|
|
|
|
|
@dataclass
|
|
class StepTrace:
|
|
step_no: int
|
|
timestamp: float
|
|
|
|
thought: Optional[str]
|
|
|
|
action_type: str
|
|
action_target: Optional[str]
|
|
action_value: Optional[str]
|
|
|
|
url_before: Optional[str]
|
|
url_after: Optional[str]
|
|
|
|
screenshot_before: Optional[str]
|
|
screenshot_after: Optional[str]
|
|
|
|
success: bool
|
|
error: Optional[str] = None |