The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Permit unicode outputs when dumping json in GetElementsTool (#4276)
Wuxian Zhang6f386628c2fc
diff --git a/langchain/tools/playwright/get_elements.py b/langchain/tools/playwright/get_elements.pyindex a5ad232f24..27e282149a 100644--- a/langchain/tools/playwright/get_elements.py+++ b/langchain/tools/playwright/get_elements.py@@ -89,7 +89,7 @@ class GetElementsTool(BaseBrowserTool):page = get_current_page(self.sync_browser)# Navigate to the desired webpage before using this toolresults = _get_elements(page, selector, attributes)- return json.dumps(results)+ return json.dumps(results, ensure_ascii=False)async def _arun(self,@@ -103,4 +103,4 @@ class GetElementsTool(BaseBrowserTool):page = await aget_current_page(self.async_browser)# Navigate to the desired webpage before using this toolresults = await _aget_elements(page, selector, attributes)- return json.dumps(results)+ return json.dumps(results, ensure_ascii=False)