Skip to content

Commit 4986c27

Browse files
authored
move client into main (#85)
* move client into main * formatting
1 parent 567e676 commit 4986c27

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

stagehand/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from .agent import Agent
2-
from .client import Stagehand
32
from .config import StagehandConfig, default_config
43
from .handlers.observe_handler import ObserveHandler
4+
from .main import Stagehand
55
from .metrics import StagehandFunctionName, StagehandMetrics
66
from .page import StagehandPage
77
from .schemas import (
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,10 @@
3939

4040
class Stagehand:
4141
"""
42-
Python client for interacting with a running Stagehand server and Browserbase remote headless browser.
43-
44-
Now supports automatically creating a new session if no session_id is provided.
45-
You can provide a configuration via the 'config' parameter, or use individual parameters to override
46-
the default configuration values.
42+
Main Stagehand class.
4743
"""
4844

49-
# Dictionary to store one lock per session_id
5045
_session_locks = {}
51-
52-
# Flag to track if cleanup has been called
5346
_cleanup_called = False
5447

5548
def __init__(

0 commit comments

Comments
 (0)