Fm/update stagehand (#387)

* Update tool specifications for

* Update stagehand dependency from stagehand-py to stagehand v0.4.1

* uv add

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Filip Michalsky
2025-07-22 10:05:29 -04:00
committed by GitHub
parent 2c38d1d448
commit c3e87fc31f

View File

@@ -16,7 +16,7 @@ try:
ExtractOptions,
ObserveOptions,
)
from stagehand.utils import configure_logging
from stagehand import configure_logging
_HAS_STAGEHAND = True
except ImportError:
# Define type stubs for when stagehand is not installed
@@ -249,7 +249,7 @@ class StagehandTool(BaseTool):
# Check if stagehand is available, but only if we're not in testing mode
if not self._testing and not _HAS_STAGEHAND:
raise ImportError(
"`stagehand-py` package not found, please run `uv add stagehand-py`"
"`stagehand` package not found, please run `uv add stagehand`"
)
if not self.api_key: