{{- $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 -}}