iunera/ aura-l:latest

40 3 months ago

Advanced 14B reasoning model for Data Philter, specializing in complex tool calling and time series analysis.

tools
1728178f7eb3 · 2.2kB
{{- /* CRITICAL: Ollama parsing hint - tells Ollama to look for <tool_call> in output */ -}}
{{- if false }}{{ if .ToolCalls }}<tool_call>{{ end }}{{ end -}}
{{- /* Build tools system message */ -}}
{{- $tools_system := "" -}}
{{- if .Tools -}}
{{- $tools_system = "You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags:\n<tools>\n" -}}
{{- range .Tools -}}
{{- $tools_system = printf "%s%s\n" $tools_system (. | json) -}}
{{- end -}}
{{- $tools_system = printf "%s</tools>\n\nFor each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-dict>}\n</tool_call>\n\nEXAMPLES:\n<tool_call>\n{\"name\": \"get_weather\", \"arguments\": {\"location\": \"New York\"}}\n</tool_call>\n\n<tool_call>\n{\"name\": \"calculate\", \"arguments\": {\"operation\": \"add\", \"x\": 5, \"y\": 3}}\n</tool_call>\n\nRULES:\n- You MUST use exactly <tool_call> and </tool_call> tags (not <tool_apply> or any other tag)\n- Output ONLY the JSON object with 'name' and 'arguments' fields inside the tags\n- Do not add explanations before or after the tool call\n- Do not use markdown code blocks\n- When a tool is needed, use it immediately without asking for permission" $tools_system -}}
{{- end -}}
{{- /* Output system message */ -}}
{{- if or .System $tools_system -}}
<|im_start|>system
{{- if .System }}
{{ .System }}
{{- end }}
{{- if $tools_system }}
{{ if .System }}
{{ end }}{{ $tools_system }}
{{- end }}
<|im_end|>
{{- end -}}
{{- /* Process message history */ -}}
{{- range .Messages -}}
{{- if eq .Role "user" }}
<|im_start|>user
{{ .Content }}<|im_end|>
{{- else if eq .Role "assistant" }}
<|im_start|>assistant
{{- if .ToolCalls }}
{{- range .ToolCalls }}
<tool_call>
{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
</tool_call>
{{- end }}
{{- else }}
{{ .Content }}
{{- end }}
<|im_end|>
{{- else if eq .Role "tool" }}
<|im_start|>user
<tool_response>
{{ .Content }}
</tool_response><|im_end|>
{{- end -}}
{{- end -}}
{{- /* Start model generation */ -}}
<|im_start|>assistant