🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
Chore: browser (#3042)
Puzhen Zhang49454aaa8b0e
diff --git a/camel/toolkits/hybrid_browser_toolkit/ws_wrapper.py b/camel/toolkits/hybrid_browser_toolkit/ws_wrapper.pyindex 266b09cef..bea5b6169 100644--- a/camel/toolkits/hybrid_browser_toolkit/ws_wrapper.py+++ b/camel/toolkits/hybrid_browser_toolkit/ws_wrapper.py@@ -507,9 +507,14 @@ class WebSocketBrowserWrapper:return ToolResult(text=response['text'], images=response['images'])def _ensure_ref_prefix(self, ref: str) -> str:- """Ensure ref has 'e' prefix."""- if ref and not ref.startswith('e'):+ """Ensure ref has proper prefix"""+ if not ref:+ return ref++ # If ref is purely numeric, add 'e' prefix for main frame+ if ref.isdigit():return f'e{ref}'+return refdef _process_refs_in_params(