When using FastFlowLM with OpenCode and Gemma 4 E4B model, I observed frequent tool call failures, by inspecting the log I observed the likely cause to be wrong data serialization
{
"content": "",
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"filePath\":\"./src/main/java/my/path/to/JavaClass.java\"}",
"name": "read"
},
"id": "call_1777830235_96",
"type": "function"
},
{
"function": {
"arguments": "{\"filePath\":\"./src/main/java/my/path/to/OtherClass.java\"}",
"name": "read"
},
"id": "call_1777830239_97",
"type": "function"
}
]
},
Invalid input for tool read: JSON parsing failed: Text: {{\\\"filePath\\\":\\\"./src/main/java/my/path/to/JavaClass.java\\\\"}}.
Error message: JSON Parse error: Expected '}'
When using FastFlowLM with OpenCode and Gemma 4 E4B model, I observed frequent tool call failures, by inspecting the log I observed the likely cause to be wrong data serialization
This results in error:
Probably related to #483