Enhanced tool management in OllamaObject and added Maven publishing configuration.
Some checks failed
build / build (push) Has been cancelled
Some checks failed
build / build (push) Has been cancelled
- Updated `OllamaObject` to support tool registration with sources. - Improved error handling and debug logging in multiple classes. - Added Maven plugin and publication setup in `build.gradle`. - Updated version to `1.3`. Signed-off-by: Zacharias <zacharias@4zellen.se>
This commit is contained in:
@@ -109,6 +109,7 @@ public class Display {
|
||||
/bye Exits the program.
|
||||
/write Flushes the current log stream to file.
|
||||
/list Lists all available tools.
|
||||
/corelist Lists all tools according to the OllamaObject.
|
||||
/working Prints the current working directories.
|
||||
/peek Peeks the current memory.
|
||||
""");
|
||||
@@ -153,6 +154,14 @@ public class Display {
|
||||
writeLog("Function: " + funtion.getKey().name() + "(" + args + ") [" + funtion.getValue() + "]");
|
||||
}
|
||||
break;
|
||||
case "corelist":
|
||||
writeLog("Tools installed in this instance acording to the coire OllamaObject");
|
||||
|
||||
for(Pair<OllamaTool, String> funtion : core.getOllamaObject().getTools()) {
|
||||
System.out.println("> Function: " + funtion.getKey().toString());
|
||||
writeLog("Function: " + funtion.getKey().toString());
|
||||
}
|
||||
break;
|
||||
case "working":
|
||||
System.out.println("Working directories:\n" +
|
||||
" Data: " + Core.DATA_DIR.getAbsolutePath() + "\n" +
|
||||
|
||||
Reference in New Issue
Block a user