Skip to content

Commit

Permalink
Fixing typos (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyzhang99 authored Sep 6, 2024
1 parent 436b9de commit b91d8c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/sphinx_doc/en/source/tutorial/211-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down
8 changes: 0 additions & 8 deletions docs/sphinx_doc/zh_CN/source/tutorial/211-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 函数标记网页后,我们就可以在网页上执行更多的操作,例如点击指定序号的按钮、在指定序号的文本框中进行输入等。

Expand All @@ -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)的样例。
Expand Down
2 changes: 1 addition & 1 deletion examples/conversation_with_web_browser_agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b91d8c3

Please sign in to comment.