Skip to content

Commit ca22d08

Browse files
loosen rich dep and update example render (#142)
* loosen rich dep and update example render * example run fix by moving configure_logging * revert version bump * remove panel function * update
1 parent 5e4c3eb commit ca22d08

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

examples/agent_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def main():
100100
# Add a fancy header
101101
console.print(
102102
"\n",
103-
Panel.fit(
103+
Panel(
104104
"[light_gray]Stagehand 🤘 Agent Example[/]",
105105
border_style="green",
106106
padding=(1, 10),

examples/example.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
from rich.panel import Panel
88
from rich.theme import Theme
99

10-
from stagehand import Stagehand, StagehandConfig
11-
from stagehand.utils import configure_logging
10+
from stagehand import Stagehand, StagehandConfig, configure_logging
1211

1312
# Configure logging with cleaner format
1413
configure_logging(
@@ -35,7 +34,7 @@
3534
load_dotenv()
3635

3736
console.print(
38-
Panel.fit(
37+
Panel(
3938
"[yellow]Logging Levels:[/]\n"
4039
"[white]- Set [bold]verbose=0[/] for errors (ERROR)[/]\n"
4140
"[white]- Set [bold]verbose=1[/] for minimal logs (INFO)[/]\n"
@@ -127,7 +126,7 @@ async def main():
127126
# Add a fancy header
128127
console.print(
129128
"\n",
130-
Panel.fit(
129+
Panel(
131130
"[light_gray]Stagehand 🤘 Python Example[/]",
132131
border_style="green",
133132
padding=(1, 10),

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "Python SDK for Stagehand"
99
readme = "README.md"
1010
classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent",]
1111
requires-python = ">=3.9"
12-
dependencies = [ "httpx>=0.24.0", "python-dotenv>=1.0.0", "pydantic>=1.10.0", "playwright>=1.42.1", "requests>=2.31.0", "browserbase>=1.4.0", "rich>=14.0.0", "openai>=1.83.0", "anthropic>=0.51.0", "litellm>=1.72.0",]
12+
dependencies = [ "httpx>=0.24.0", "python-dotenv>=1.0.0", "pydantic>=1.10.0", "playwright>=1.42.1", "requests>=2.31.0", "browserbase>=1.4.0", "rich>=13.7.0", "openai>=1.83.0", "anthropic>=0.51.0", "litellm>=1.72.0",]
1313
[[project.authors]]
1414
name = "Browserbase, Inc."
1515
email = "support@browserbase.com"

0 commit comments

Comments
 (0)