chore: format md

This commit is contained in:
Simon
2025-10-22 16:30:37 +08:00
parent 20b089439d
commit 0eee49988d
2 changed files with 22 additions and 15 deletions

View File

@@ -32,7 +32,11 @@
```html
<!-- 临时 CDN URL. 未来会变更 -->
<script src="https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.2/page-agent.js" crossorigin="true" type="text/javascript"></script>
<script
src="https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.2/page-agent.js"
crossorigin="true"
type="text/javascript"
></script>
```
### NPM 安装
@@ -55,10 +59,10 @@ const agent = new PageAgent({
modelName: DEMO_MODEL,
baseURL: DEMO_BASE_URL,
apiKey: DEMO_API_KEY,
language: 'zh-CN'
language: 'zh-CN',
})
await agent.execute("点击登录按钮")
await agent.execute('点击登录按钮')
```
## 🏗️ 架构设计

View File

@@ -32,7 +32,11 @@ An in-page UI agent in javascript. Control web interfaces with natural language.
```html
<!-- temporary CDN URL. May change in the future -->
<script src="https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.2/page-agent.js" crossorigin="true" type="text/javascript"></script>
<script
src="https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.2/page-agent.js"
crossorigin="true"
type="text/javascript"
></script>
```
### NPM Installation
@@ -55,10 +59,10 @@ const agent = new PageAgent({
modelName: DEMO_MODEL,
baseURL: DEMO_BASE_URL,
apiKey: DEMO_API_KEY,
language: 'en-US'
language: 'en-US',
})
await agent.execute("Click the login button")
await agent.execute('Click the login button')
```
## 🏗️ Structure
@@ -102,7 +106,6 @@ PageAgent is designed for **client-side web enhancement**, not server-side autom
MIT License - see the [LICENSE](LICENSE) file for details.
```
DOM processing components and prompt are derived from browser-use: