{ "request": { "model": "qwen3:0.6b", "messages": [ { "role": "user", "content": "Read the file src/app.py and report the first 2000 bytes." }, { "role": "assistant", "content": "", "tool_calls": [ { "id": "call_3nn9ernp", "function": { "index": 0, "name": "read_file", "arguments": { "path": "src/app.py", "max_bytes": 2000 } } } ] } ], "tools": [ { "type": "function", "function": { "name": "read_file", "description": "Read a file from disk", "parameters": { "type": "object", "properties": { "path": { "type": "string", "description": "Path to the file" }, "max_bytes": { "type": "integer", "description": "Max bytes to read" } }, "required": [ "path", "max_bytes" ] } } } ] }, "status": 400, "body": "{\"error\":{\"message\":\"json: cannot unmarshal object into Go struct field .messages.tool_calls.function.arguments of type string\",\"type\":\"invalid_request_error\",\"param\":null,\"code\":null}}" }