Models
Docs
Pricing
Sign in
Download
Models
Download
Docs
Pricing
Sign in
adeelahmad
/
ReasonableDeepQwen3-8B
:q4_k
1
Download
Updated
2 days ago
Cancel
tools
ReasonableDeepQwen3-8B:q4_k
...
/
template
6c72f0709b25 · 1.6kB
{{- if .Messages }}
{{- if or .System .Tools }}{{ if .System }}{{ .System }}
{{- end }}
{{- if .Tools }}
# Tools
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools> XML tags:
<tools>
{{- range .Tools }}
{"type": "function", "function": {{ .Function }}}
{{- end }}
</tools>
For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
<tool_call>
{"name": <function-name>, "arguments": <args-json-object>}
</tool_call>
{{- end }}
{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
{{- if eq .Role "user" }}<|User|>{{ .Content }}<|Assistant|>
{{- else if eq .Role "assistant" }}{{ if .Content }}{{ .Content }}
{{- else if .ToolCalls }}<|tool▁calls▁begin|>
{{- range .ToolCalls }}<|tool▁call▁begin|>function<|tool▁sep|>{{ .Function.Name }}
```json
{{ .Function.Arguments }}
```<|tool▁call▁end|>
{{- end }}<|tool▁calls▁end|>
{{- end }}{{ if not $last }}<|end▁of▁sentence|>
{{- end }}
{{- else if eq .Role "tool" }}<|tool▁outputs▁begin|><|tool▁output▁begin|>{{ .Content }}<|tool▁output▁end|><|tool▁outputs▁end|>
{{- end }}
{{- if and (ne .Role "assistant") $last }}<|Assistant|>
{{- end }}
{{- end }}
{{- else }}
{{- if .System }}{{ .System }}
{{- end }}{{ if .Prompt }}<|User|>{{ .Prompt }}<|Assistant|>
{{- end }}
{{- end }}{{ .Response }}{{ if .Response }}<|end▁of▁sentence|>{{ end }}