agentscope-java icon indicating copy to clipboard operation
agentscope-java copied to clipboard

[Bug]:AutoContextHook fails with Qwen3.5-35B-A3B due to ChatML system message constraints

Open amyaxy opened this issue 6 months ago • 1 comments

AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.

Describe the bug

The AutoContextHookcurrently does not support the Qwen3.5-35B-A3B​ model. This is caused by the strict ChatML (Chat Markup Language) template rules enforced by this model.

To Reproduce Steps to reproduce the behavior:

Add support for Chat Markup Language models (e.g., Qwen3.5-35B-A3B)

Expected behavior

Support for manual concatenation of system prompts into a single block, as the model does not allow multiple separate system turns.

Error messages

The hook likely attempts to inject multiple system messages or places them incorrectly, triggering the following error: "System message must be at the beginning"

Environment (please complete the following information):

  • AgentScope-Java Version: 1.1.0-RC2
  • Java Version: 21
  • OS: windows

Additional context

AgentScope-Studio Image

io.agentscope.core.memory.autocontext.AutoContextHook

Image

amyaxy avatar May 25 '26 03:05 amyaxy

v1 版本内问题,v2不存在,关闭

amyaxy avatar Sep 12 '26 13:09 amyaxy