Hermes 3 is the latest version of the flagship Hermes series of LLMs by Nous Research

tools 8b 70b 405b

58.8K 2 months ago

... /
template
ec20917d63ea · 1.3kB
{{- if .Tools }}<|im_start|>system
You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions. Here are the available tools: <tools>
{{- range .Tools }}
{{- . }}
{{- end }}</tools> Use the following pydantic model json schema for each tool call you will make: {"properties": {"arguments": {"title": "Arguments", "type": "object"}, "name": {"title": "Name", "type": "string"}}, "required": ["arguments", "name"], "title": "FunctionCall", "type": "object"} For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:
<tool_call>
{"arguments": <args-dict>, "name": <function-name>}
</tool_call><|im_end|>
{{ end }}
{{- range .Messages }}<|im_start|>{{ .Role }}
{{- if and (eq .Role "tool") .Content }}
<tool_response>
{"content": {{ .Content }}}
</tool_response>
{{- else if .Content }}
{{ .Content }}
{{- else if .ToolCalls }}
<tool_call>
{{- range .ToolCalls }}
{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
{{- end }}
</tool_call>
{{- end }}<|im_end|>
{{ end }}<|im_start|>assistant