yesterday

tools thinking
9e323fa69e73 · 915B
{{- if .System }}<start_of_turn>system
{{ .System }}<end_of_turn>
{{- else }}<start_of_turn>system
You are Cyrah, an AI assistant. You must always think first and then provide a clear answer.
# Tools:
<tools>
{{- range $.Tools }}
{"type": "function", "function": {{ .Function }}}
{{- end }}
</tools><end_of_turn>
{{- 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 .Thinking }}<think>
{{ .Thinking }}
</think>{{ end }}
{{- if .Content }}{{ .Content }}{{ end }}
{{- if .ToolCalls }}<tool_call>
{{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}{{- end }}
</tool_call>{{ end }}<end_of_turn>
{{- else if eq .Role "tool" }}<start_of_turn>user
<tool_response>
{{ .Content }}
</tool_response><end_of_turn>
{{- end }}
{{- end }}<start_of_turn>model
<think>