okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
53623e56f
main
1{ 2"engine_version_check" :"0.1.40" , 3"git" :"v0.1.40.1" , 4"started" :"2026-10-06 15:49:56" , 5"tool_calls_from_reasoning_before" :0 , 6"cases" : [ 7 { 8"id" :"1-fenced-example-in-answer" , 9"expectation" :"NO call: the call is only an example inside a code fence" , 10"stream" :false , 11"max_tokens" :700 , 12"reasoning_effort" :"config default" , 13"wall_s" :3.93 , 14"finish_reason" :"tool_calls" , 15"tool_calls_returned" :1 , 16"tool_calls" : [ 17 { 18"id" :"call_0903b64e671c45169c2c18f8" , 19"type" :"function" , 20"function" : { 21"name" :"get_weather" , 22"arguments" :"{\"city\":\"\\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\"}" 23 } 24 } 25 ], 26"tool_call_text_left_in" : [ 27"reasoning_content" 28 ], 29"fence_in_content" :false , 30"content_len" :0 , 31"reasoning_len" :906 , 32"call_text_in_inline_code" :true , 33"call_text_in_fence" :true , 34"content_head" :"" , 35"reasoning_head" :"We need to respond to user in Russian. User: \"Объясни одной фразой, как выглядит вызов инструмента. Приведи ровно один пример в код-блоке:\n\n```\n<tool_call>{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}\n</tool_call>\n\nСам ничего не вызывай, инструменты не используй.\"\n\nNeed output one phrase explaining what tool call looks like, and exactly one example in code block. They already provided example? They ask bring exactly one example in code block. Need likely include code block with example. Must not call tools. Need ensure only one code block? \"Приведи ровно один пример в код-блоке\" means exactly one example in a code block. Could answer with one phrase plus code block. Need maybe no extra code blocks. Need maybe use their exact format? They show:\n```\n<tool_call>{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}\n</tool_call>\n```\nBut note closing tag in prompt appears malformed: \"\n" 36 }, 37 { 38"id" :"2-inline-code-in-answer" , 39"expectation" :"NO call: the call is only inline code in the visible answer (no thinking at all)" , 40"stream" :false , 41"max_tokens" :700 , 42"reasoning_effort" :"none" , 43"wall_s" :1.38 , 44"finish_reason" :"tool_calls" , 45"tool_calls_returned" :1 , 46"tool_calls" : [ 47 { 48"id" :"call_13b9d275e8684a4e84df2589" , 49"type" :"function" , 50"function" : { 51"name" :"get_weather" , 52"arguments" :"{\"city\":\"\\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\"}" 53 } 54 } 55 ], 56"tool_call_text_left_in" : [], 57"fence_in_content" :false , 58"content_len" :0 , 59"reasoning_len" :0 , 60"call_text_in_inline_code" :false , 61"call_text_in_fence" :false , 62"content_head" :"" , 63"reasoning_head" :"" 64 }, 65 { 66"id" :"3-fenced-example-in-thinking" , 67"expectation" :"NO call: inside the thinking the example is fenced" , 68"stream" :false , 69"max_tokens" :700 , 70"reasoning_effort" :"high" , 71"wall_s" :7.35 , 72"finish_reason" :"length" , 73"tool_calls_returned" :0 , 74"tool_calls" : [], 75"tool_call_text_left_in" : [ 76"content" , 77"reasoning_content" 78 ], 79"fence_in_content" :true , 80"content_len" :1039 , 81"reasoning_len" :1761 , 82"call_text_in_inline_code" :true , 83"call_text_in_fence" :true , 84"content_head" :"## Сравнение двух форматов записи вызова\n\n### Формат 1 — «голый» вызов\n\n```\n<tool_call>{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}\n```\n\n(без обёртки в код-блок, просто как часть текста сообщения)\n\n**Как воспринимается системой:**\n- Парсер инструмента сканирует текст на наличие тега `<tool_call>`.\n- Находит его → извлекает JSON → валидирует схему → **исполняет** вызов.\n- Это директива к действию: «выполни инструмент и верни результат».\n\n**Где уместен:** в реальном агентном цикле, когда модель действительно хочет получить данные.\n\n---\n\n### Формат 2 — тот же вызов внутри код-блока\n\n````\n```\n<tool_call>{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}\n```\n````\n\n**Как воспринимается системой:**\n- Markdown-фенсы (```` ``` ````) сигнализируют: «это литеральный текст / пример кода».\n- Большинство парсеров **не** триггерят исполнение внутри fenced code block — содержимое трактуется как данные, а не как разметка.\n- Даже если парсер всё-таки найдёт тег, сам факт обёртки меняет **семантику**: автор явно говорит «вот" , 85"reasoning_head" :"The user asks me to think through a response step by step. They want me to compare two formats of a tool call record in my reasoning: a regular `<tool_call>{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}` and the same one inside a code block. They explicitly say NOT to make a real tool call — only the analysis is needed.\n\nSo I should NOT call the get_weather tool. I should just analyze and compare the two formats in my reasoning and response.\n\nLet me think about the differences:\n\n1. Regular format: `<tool_call>{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}` — this is a raw text representation that would be parsed by the system as an actual tool invocation. The system's parser looks for the `<tool_call>` tag and extracts the JSON to execute the tool call.\n\n2. Inside a code block: \n```\n<tool_call>{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}\n```\n— this is the same text but wrapped in markdown code fences. In this case, the system's parser might or might not recognize it as a tool call depending on implementation. Typically, code blocks are treated as literal text content and would NOT trigger a tool invocation. The code block formatting signals \"this is a code example, not an instruction to execute.\"\n\nKey differences:\n- Parsing behavior: raw vs. code-block-wrapped\n- Intent signaling: execution vs. illustration/documentation\n- Escaping/interpretation: code blocks preserve exact characters, raw text is interpreted as markup\n- In some systems, the tool call parser might strip code fences and still parse; in others, it would treat it as plain text\n- Semantic meaning: one says \"do this\", the other says \"here's what this looks like\"\n\nI'll write a thorough comparison in Russian since the user wrote in Russian.\n" 86 }, 87 { 88"id" :"4-turn-cut-by-max-tokens" , 89"expectation" :"NO call: the turn is cut by max_tokens, so a call written in the thinking stays text" , 90"stream" :false , 91"max_tokens" :60 , 92"reasoning_effort" :"high" , 93"wall_s" :1.86 , 94"finish_reason" :"length" , 95"tool_calls_returned" :0 , 96"tool_calls" : [], 97"tool_call_text_left_in" : [ 98"reasoning_content" 99 ], 100"fence_in_content" :false , 101"content_len" :0 , 102"reasoning_len" :225 , 103"call_text_in_inline_code" :false , 104"call_text_in_fence" :false , 105"content_head" :"" , 106"reasoning_head" :"We need answer user's request in Russian. User asks: \"Рассуждай подробно и длинно о том, как ты бы вызвал инструмент для погоды в Москве, и запиши этот вызов в размышлении отдельной строкой: <tool_call>{\"name\": \"get_weather\"," 107 }, 108 { 109"id" :"5-real-call-top-level-after-sentence" , 110"expectation" :"CALL: a real call at the top level of the answer, on the same line after a sentence" , 111"stream" :false , 112"max_tokens" :700 , 113"reasoning_effort" :"none" , 114"wall_s" :1.51 , 115"finish_reason" :"tool_calls" , 116"tool_calls_returned" :1 , 117"tool_calls" : [ 118 { 119"id" :"call_807a71d106cb40379f187534" , 120"type" :"function" , 121"function" : { 122"name" :"get_weather" , 123"arguments" :"{\"city\":\"\\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\"}" 124 } 125 } 126 ], 127"tool_call_text_left_in" : [], 128"fence_in_content" :false , 129"content_len" :15 , 130"reasoning_len" :0 , 131"call_text_in_inline_code" :false , 132"call_text_in_fence" :false , 133"content_head" :"Сейчас проверю." , 134"reasoning_head" :"" 135 }, 136 { 137"id" :"8-fenced-example-in-answer-no-thinking" , 138"expectation" :"NO call: fenced example in the visible answer, thinking off" , 139"stream" :false , 140"max_tokens" :700 , 141"reasoning_effort" :"none" , 142"wall_s" :1.38 , 143"finish_reason" :"stop" , 144"tool_calls_returned" :0 , 145"tool_calls" : [], 146"tool_call_text_left_in" : [ 147"content" 148 ], 149"fence_in_content" :true , 150"content_len" :89 , 151"reasoning_len" :0 , 152"call_text_in_inline_code" :true , 153"call_text_in_fence" :true , 154"content_head" :"```\n<tool_call>\n{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}\n</tool_call>\n```" , 155"reasoning_head" :"" 156 }, 157 { 158"id" :"6-plain-real-call" , 159"expectation" :"CALL: the ordinary path must keep working" , 160"stream" :false , 161"max_tokens" :700 , 162"reasoning_effort" :"config default" , 163"wall_s" :1.62 , 164"finish_reason" :"tool_calls" , 165"tool_calls_returned" :1 , 166"tool_calls" : [ 167 { 168"id" :"call_24f3fc984a314566b939ba42" , 169"type" :"function" , 170"function" : { 171"name" :"get_weather" , 172"arguments" :"{\"city\":\"\\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\"}" 173 } 174 } 175 ], 176"tool_call_text_left_in" : [], 177"fence_in_content" :false , 178"content_len" :0 , 179"reasoning_len" :109 , 180"call_text_in_inline_code" :false , 181"call_text_in_fence" :false , 182"content_head" :"" , 183"reasoning_head" :"Пользователь просит узнать погоду в Москве с помощью инструмента. Нужно вызвать get_weather с city=\"Москва\".\n" 184 }, 185 { 186"id" :"7-streaming-split-fence" , 187"expectation" :"NO call: streaming, the fence is split across chunks" , 188"stream" :true , 189"max_tokens" :700 , 190"reasoning_effort" :"config default" , 191"wall_s" :3.42 , 192"finish_reason" :"stop" , 193"tool_calls_returned" :0 , 194"tool_calls" : [], 195"tool_call_text_left_in" : [ 196"content" , 197"reasoning_content" 198 ], 199"fence_in_content" :true , 200"content_len" :107 , 201"reasoning_len" :935 , 202"call_text_in_inline_code" :true , 203"call_text_in_fence" :true , 204"content_head" :"```text\n<tool_call>\n{\n \"name\": \"get_weather\",\n \"arguments\": {\n \"city\": \"Москва\"\n }\n}\n</tool_call>\n```" , 205"reasoning_head" :"We need to respond to user in Russian. User asks: \"Ответь коротко: приведи пример вызова инструмента внутри код-блока, разбив его на несколько строк:\n\n```\n<tool_call>\n{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Москва\"}}\n</tool_call>\n```\nНичего не вызывай.\"\n\nNeed answer short, provide example tool call inside code block, split across multiple lines. Do not call any tool. Need likely output code block with multi-line JSON? They specifically show format with name/arguments. Need maybe:\n```\n<tool_call>\n{\n \"name\": \"get_weather\",\n \"arguments\": {\n \"city\": \"Москва\"\n }\n}\n</tool_call>\n```\nEnsure no actual tool invocation. Since they say nothing call. Final only code block maybe. Need be careful: If we output tool_call block maybe system might parse? They ask inside code block. We can put fenced code block. But if the content includes <tool_call> maybe could be interpreted? It's inside code block, likely safe. Need short.\n" 206 } 207 ], 208"tool_calls_from_reasoning_after" :0 209}