refactor(Core): decompose handleResponse and add ToolCallingRender system
build / build (push) Has been cancelled

- Extract handleResponse into focused helpers: processToolCall, findTool,
  reportToolNotFound, renderToolCalling, executeToolCall
- Introduce ToolCallingRender sealed interface (Suppress/Default/Custom)
  allowing tools to control how their invocations are rendered
- Add printToolCalling to PrintAdvanceMessageHandler contract
- Implement default tool calling rendering in PrintMessageHandler (blue text)
- Add WriteFileTool for file writing capabilities
- Fix "responce" → "response" typo across Java and Python files
- Improve PythonRunner docker error handling and output messages
- Update Gradle test configuration (maxHeapSize, test logging)

Signed-off-by: zacharias <alienfromdia@proton.me>
This commit is contained in:
2026-06-15 14:55:09 +02:00
committed by zacharias
parent ff0496eb61
commit d016ad9a48
16 changed files with 310 additions and 76 deletions
@@ -28,7 +28,7 @@ public class Message {
}
Thread t = new Thread(() -> {
apiApplication.getCore().getOllamaObject().addMessage(new OllamaMessage(OllamaMessageRole.USER, query));
apiApplication.getCore().handleResponce(apiApplication.getCore().qurryOllama());
apiApplication.getCore().handleResponse(apiApplication.getCore().qurryOllama());
});
t.start();
return ResponseEntity.ok("Query received");