Parse HYV3 native sectioned tool calls and tagged arguments

Use the existing RadChatFormat fields for the outer tool-call section, name separator and tagged values. Cover grammar, template replay, streaming at every truncation, section boundaries and OpenAI response lifting; leave the supports_reasoning adapter unchanged.
This commit is contained in:
Constantin authored and StillDeadcode committed 2026-10-25 12:09:29 +01:00
1 parent 7621e4ac2b
commit 7e04bcac2b
11 files changed
+840 -34

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
# Hy-Memory chat-template fixture
`chat_template.jinja` is an unchanged copy of the template distributed with
[Tencent Hy-Memory-30B-A3B](https://huggingface.co/tencent/Hy-Memory-30B-A3B).
- Source file: `chat_template.jinja`
- SHA-256: `8759492d33deb19b2f58855f62d3e431276da89d698b2800d1e353fbb12d5320`
- Copyright (C) 2026 Tencent. All rights reserved.
- License: Apache-2.0; see the repository's root `LICENSE` and `NOTICE`.
Tests use the original template to validate tool-schema rendering, tool-result replay,
reasoning prefixes, and native section-wrapped tool-call parsing. No model weights or
calibration corpus are included in this fixture.