mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:19:31 +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
946 B
YAML
7 lines
946 B
YAML
short_description: "Read-only queries against GitHub PRs / issues / repos / CI runs via the `gh` CLI."
|
|
when_to_use: "When the user asks about a specific GitHub resource: 'is this PR's CI passing', 'what are the recent issues on owner/repo', 'show this release's changelog'. **Do not use it for general code-concept questions** — answer those from training knowledge or via ``web_search``."
|
|
input_format: "{\"query_type\": \"pr|issue|run|repo|api\", \"target\": \"owner/repo[#number] or full URL; relative gh api path when query_type is api\"}."
|
|
guideline: "Read-only by construction — this tool cannot comment, close, or merge. Tell the user to act on GitHub directly for write operations. Output is JSON; extract the relevant fields for your reply rather than dumping it raw."
|
|
note: "If the server has no `gh` CLI installed the tool returns a clear error — relay that honestly rather than fabricating a GitHub state."
|
|
phase: "exploration"
|