From b91d8c33ba2cf98c6419b91f245428c35aeb5534 Mon Sep 17 00:00:00 2001 From: garyzhang99 <46197280+garyzhang99@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:28:56 +0800 Subject: [PATCH] Fixing typos (#434) --- docs/sphinx_doc/en/source/tutorial/211-web.md | 2 +- docs/sphinx_doc/zh_CN/source/tutorial/211-web.md | 8 -------- examples/conversation_with_web_browser_agent/README.md | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/sphinx_doc/en/source/tutorial/211-web.md b/docs/sphinx_doc/en/source/tutorial/211-web.md index e77b1d919..18ff55df0 100644 --- a/docs/sphinx_doc/en/source/tutorial/211-web.md +++ b/docs/sphinx_doc/en/source/tutorial/211-web.md @@ -83,7 +83,7 @@ The above functions provide basic operations for interactive web browser control You can use them to build your own web browsing agent. In AgentScope, the web browser is also some kind of tool functions, so you can use it together with the service toolkit module to build your own agent. -We also provide a [web browser agent](https://github.com/modelscope/agentscope/tree/main/examples/conversation_with_web_browser_agent)) in our example. +We also provide a [web browser agent](https://github.com/modelscope/agentscope/tree/main/examples/conversation_with_web_browser_agent) in our example. You can refer to it for more details. diff --git a/docs/sphinx_doc/zh_CN/source/tutorial/211-web.md b/docs/sphinx_doc/zh_CN/source/tutorial/211-web.md index 935aeb887..51b603e2a 100644 --- a/docs/sphinx_doc/zh_CN/source/tutorial/211-web.md +++ b/docs/sphinx_doc/zh_CN/source/tutorial/211-web.md @@ -61,11 +61,6 @@ print(browser.page_markdown) print(browser.page_html) ``` -Besides, to help vision models to understand the webpage better, we provide `set_interactive_marks` function, -which will mark all the interactive elements on the current webpage with index labels. -After calling `set_interactive_marks` function, more actions can be performed on the webpage. -For example, clicking a button, typing in a text box, etc. - 此外,为了帮助视觉模型更好地理解网页,我们提供了 `set_interactive_marks` 函数,该函数会把当前网页上所有的可交互元素标记出来,并用序号标签进行标注(从0开始)。 调用 `set_interactive_marks` 函数标记网页后,我们就可以在网页上执行更多的操作,例如点击指定序号的按钮、在指定序号的文本框中进行输入等。 @@ -81,9 +76,6 @@ browser.set_interactive_marks() 上述的所有函数为交互式的 Web 浏览器控制提供了基本操作接口。开发者可以使用这些接口来构建自己的 Web 浏览代理。 -In AgentScope, the web browser is also some kind of tool functions, so you can use it together with the service toolkit module to build your own agent. -We also provide a [web browser agent](https://github.com/modelscope/agentscope/tree/main/examples/conversation_with_web_browser_agent)) in our example. -You can refer to it for more details. 在 AgentScope 中,Web 浏览器也是一种工具函数,因此可以使用 `agentscope.service.ServiceToolkit` 来处理 `WebBrowser` 模块提供的函数,并构建自己的智能体。 我们在示例中提供了一个[Web 浏览器智能体](https://github.com/modelscope/agentscope/tree/main/examples/conversation_with_web_browser_agent)的样例。 diff --git a/examples/conversation_with_web_browser_agent/README.md b/examples/conversation_with_web_browser_agent/README.md index 5462e8a15..9cf059699 100644 --- a/examples/conversation_with_web_browser_agent/README.md +++ b/examples/conversation_with_web_browser_agent/README.md @@ -27,7 +27,7 @@ To run this example, you need to: 2. Install the necessary Playwright packages: - Run `pip install playwright` to set up the Python environment. - Run `playwright install` to install the required browser for Playwright. -3. [Optional] For a better understanding of how web browsing is implemented, refer to the original code in [web_browser.py](../../src/agentscope/browser/web_browser.py) and [web_voyager_agent.py](../../src/agentscope/agents/web_voyager_agent.py). +3. [Optional] For a better understanding of how web browsing is implemented, refer to the original code in [web_browser.py](https://github.com/modelscope/agentscope/blob/main/src/agentscope/service/browser/web_browser.py) and [webact_agent.py](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_web_browser_agent/webact_agent.py). ## Running the Example