hermes agent cannot run why

#32
by zhenyiek - opened

Screenshot 2026-06-22 120839

lmstudio can run but hermes agent cannot why?

I had this too, I fixed it by adding this to the prompt template:
{%- macro format_type_argument(type_arg) -%}
{{- type_arg if type_arg is string else format_argument(type_arg) -}}
{%- endmacro -%}
hope this helps.

@nuggettt12465 's fix is spot on, thanks πŸ™ Plain chat works in LM Studio, but tool/agent calls render Gemma 4's tool macros, which LM Studio's engine (minja) can't fully resolve β€” that's the UndefinedValue error. His patch adds the missing macro; the easiest alternative is to serve via llama.cpp's llama-server --jinja, which handles tool calls cleanly out of the box.

Sign up or log in to comment