Class FileHandler
java.lang.Object
me.zacharias.chat.core.files.FileHandler
Base class responsible for the
me.zacharias.chat.core.files related systems-
Constructor Summary
ConstructorsConstructorDescriptionFileHandler(String baseDirectory) Creates a new instance as well as setting theinstanceto this new one -
Method Summary
Modifier and TypeMethodDescriptionstatic FileHandlerstatic ArrayList<Pair<? extends OllamaTool, String>> getTools()Returns a list of allOllamaTool's this module addsProvides a relative path fromrootto file
-
Constructor Details
-
FileHandler
Creates a new instance as well as setting theinstanceto this new one- Parameters:
baseDirectory- the directory to be used as base directory
-
-
Method Details
-
getInstance
-
getTools
Returns a list of allOllamaTool's this module adds- Returns:
-
resolve
- Throws:
IOException
-
readFile
- Parameters:
filename-- Returns:
- Throws:
FileHandlerException
-
path
-