Skip to content

Preserve declared string arguments in MiniMax M3 tool calls - #391

Merged
jjang-ai merged 1 commit into
mainfrom
fix/minimax-m3-native-string-arguments-20261120
Nov 21, 2026
Merged

jjang-ai merged 1 commit into
mainfrom
fix/minimax-m3-native-string-arguments-20261120

Conversation

@jjang-ai

Copy link
Copy Markdown
Owner

Fixes #389.

Use the declared function schema when reading MiniMax M3 XML parameters. String arguments keep their literal text, including whitespace, repeated tags, and values that resemble JSON scalars. Streaming completion validates the same parsed arguments as final extraction.

  • 18 focused parser tests passed, including both function schema shapes.
  • Dev Electron with MiniMax-M3.1-Flash-JANGHT1.9 executed write_file and continued from the tool result. Both list items and all HTML tags survived byte-for-byte.
  • Chat Completions and Responses streams on the same backend returned the identical literal argument. The Chat continuation restored 490 of 511 prompt tokens from SSD and the next turn recalled the second list item.

@jjang-ai
jjang-ai merged commit 5d86cf8 into main Nov 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MiniMax M3 tool parser turns schema-declared HTML/XML string arguments into objects

1 participant