Models
Docs
Pricing
Sign in
Download
Models
Download
Docs
Pricing
Sign in
ExposedCat
/
gemma3-tools
:latest
17
Downloads
Updated
10 months ago
Raw gemma3 with tool support
Raw gemma3 with tool support
Cancel
vision
tools
gemma3-tools:latest
...
/
template
a22a748fb19c · 985B
{{- if or .System .Tools }}<start_of_turn>user
{{ if .System }}
# 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_of_turn>
{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 }}
{{- if or (eq .Role "user") (eq .Role "system") }}<start_of_turn>user
{{ .Content }}<end_of_turn>
{{ if $last }}<start_of_turn>model
{{ end }}
{{- else if eq .Role "assistant" }}<start_of_turn>model
{{ .Content }}{{ if not $last }}<end_of_turn>
{{ end }}
{{- end }}
{{- end }}