Repository navigation
Closed
Labels
Description
Description
The DashScope extension currently supports only the file-id input path for documents
(via FileIdSource → fileid://{ID} system message). The qwen-doc-turbo model
provides richer document capabilities that we do not yet expose:
- Document input via URL (
doc_url): the DashScope native API accepts up to 10
public file URLs inline in the user message content, with a configurable
file_parsing_strategy(auto/text_only/text_and_images).
Our formatter currently rejectsURLSourcewith anIllegalArgumentException. - PPT generation output:
qwen-doc-turbosupports generating PowerPoint files
from document content via askillparameter (template mode and creative mode).
The output is streamed in phases: outline (reasoning_content), page content
(reasoning_content), and a final PPT download URL (content).
We do not currently support theskillparameter.
Plain text document input already works through TextBlock, and the file-id path
already works through FileIdSource.
Current behavior
| Input method | Status |
|---|---|
File URL (doc_url) |
Rejected with IllegalArgumentException |
File ID (fileid://) |
Supported (system message injection) |
| Plain text | Supported (via TextBlock) |
PPT output (skill param) |
Not supported |
Desired behavior
DocumentBlockwithURLSourceshould be converted to adoc_urlcontent part
in the user message (DashScope native format), not a system message.file_parsing_strategyshould be configurable, potentially via
DocumentBlock.metadata.- The
skillparameter should be supported inDashScopeParameters, enabling
PPT generation forqwen-doc-turbo(requiresstream=true). - PPT output should flow through the existing
reasoning_content/content
parsing path; a typed or metadata-annotated representation for the download
URL is optional.
References
- DashScope qwen-doc-turbo docs:
https://help.aliyun.com/zh/model-studio/data-mining-qwen-doc
This issue description is for reference only. Implementation details should follow the actual codebase structure and conventions.
Activity
ig-suyas commentedon Nov 2, 2026
Hi, I'd like to take this. I'll start with the doc_url conversion for URLSource in the DashScope formatter and make file_parsing_strategy configurable, then add the skill parameter for PPT output, with unit tests. Please let me know if someone is already working on it or if you'd prefer it split into two PRs.
ningmao-hlyz commentedon Nov 2, 2026
Hi @jujn — I'd like to take this.
Scope note: I wrote #3869 (DocumentBlock + the DashScope
fileid://path), and thisis the phase we explicitly deferred there —
appendDocumentMessagescurrentlyrejects non-
FileIdSourcedocuments with "OnlyFileIdSourceis supported in thisphase".
Plan, scoped to the issue:
DashScopeContentPartgainsdoc_url;URLSourcedocumentsbecome a user-message content part instead of a
fileid://system message;file_parsing_strategyis read fromDocumentBlock.metadataand validatedagainst
auto/text_only/text_and_images.FileIdSourcekeeps theexisting system-message path.
DashScopeParametersgainsskill; the formatter requiresstream=truewhen it is set; the outline and page phases keep flowing throughreasoning_content, the download URL throughcontent, and the URL canadditionally be surfaced via metadata.
(no network), including all
file_parsing_strategyvariants and the rejectedunknown value; PPT tests cover the parameter and the phased response; the new
field is added to the DashScope docs page.
jujn commentedon Nov 3, 2026
@ig-suyas Hi, welcome to contribute to AgentScope Java. The current problem is a little difficult. It is recommended to practice from some simple issues.
feat(core,model,protocol,dashscope): preserve documents across the co…