mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 10:00:19 +08:00
Auto capability (agents/auto/) gains a three-stage agent loop: ANALYZING (one LLM call, streamed as thinking) -> DELEGATING (router emits delegate_to_<cap> tool calls or atomic tool calls, with bounded retries and a same-cap quota) -> SYNTHESIZING (final inline answer). Sub-capability events flow through forward_events with call_id tagging so conversation history keeps only Auto's own synthesis. New chat-mountable tools: - ask_user: pauses the turn for 1-3 structured questions, frontend renders a card the user navigates and submits in one batch - web_fetch: HTTP + readable-content extraction with strict scheme/private-IP/size guards (pre-flight + post-redirect) - write_note: replaces save_to_notebook; append (new record) and edit (existing record by id) modes - list_notebook: read-only index / drill-down listing; only mounted when the user has notebooks - github_query: read-only ``gh`` CLI wrapper (pr/issue/run/repo plus GET-only api); no mutation verbs reachable Updates chat agentic_pipeline.py + agentic_chat.yaml (en/zh) to the new tool surface and source-inventory contract, refits tools/builtin/__init__.py as the single place to register chat-mounted tools and their argument-augmentation wrappers, and tightens core stream + tool_protocol around tool-result metadata. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
7 lines
819 B
YAML
7 lines
819 B
YAML
short_description: "抓取一个具体 URL 的网页内容并提取为 markdown 文本。"
|
||
when_to_use: "用户消息里出现具体 URL 且需要读那个页面时使用:分享了博客 / 教材 / 论文链接并问相关问题,或者用户明确说\"帮我读这个页面\"。普通主题搜索请用 web_search。"
|
||
input_format: "{\"url\": \"完整 http(s):// URL\", \"max_chars\": 50000}。max_chars 可选,默认 50000,超出会截断。"
|
||
guideline: "对于需要登录、有反爬虫、或纯前端 JS 渲染的页面会失败——失败时如实告知用户,不要凭空补内容。返回结果是已经去掉脚本/侧边栏的纯文本(首行 `# 标题`)。"
|
||
note: "拒绝 file:// / localhost / 内网 IP 等地址。一次只抓一个 URL;要抓多个分多次调用。"
|
||
phase: "exploration"
|