插件目录 / Developer / dsh-dashscope-tool-adapter
dsh-dashscope-tool-adapter
已验证 · 实测可装 Uersx
功能简介
dsh-dashscope-tool-adapter
可用 — 实测通过,早期项目
dsh-dashscope-tool-adapter 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-dashscope-tool-adapter
DSH plugin: adapts DashScope / 阿里云百炼 DeepSeek endpoints that lack native tool calling.
Problem
DashScope's OpenAI-compatible endpoint (https://dashscope.aliyuncs.com/compatible-mode/v1) does not support native tool calling (function calling) for DeepSeek models. When DSH sends tool definitions, the API either ignores them or rejects the request.
Solution
This plugin converts tool definitions into prompt text and parses the model's text response for <|tool_call|> markers. It then constructs standard BlockAssembler-compatible tool-call chunks, which the DSH agent loop executes natively.
- Non-DashScope providers: untouched, native tool calling works as usual.
- DashScope providers: tools are described in the system prompt, and the model calls them via text markers.
Installation
dsh plugin add github:Uersx/dsh-dashscope-tool-adapter
Or manually:
dsh plugin --profile web add github:Uersx/dsh-dashscope-tool-adapter
How it works
- A
systemPrompt.section()injects text-based tool descriptions into the system prompt. - The
llm/streamwaterfall intercepts only DashScope calls. - The model outputs
<|tool_call|>{"name":"...","arguments":{...}}</|tool_call|>in its text. - The plugin parses these markers and constructs standard
tool-call-delta/block-endchunks. - The DSH agent loop executes the tools natively.
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-dashscope-tool-adapter」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:Uersx/dsh-dashscope-tool-adapter Headless(CLI)profile:
dsh plugin --profile headless add github:Uersx/dsh-dashscope-tool-adapter 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。