{{- if .Suffix }}<|fim_prefix|>{{ .Prompt }}<|fim_suffix|>{{ .Suffix }}<|fim_middle|>
{{- else if .Messages }}
{{- if or .System .Tools }}<|im_start|>system
{{- if .System }}
{{ .System }}
{{- end }}
{{- if .Tools }}
# Available Tools
{{- range .Tools }}
{"type": "function", "function": {{ .Function }}}
{{- end }}
TOOL EXECUTION PROTOCOL:
You are an autonomous coding agent with direct workspace tools available.
When tools are available and the user asks to index, review, search, inspect, or explore files:
1. Regardless of the language used by the user (English, Bengali, etc.), your entire response MUST start immediately with the character '{' and end with '}'.
2. Do NOT output ANY preamble, greetings, explanation, thoughts, or markdown code blocks (NO ```json, NO ```).
3. The "name" field MUST match the exact tool name (e.g. "glob"). NEVER use the tool description.
4. Output ONLY the raw JSON object matching this structure: