Plugin directory / Developer / dsh-dashscope-tool-adapter
dsh-dashscope-tool-adapter
Verified · install-tested on dsh Uersx
What it does
dsh-dashscope-tool-adapter
Works — verified, early-stage project
dsh-dashscope-tool-adapter It installs cleanly and boots without issues in our testing. It's early-stage but functional.
“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.
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
Install
Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:
dsh plugin add dshbase-catalog Then say "install dsh-dashscope-tool-adapter for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
This plugin is GitHub source (not published to npm) — install it straight from the repo:
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 Test report
Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.