Skip to content

Commit dee43c3

Browse files
committed
address comments
1 parent 4de1858 commit dee43c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stagehand/api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from importlib.metadata import PackageNotFoundError, version
44
from typing import Any
55

6+
from .metrics import StagehandMetrics
67
from .utils import convert_dict_keys_to_camel_case
78

89
__all__ = ["_create_session", "_execute", "_get_replay_metrics"]
@@ -181,10 +182,8 @@ async def _execute(self, method: str, payload: dict[str, Any]) -> Any:
181182

182183
async def _get_replay_metrics(self):
183184
"""
184-
Fetch replay metrics from the API endpoint /sessions/:id/replay and parse them
185-
into StagehandMetrics format.
185+
Fetch replay metrics from the API and parse them into StagehandMetrics.
186186
"""
187-
from .metrics import StagehandMetrics
188187

189188
if not self.session_id:
190189
raise ValueError("session_id is required to fetch metrics.")

0 commit comments

Comments
 (0)