• Stefy Lanza (nextime / spora )'s avatar
    parser: detect <tool>{json}<tool> tool calls (Gemma finetunes) · fc828989
    Stefy Lanza (nextime / spora ) authored
    Some Gemma finetunes emit tool calls as <tool>{"name":..,"arguments":..}
    using <tool> (or <tool_call>) as BOTH delimiters — no closing slash —
    and sometimes append a stray quote. Every existing <tool>…</tool>
    pattern requires a slashed closer, so GemmaParser found nothing and the
    call was returned as plain text: kilocode saw no tool_call and showed no
    reply. Add parse_tool_tag_json_calls, which extracts the brace-balanced
    object after each marker via the tolerant loose parser (so trailing junk
    and stray quotes don't break it) and reads name + arguments/parameters,
    restricted to declared tool names and de-duplicated. Wired into
    GemmaParser before the generic fallback.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    fc828989
Name
Last commit
Last update
..
cache Loading commit data...
__init__.py Loading commit data...
acceleration.py Loading commit data...
capabilities.py Loading commit data...
grammar.py Loading commit data...
hf_loading.py Loading commit data...
manager.py Loading commit data...
parser.py Loading commit data...
pipeline_cache.py Loading commit data...
quant.py Loading commit data...
ram_monitor.py Loading commit data...
templates.py Loading commit data...
thermal.py Loading commit data...
tmp_janitor.py Loading commit data...
tool_call_grammar.gbnf Loading commit data...
turboquant.py Loading commit data...
utils.py Loading commit data...