[Tool] adjust_request to reasoning parser, and Gemma4 fixes (#39027)

Signed-off-by: Ben Browning <bbrownin@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ben Browning
2026-04-08 19:04:04 +00:00
committed by GitHub
co-authored by Claude Opus 4.6 Cursor
parent e24e0a43a4
commit 8477fe427d
12 changed files with 878 additions and 16 deletions
+4 -2
View File
@@ -122,14 +122,16 @@ def _parse_gemma4_args(args_str: str, *, partial: bool = False) -> dict:
# Parse value
if i >= n:
result[key] = ""
if not partial:
result[key] = ""
break
# Skip whitespace after ':'
while i < n and args_str[i] in (" ", "\n", "\t"):
i += 1
if i >= n:
result[key] = ""
if not partial:
result[key] = ""
break
# String value: <|"|>...<|"|>