Skip to content

The agent engineering platform.

Documentation: Update playwright documentation for langchain version >= 0.0.351 (#15260)

Abhishek Mishraf466b6aa4adb
diff --git a/docs/docs/integrations/toolkits/playwright.ipynb b/docs/docs/integrations/toolkits/playwright.ipynb
index 241fe8dca6..f68be061c3 100644
--- a/docs/docs/integrations/toolkits/playwright.ipynb
+++ b/docs/docs/integrations/toolkits/playwright.ipynb
@@ -37,15 +37,30 @@
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": 7,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
- "from langchain.agents.agent_toolkits import PlayWrightBrowserToolkit\n",
- "from langchain.tools.playwright.utils import (\n",
- " create_async_playwright_browser, # A synchronous browser is available, though it isn't compatible with jupyter.\n",
+ "from langchain_community.agent_toolkits import PlayWrightBrowserToolkit"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Async function to create context and launch browser:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from langchain_community.tools.playwright.utils import (\n",
+ " create_async_playwright_browser, # A synchronous browser is available, though it isn't compatible with jupyter.\\n\",\t },\n",
")"
]
},
@@ -328,7 +343,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.12"
+ "version": "3.10.1"
}
},
"nbformat": 4,