Extracted the external tool base for python runner
build / build (push) Has been cancelled

Fixed URL building in APITool.java.
Updated libraries for API, Launcher.
Started applying NotNull annotation to methods and arguments in Core.java.
Started handeling the big init block in Core.java.
Added overloaded constructor for Core.java and made Core.ollamaIP a variabled that's definible
Updated Tool.addTool return for 400 error.
This commit is contained in:
Zacharias committed 2026-05-04 14:23:26 +02:00
1 parent 943c8470a5
commit 96a6ed169e
9 files changed
+83 -48

No files matched your search

@@ -65,7 +65,7 @@ public class APITool extends OllamaFunctionTool {
@Override
public OllamaToolRespnce function(OllamaFunctionArgument... args) {
UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(requestUrl);
UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(requestUrl);
for (OllamaFunctionArgument arg : args) {
builder.queryParam(arg.argument(), arg.value());
}
@@ -34,7 +34,7 @@ public class Tool {
}
return ResponseEntity.ok(new NewToolResponse(request.getName(), request.getDescription(), arguments));
} else {
return new ResponseEntity<>("Tool already exists", null, 400);
return ResponseEntity.status(400).body("Tool already exists");
}
}
}