abb-decide/ apertus-tools:8b-instruct-2509-q4_k_m

10 4 days ago

ABB Decide variant of "MichelRosselli/apertus" with tool-calling fixes.

tools
3f98c07c9794 · 1.2kB
{{- if .System }}<|system_start|>{{ .System }}<|system_end|>{{- else }}<|system_start|>You are Apertus, a helpful assistant created by the SwissAI initiative.<|system_end|>{{- end }}<|developer_start|>Deliberation: disabled
{{- if .Tools }}
Tool Capabilities:
{{ range .Tools -}}// {{ .Function.Description }}
type {{ .Function.Name }} = (_: {
{{- range $name, $prop := .Function.Parameters.Properties }}
// {{ $prop.Description }}
{{ $name }}: {{ $prop.Type }}{{- end }}
}) => any;
{{ end }}
When you need to call a tool, respond with ONLY the JSON array and nothing else before or after it:
[{"name": "<tool_name>", "arguments": {<key>: <value>}}]
{{- else }}
Tool Capabilities: disabled
{{- end }}<|developer_end|>
{{- range .Messages }}{{- if eq .Role "user" }}<|user_start|>{{ .Content }}<|user_end|>
{{- else if eq .Role "assistant" }}<|assistant_start|>{{- if .ToolCalls }}[{{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ json .Function.Arguments }}}{{ end }}]{{- else }}{{ .Content }}{{- end }}<|assistant_end|>
{{- else if eq .Role "tool" }}[{{ .Content }}]<|assistant_end|>
{{- end }}{{- end }}<|assistant_start|>