{ "tools": [ { "name": "get_weather", "parameters": { "type": "object", "properties": { "city": { "type": "string" }, "days": { "type": "integer" } } } }, { "name": "write_file", "parameters": { "type": "object", "properties": { "path": { "type": "string" }, "content": { "type": "string" } } } } ], "xml": [ { "name": "text only", "input": "Hello there.\nNothing to call.", "thinking": false, "events": [ [ "content", "Hello there.\nNothing to call.", null, null ] ] }, { "name": "one call", "input": "\n\n\nParis\n\n\n3\n\n\n", "thinking": false, "events": [ [ "tool_call", "", "get_weather", { "city": "Paris", "days": 3 } ] ] }, { "name": "text then call", "input": "Let me check.\n\n\n\n\nRome\n\n\n", "thinking": false, "events": [ [ "content", "Let me check.", null, null ], [ "tool_call", "", "get_weather", { "city": "Rome" } ] ] }, { "name": "two calls", "input": "\n\n\nA\n\n\n\n\n\n\nx.txt\n\n\nline1\nline2\n\n\n", "thinking": false, "events": [ [ "tool_call", "", "get_weather", { "city": "A" } ], [ "tool_call", "", "write_file", { "path": "x.txt", "content": "line1\nline2" } ] ] }, { "name": "thinking then call", "input": "I should look it up.\n\n\n\n\nOslo\n\n\n", "thinking": true, "events": [ [ "reasoning", "I should look it up.", null, null ], [ "tool_call", "", "get_weather", { "city": "Oslo" } ] ] }, { "name": "undeclared tool stays text", "input": "\n\n\n1\n\n\n", "thinking": false, "events": [ [ "content", "\n\n\n1\n\n\n", null, null ] ] } ], "json": [ { "name": "json one call", "input": "\n{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Paris\", \"days\": 3}}\n", "thinking": false, "events": [ [ "tool_call", "", "get_weather", { "city": "Paris", "days": 3 } ] ] }, { "name": "json text then call", "input": "Let me check.\n\n\n{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Rome\"}}\n", "thinking": false, "events": [ [ "content", "Let me check.", null, null ], [ "tool_call", "", "get_weather", { "city": "Rome" } ] ] }, { "name": "json two calls", "input": "\n{\"name\": \"get_weather\", \"arguments\": {\"city\": \"A\"}}\n\n\n{\"name\": \"write_file\", \"arguments\": {\"path\": \"x.txt\", \"content\": \"line1\\nline2\"}}\n", "thinking": false, "events": [ [ "tool_call", "", "get_weather", { "city": "A" } ], [ "tool_call", "", "write_file", { "path": "x.txt", "content": "line1\nline2" } ] ] }, { "name": "json arguments as a string", "input": "\n{\"name\": \"get_weather\", \"arguments\": \"{\\\"city\\\": \\\"Oslo\\\"}\"}\n", "thinking": false, "events": [ [ "tool_call", "", "get_weather", { "city": "Oslo" } ] ] }, { "name": "json parameters key", "input": "\n{\"name\": \"get_weather\", \"parameters\": {\"city\": \"Kyiv\"}}\n", "thinking": false, "events": [ [ "tool_call", "", "get_weather", { "city": "Kyiv" } ] ] }, { "name": "json thinking then call", "input": "I should look it up.\n\n\n{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Oslo\"}}\n", "thinking": true, "events": [ [ "reasoning", "I should look it up.", null, null ], [ "tool_call", "", "get_weather", { "city": "Oslo" } ] ] }, { "name": "json undeclared tool stays text", "input": "\n{\"name\": \"launch_missiles\", \"arguments\": {}}\n", "thinking": false, "events": [ [ "content", "\n{\"name\": \"launch_missiles\", \"arguments\": {}}\n", null, null ] ] }, { "name": "json in a fence", "input": "\n```json\n{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Lima\"}}\n```\n", "thinking": false, "events": [ [ "tool_call", "", "get_weather", { "city": "Lima" } ] ] } ] }