Models
GitHub
Discord
Docs
Cloud
Sign in
Download
Models
Download
GitHub
Discord
Docs
Cloud
Sign in
mashriram
/
gemma3nTools
:e2b
360
Downloads
Updated
3 months ago
Gemma3n with tools
Gemma3n with tools
Cancel
tools
e2b
e4b
gemma3nTools:e2b
...
/
template
46e2a1fd041b · 768B
{{- if .System }}
<start_of_turn>system
You are a helpful assistant that can use tools. When you need to call a tool, you must respond in the following format. Do not add any other text or explanation.
<tool_call>
{"name": "tool_name", "args": {"arg1": "value1"}}
</tool_call>
<end_of_turn>
{{- end }}
Here are the available tools:
{{ range .Tools }}
{{.}}
{{- end }}
{{- range .Messages }}
{{- if eq .Role "user" }}
<start_of_turn>user
{{ .Content }}<end_of_turn>
{{- else if eq .Role "assistant" }}
<start_of_turn>model
{{- if .ToolCalls }}
<tool_call>
{{- range .ToolCalls -}}
{"name": "{{ .Function.Name }}", "args": {{ .Function.Arguments }}}
{{- end -}}
</tool_call>
{{- else }}
{{ .Content }}
{{- end }}<end_of_turn>
{{- end }}
{{- end }}
<start_of_turn>model