Skip to content

[Feature]: Support qwen-doc-turbo document input and PPT output #3943

Closed

Description

@jujn

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 rejects URLSource with an IllegalArgumentException.
  • PPT generation output: qwen-doc-turbo supports generating PowerPoint files
    from document content via a skill parameter (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 the skill parameter.

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

  • DocumentBlock with URLSource should be converted to a doc_url content part
    in the user message (DashScope native format), not a system message.
  • file_parsing_strategy should be configurable, potentially via
    DocumentBlock.metadata.
  • The skill parameter should be supported in DashScopeParameters, enabling
    PPT generation for qwen-doc-turbo (requires stream=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

This issue description is for reference only. Implementation details should follow the actual codebase structure and conventions.

Activity

  1. added
    enhancement
    help wanted
    on Nov 2, 2026
  2. ig-suyas commented on Nov 2, 2026

    @ig-suyas

    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.

  3. ningmao-hlyz commented on Nov 2, 2026

    @ningmao-hlyz
    Contributor

    Hi @jujn — I'd like to take this.

    Scope note: I wrote #3869 (DocumentBlock + the DashScope fileid:// path), and this
    is the phase we explicitly deferred there — appendDocumentMessages currently
    rejects non-FileIdSource documents with "Only FileIdSource is supported in this
    phase".

    Plan, scoped to the issue:

    • dashscope input: DashScopeContentPart gains doc_url; URLSource documents
      become a user-message content part instead of a fileid:// system message;
      file_parsing_strategy is read from DocumentBlock.metadata and validated
      against auto / text_only / text_and_images. FileIdSource keeps the
      existing system-message path.
    • dashscope output: DashScopeParameters gains skill; the formatter requires
      stream=true when it is set; the outline and page phases keep flowing through
      reasoning_content, the download URL through content, and the URL can
      additionally be surfaced via metadata.
    • tests/docs: formatter tests assert the exact request body for a URL document
      (no network), including all file_parsing_strategy variants and the rejected
      unknown value; PPT tests cover the parameter and the phased response; the new
      field is added to the DashScope docs page.
  4. jujn commented on Nov 3, 2026

    @jujn
    CollaboratorAuthor

    @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.

  5. added a commit that references this issue on Nov 6, 2026
    85fa9a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions