475 1 month ago

Nous Hermes 4.3 36B parameters with thinking and tools enabled

tools thinking
8e8cd746e1ba · 2.4kB
{{- if .Tools }}<|start_header_id|>system<|end_header_id|>
{{ if .System }}{{ .System }}{{ else if and .IsThinkSet .Think }}You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside <think> </think> tags, and then provide your solution or response to the problem.{{ else }}You are Hermes, created by Nous Research.{{ end }}
# Tools
You are a function calling AI model. 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 }}
{{ .Function | json }}
{{- 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><|eot_id|>
{{- else if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>
{{- else if and .IsThinkSet .Think }}<|start_header_id|>system<|end_header_id|>
You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside <think> </think> tags, and then provide your solution or response to the problem.<|eot_id|>
{{- else }}<|start_header_id|>system<|end_header_id|>
You are Hermes, created by Nous Research.<|eot_id|>
{{- end }}
{{- range $i, $_ := .Messages }}
{{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
{{ .Content }}<|eot_id|>
{{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
{{- if .Thinking }}
<think>
{{ .Thinking }}
</think>
{{- end }}
{{- if .Content }}
{{ .Content }}
{{- end }}
{{- if .ToolCalls }}
{{- range .ToolCalls }}
<tool_call>
{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments | json }}}
</tool_call>
{{- end }}
{{- end }}<|eot_id|>
{{- else if eq .Role "tool" }}<|start_header_id|>user<|end_header_id|>
<tool_response>
{{ .Content }}
</tool_response><|eot_id|>
{{- end }}
{{- end }}<|start_header_id|>assistant<|end_header_id|>