Skip to content

Commit 4cdc20a

Browse files
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>
1 parent 18f483c commit 4cdc20a

File tree

3 files changed

+37
-12
lines changed

3 files changed

+37
-12
lines changed

crewai_tools/tools/stagehand_tool/stagehand_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
ExtractOptions,
1717
ObserveOptions,
1818
)
19-
from stagehand.utils import configure_logging
19+
from stagehand import configure_logging
2020
_HAS_STAGEHAND = True
2121
except ImportError:
2222
# Define type stubs for when stagehand is not installed
@@ -249,7 +249,7 @@ def _check_required_credentials(self):
249249
# Check if stagehand is available, but only if we're not in testing mode
250250
if not self._testing and not _HAS_STAGEHAND:
251251
raise ImportError(
252-
"`stagehand-py` package not found, please run `uv add stagehand-py`"
252+
"`stagehand` package not found, please run `uv add stagehand`"
253253
)
254254

255255
if not self.api_key:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies = [
2121
"click>=8.1.8",
2222
"lancedb>=0.5.4",
2323
"tiktoken>=0.8.0",
24+
"stagehand>=0.4.1",
2425
]
2526

2627
[project.urls]
@@ -106,7 +107,7 @@ mcp = [
106107
"mcpadapt>=0.1.9",
107108
]
108109
stagehand = [
109-
"stagehand-py>=0.3.6",
110+
"stagehand>=0.4.1",
110111
]
111112
github = [
112113
"gitpython==3.1.38",

uv.lock

Lines changed: 33 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)