Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stagehand/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .agent import Agent
from .client import Stagehand
from .config import StagehandConfig, default_config
from .handlers.observe_handler import ObserveHandler
from .main import Stagehand
from .metrics import StagehandFunctionName, StagehandMetrics
from .page import StagehandPage
from .schemas import (
Expand Down
9 changes: 1 addition & 8 deletions stagehand/client.py → stagehand/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,10 @@

class Stagehand:
"""
Python client for interacting with a running Stagehand server and Browserbase remote headless browser.

Now supports automatically creating a new session if no session_id is provided.
You can provide a configuration via the 'config' parameter, or use individual parameters to override
the default configuration values.
Main Stagehand class.
"""

# Dictionary to store one lock per session_id
_session_locks = {}

# Flag to track if cleanup has been called
_cleanup_called = False

def __init__(
Expand Down