[Bug]:AutoContextHook fails with Qwen3.5-35B-A3B due to ChatML system message constraints
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
io.agentscope.core.memory.autocontext.AutoContextHook
v1 版本内问题,v2不存在,关闭