Skip to main content

_create_memory_aware_error

def _create_memory_aware_error(base_msg: str):

action_logger

def action_logger(func):
Decorator to add logging to action methods. Skips logging if already inside a high-level action to avoid logging internal calls.

high_level_action

def high_level_action(func):
Decorator for high-level actions that should suppress low-level logging. When a function is decorated with this, all low-level action_logger decorated functions called within it will skip logging. This decorator itself will log the high-level action.

WebSocketBrowserWrapper

class WebSocketBrowserWrapper:
Python wrapper for the TypeScript hybrid browser toolkit implementation using WebSocket.

init

def __init__(self, config: Optional[Dict[str, Any]] = None):
Initialize the wrapper. Parameters:
  • config: Configuration dictionary for the browser toolkit

_ensure_ref_prefix

def _ensure_ref_prefix(self, ref: str):
Ensure ref has proper prefix

_process_refs_in_params

def _process_refs_in_params(self, params: Dict[str, Any]):
Process parameters to ensure all refs have ‘e’ prefix.