Skip to content

Commit 23a69e3

Browse files
committed
docs: update roadmap
1 parent 4585a66 commit 23a69e3

2 files changed

Lines changed: 2 additions & 38 deletions

File tree

ROADMAP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ The development progress and future plans for PageAgent.
2020
- [ ] **Working homepage with live LLM API**
2121
- [ ] **free CDN**
2222
- [ ] **Testing suits**
23+
- [ ] **Remove ai-sdk** - Only one function is being used
24+
- [ ] **Support custom llm fetch**
2325

2426

2527
♻️ Following browser-use's update and contribute back
@@ -32,6 +34,4 @@ The development progress and future plans for PageAgent.
3234

3335
## 🤔 To Be Decided
3436

35-
- [ ] **Remove ai-sdk?** - Only one function is being used
3637
- [ ] **Cross-origin multi-page?** - Tricky
37-
- [ ] **Support custom llm fetch?**

src/PageAgent.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -218,42 +218,6 @@ export class PageAgent extends EventTarget {
218218
* - next_goal: string
219219
* - action: { toolName: toolInput }
220220
* where action must be selected from tools defined in this.tools
221-
*
222-
* @topic 要不要合并成一个 tool?
223-
* @facts
224-
* - 我们需要模型每步返回 evaluation/memory/goal 等思考过程
225-
* - browser use 合并成一个巨大的 tool
226-
* ```json
227-
* {
228-
* "memory": "...",
229-
* "goal": "...",
230-
* "actions": [
231-
* {
232-
* "name": "...",
233-
* "args": "..."
234-
* }
235-
* // ...
236-
* ]
237-
* }
238-
* ```
239-
* - qwen 目前必须指定 function name 来确保 tool call
240-
* @reasoning
241-
* - 不能为了 qwen 的缺陷而设计系统
242-
* - 更复杂的 tool 更容易出错
243-
* - 分散的 tool 更容易利用 ai-sdk 的重试机制,也更容易处理错误
244-
* - 不能用额外的步骤生成这些数据,不仅性能过差,而且 goal 之类的必须和 call 一起生成
245-
* @options
246-
* - Plan @A
247-
* - 和 browser use 使用完全一致的做法,合并成一个大 tool,要求每次调用
248-
* - 会把 tool 定义变得非常复杂,增加出错率
249-
* - Plan @B
250-
* - 每次调用两个 tool,其中一个用来输出思考
251-
* - 很难用提示词 enforce 这么复杂的规则
252-
* - Plan @C
253-
* - 自动为每个 tool 增加固定的 reasoning/memory/goal 等输入,并自动拦截提取这些数据
254-
* - 会让 tool 定义变得很长
255-
* @conclusion
256-
* - 使用 @A
257221
*/
258222
#packMacroTool(): ToolSet {
259223
const tools = this.tools

0 commit comments

Comments
 (0)