THOX.ai's local agent model for DigitalHumans. MiniCPM5-2B fine-tune: 11/12 lane tasks on Ollama vs 9/12 base, 100% tool-call format and guardrails. Run with --think=false.
- param-value may be multi-line. If it contains <, & or newline characters, wrap it in a CDATA block: <param name="param-name"><![CDATA[...multi-line value...]]></param>
{{- end }}<|im_end|>
{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 }}
{{- if eq .Role "user" }}<|im_start|>user
{{ .Content }}<|im_end|>
{{ else if eq .Role "assistant" }}<|im_start|>assistant
<think>
</think>
{{ .Content }}
{{- range .ToolCalls }}<function name="{{ .Function.Name }}">{{ range $k, $v := .Function.Arguments }}<param name="{{ $k }}">{{ $v }}</param>{{ end }}</function>{{ end }}
{{- if not $last }}<|im_end|>
{{ end }}
{{- else if eq .Role "tool" }}<|im_start|>user
<tool_response>
{{ .Content }}
</tool_response><|im_end|>
{{ end }}
{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant