Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addFileTools(String) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Initializes the
FileHandlersingleton with the given base directory and adds its tools. - addMemory(String, String) - Method in class me.zacharias.chat.core.memory.CoreMemory
-
Sets the memory.
- AddMemoryFunction - Class in me.zacharias.chat.core.memory
-
Provides the add_memory function.
This function adds a string to the memory. - AddMemoryFunction() - Constructor for class me.zacharias.chat.core.memory.AddMemoryFunction
- addMessage(OllamaMessage) - Method in class me.zacharias.chat.ollama.OllamaObject
-
Adds a message to the Ollama Object
- addMessage(OllamaMessage) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Adds a message to the Ollama Object
- addMessages(OllamaMessage...) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Adds messages to the Ollama Object
- addObject(String, Object) - Static method in class me.zacharias.chat.core.GlobalObjects
- addProperty(String, OllamaPerameter.OllamaPerameterBuilder.Type, String) - Method in class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder
-
Creates a new instance of
OllamaPerameter.OllamaPerameterBuilder. - addProperty(String, OllamaPerameter.OllamaPerameterBuilder.Type, String, boolean) - Method in class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder
-
Creates a new instance of
OllamaPerameter.OllamaPerameterBuilder. - addTool(OllamaFunctionTool, String) - Method in class me.zacharias.chat.core.Core
-
Adds a new tool to the System
- addTool(OllamaFunctionTool, String) - Method in class me.zacharias.chat.ollama.OllamaFunctionTools.OllamaFunctionToolsBuilder
- addTool(OllamaTool) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Adds a tool to the Ollama Object Assumes the tool is from an external source, see
OllamaObject.OllamaObjectBuilder.addTool(OllamaTool, String)to specify the source - addTool(OllamaTool, String) - Method in class me.zacharias.chat.ollama.OllamaObject
-
Adds a tool to the Ollama Object
- addTool(OllamaTool, String) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Adds a tool to the Ollama Object This allows you to specify the source of the tool, see
OllamaObject.OllamaObjectBuilder.addTool(OllamaTool)to add a tool from an external source - addTools(ArrayList) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Adds tools to the Ollama Object This allows you to specify the source of the tools, see
OllamaObject.OllamaObjectBuilder.addToolsExternal(ArrayList)} to add tools from an external source - addTools(HashMap) - Method in class me.zacharias.chat.ollama.OllamaFunctionTools.OllamaFunctionToolsBuilder
- addTools(Pair...) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Adds tools to the Ollama Object This allows you to specify the source of the tools, see
OllamaObject.OllamaObjectBuilder.addTools(OllamaTool[])to add tools from an external source - addTools(OllamaFunctionTools) - Method in class me.zacharias.chat.core.Core
-
Adds a list of tools to the System
- addTools(OllamaTool...) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Adds tools to the Ollama Object Assumes the tools are from an external source, see
OllamaObject.OllamaObjectBuilder.addTools(Pair[])} to specify the source - addToolsExternal(ArrayList) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Adds tools to the Ollama Object Assumes the tools are from an external source, see
OllamaObject.OllamaObjectBuilder.addTools(ArrayList)} to specify the source - API - Static variable in class me.zacharias.chat.core.Core.Source
-
Represents a tool defined through an API system.
- argument() - Method in record class me.zacharias.chat.ollama.OllamaFunctionArgument
-
Gets the argument name
- ARRAY - Enum constant in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Represents a array parameter.
- ASSISTANT - Enum constant in enum class me.zacharias.chat.ollama.OllamaMessageRole
-
Represents an assistant message.
B
- BOOLEAN - Enum constant in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Represents a boolean parameter.
- build() - Method in class me.zacharias.chat.ollama.OllamaFunctionTools.OllamaFunctionToolsBuilder
- build() - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Builds the
OllamaObject - build() - Method in class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder
-
Builds the
OllamaPerameter - builder() - Static method in class me.zacharias.chat.ollama.OllamaFunctionTools
- builder() - Static method in class me.zacharias.chat.ollama.OllamaObject
-
Creates a new instance of OllamaObjectBuilder.
- builder() - Static method in class me.zacharias.chat.ollama.OllamaPerameter
-
Creates a new instance of
OllamaPerameter.OllamaPerameterBuilder.
C
- CACHE_DIRECTORY - Static variable in class me.zacharias.chat.core.Core
- color() - Method in interface me.zacharias.chat.core.PrintMessageHandler
-
Gets if color is supported by the PrintMessageHandler.
- Core - Class in me.zacharias.chat.core
-
The Main class for the System, responsible for managing the OllamaObject, tools, and the Ollama API.
- Core(PrintAdvanceMessageHandler) - Constructor for class me.zacharias.chat.core.Core
-
Creates a new instance of Core with the provided PrintMessageHandler
- Core(PrintAdvanceMessageHandler, String) - Constructor for class me.zacharias.chat.core.Core
-
Creates a new instance of Core with the provided PrintMessageHandler, with a specific IP used for Ollama
- CORE - Static variable in class me.zacharias.chat.core.Core.Source
-
Represents an internally defined tool that is part of the Core system.
- Core.Source - Class in me.zacharias.chat.core
-
Represents the source of a tool.
- CoreMemory - Class in me.zacharias.chat.core.memory
-
CoreMemory is a class that provides a way to store and retrieve strings from a file.
This is meant to be used as a way to store and retrieve strings from a file. - CoreMemory(String) - Constructor for class me.zacharias.chat.core.memory.CoreMemory
-
Creates a new instance of CoreMemory.
D
- DATA - Static variable in class me.zacharias.chat.core.Core
- DATA_DIR - Static variable in class me.zacharias.chat.core.Core
- DATA_FILES - Static variable in class me.zacharias.chat.core.files.FileHandlerLocation
- deconstructOllamaFunctionArgument(OllamaFunctionArgument) - Static method in record class me.zacharias.chat.ollama.OllamaFunctionArgument
- deconstructOllamaFunctionArguments(ArrayList) - Static method in record class me.zacharias.chat.ollama.OllamaFunctionArgument
- deconstructOllamaFunctionArguments(OllamaFunctionArgument...) - Static method in record class me.zacharias.chat.ollama.OllamaFunctionArgument
- description() - Method in class me.zacharias.chat.core.files.tools.ReadFileTool
- description() - Method in class me.zacharias.chat.core.memory.AddMemoryFunction
- description() - Method in class me.zacharias.chat.core.memory.GetMemoriesFunction
- description() - Method in class me.zacharias.chat.core.memory.GetMemoryFunction
- description() - Method in class me.zacharias.chat.core.memory.GetMemoryIdentitiesFunction
- description() - Method in class me.zacharias.chat.core.memory.RemoveMemoryFunction
- description() - Method in class me.zacharias.chat.ollama.OllamaFunctionTool
-
The description of the tool This is used by Ollama to know what the tool does
E
- enablePlugins(File) - Method in class me.zacharias.chat.core.Core
- ENUM - Enum constant in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Represents a enum parameter.
- equals(Object) - Method in record class me.zacharias.chat.ollama.OllamaFunctionArgument
-
Indicates whether some other object is "equal to" this one.
- EXTERNAL - Static variable in class me.zacharias.chat.core.Core.Source
-
Represents an external tool that is not derived from the Core.
F
- FileHandler - Class in me.zacharias.chat.core.files
-
Base class responsible for the
me.zacharias.chat.core.filesrelated systems - FileHandler(String) - Constructor for class me.zacharias.chat.core.files.FileHandler
-
Creates a new instance as well as setting the
FileHandler.instanceto this new one - FileHandlerException - Exception Class in me.zacharias.chat.core.files
- FileHandlerException(String) - Constructor for exception class me.zacharias.chat.core.files.FileHandlerException
- FileHandlerLocation - Class in me.zacharias.chat.core.files
- FileHandlerLocation() - Constructor for class me.zacharias.chat.core.files.FileHandlerLocation
- flushLog() - Static method in class me.zacharias.chat.core.Core
-
Flushes the log file
- forEach(Consumer) - Method in class me.zacharias.chat.ollama.OllamaFunctionTools
- format(String) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Sets the format of the Ollama Object as a JSON schema.
- fromRole(String) - Static method in enum class me.zacharias.chat.ollama.OllamaMessageRole
-
Gets the role of the message from a string.
- function(OllamaFunctionArgument...) - Method in class me.zacharias.chat.core.files.tools.ReadFileTool
- function(OllamaFunctionArgument...) - Method in class me.zacharias.chat.core.memory.AddMemoryFunction
- function(OllamaFunctionArgument...) - Method in class me.zacharias.chat.core.memory.GetMemoriesFunction
- function(OllamaFunctionArgument...) - Method in class me.zacharias.chat.core.memory.GetMemoryFunction
- function(OllamaFunctionArgument...) - Method in class me.zacharias.chat.core.memory.GetMemoryIdentitiesFunction
- function(OllamaFunctionArgument...) - Method in class me.zacharias.chat.core.memory.RemoveMemoryFunction
- function(OllamaFunctionArgument...) - Method in class me.zacharias.chat.ollama.OllamaFunctionTool
-
The function of the tool.
This is used by Ollama to call the tool.
ThrowOllamaToolErrorExceptionif the tool encounters an error instead of normal exceptions.
G
- getContent() - Method in class me.zacharias.chat.ollama.OllamaMessage
- getError() - Method in exception class me.zacharias.chat.ollama.exceptions.OllamaToolErrorException
-
Gets the error from the tool.
- getError() - Method in class me.zacharias.chat.ollama.OllamaToolError
-
Gets the error from the tool.
- getFormat() - Method in class me.zacharias.chat.ollama.OllamaObject
-
Gets the format of the Ollama Object.
- getFuntionTools() - Method in class me.zacharias.chat.core.Core
-
Gets the list of tools added to the System
- getInstance() - Static method in class me.zacharias.chat.core.files.FileHandler
- getInstance() - Static method in class me.zacharias.chat.core.LaunchOptions
-
Gets the singleton instance of the LaunchOptions class.
- getInstance() - Static method in class me.zacharias.chat.core.memory.CoreMemory
-
Gets the singleton instance of CoreMemory.
- getKeep_alive() - Method in class me.zacharias.chat.ollama.OllamaObject
-
Gets the keep alive of the Ollama Object.
- getKey() - Method in class me.zacharias.chat.core.Pair
-
Gets the key of the pair.
- getMemories() - Method in class me.zacharias.chat.core.memory.CoreMemory
-
Gets all memories as a JSON string.
- getMemoriesArray() - Method in class me.zacharias.chat.core.memory.CoreMemory
- GetMemoriesFunction - Class in me.zacharias.chat.core.memory
- GetMemoriesFunction() - Constructor for class me.zacharias.chat.core.memory.GetMemoriesFunction
- getMemoriesIdentity() - Method in class me.zacharias.chat.core.memory.CoreMemory
-
Gets the memory.
- getMemory(String) - Method in class me.zacharias.chat.core.memory.CoreMemory
- GetMemoryFunction - Class in me.zacharias.chat.core.memory
-
Provides the get_memory function.
This function retrives all the memory. - GetMemoryFunction() - Constructor for class me.zacharias.chat.core.memory.GetMemoryFunction
- GetMemoryIdentitiesFunction - Class in me.zacharias.chat.core.memory
- GetMemoryIdentitiesFunction() - Constructor for class me.zacharias.chat.core.memory.GetMemoryIdentitiesFunction
- getMessages() - Method in class me.zacharias.chat.ollama.OllamaObject
-
Gets the messages
- getModel() - Method in class me.zacharias.chat.ollama.OllamaObject
-
Gets the model of the Ollama Object.
- getObject(String) - Static method in class me.zacharias.chat.core.GlobalObjects
- getOllamaObject() - Method in class me.zacharias.chat.core.Core
-
Gets the Ollama Object
- getOptions() - Method in class me.zacharias.chat.ollama.OllamaObject
-
Gets the options of the Ollama Object.
- getPort() - Method in class me.zacharias.chat.core.LaunchOptions
-
Gets the port number that the API server should use.
- getProperties() - Method in class me.zacharias.chat.ollama.OllamaPerameter
-
Gets the properties of the
OllamaPerameter - getRedirectOutput() - Method in class me.zacharias.chat.core.LaunchOptions
-
Gets the file path that the program should redirect output to.
- getRequired() - Method in class me.zacharias.chat.ollama.OllamaPerameter
-
Gets the required parameters of the
OllamaPerameter - getResponse() - Method in class me.zacharias.chat.ollama.OllamaToolRespnce
-
Gets the response from the tool.
- getRole() - Method in class me.zacharias.chat.ollama.OllamaMessage
- getRole() - Method in enum class me.zacharias.chat.ollama.OllamaMessageRole
-
Gets the role of the message.
- getServerCredentials() - Method in class me.zacharias.chat.core.LaunchOptions
-
get the credentials for the API Server
- getTool() - Method in exception class me.zacharias.chat.ollama.exceptions.OllamaToolErrorException
-
Gets the tool that caused the error.
- getTool() - Method in class me.zacharias.chat.ollama.OllamaToolRespnce
-
Gets the tool that responded.
- getTool() - Method in class me.zacharias.chat.plugin.loader.Loader
-
Mock example!
- getTools() - Static method in class me.zacharias.chat.core.files.FileHandler
-
Returns a list of all
OllamaTool's this module adds - getTools() - Method in class me.zacharias.chat.ollama.OllamaObject
-
Gets the tools
- getType() - Method in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Gets the type of the parameter.
- getValue() - Method in class me.zacharias.chat.core.Pair
-
Gets the value of the pair.
- GlobalObjects - Class in me.zacharias.chat.core
- GlobalObjects() - Constructor for class me.zacharias.chat.core.GlobalObjects
H
- handleResponce(JSONObject) - Method in class me.zacharias.chat.core.Core
-
Handles the response from Ollama By Processing the response, handles Function Calls, Logs relevant information, Appends information to the OllamaObject, Prints messages to the User.
- hashCode() - Method in record class me.zacharias.chat.ollama.OllamaFunctionArgument
-
Returns a hash code value for this object.
I
- INT - Enum constant in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Represents an integer parameter.
- INTERNAL - Static variable in class me.zacharias.chat.core.Core.Source
-
Represents an internally defined tool that is derived from Core Components but not the Core itself.
- isAutoAccept() - Method in class me.zacharias.chat.core.LaunchOptions
-
Gets if the program should automatically accept prompts.
- isLoadOld() - Method in class me.zacharias.chat.core.LaunchOptions
-
Retries if old messages should be loaded.
- isNotDisplay() - Method in class me.zacharias.chat.core.LaunchOptions
-
Gets if the program is running in display mode.
- isServerCredentialsEnabled() - Method in class me.zacharias.chat.core.LaunchOptions
-
Gets weather or not the API Server requires credentials
- isServerMode() - Method in class me.zacharias.chat.core.LaunchOptions
-
Gets if the program is running in API server mode.
- isShowFullMessage() - Method in class me.zacharias.chat.core.LaunchOptions
-
Gets if the full message should be shown in the display.
- isStream() - Method in class me.zacharias.chat.ollama.OllamaObject
-
Gets if the Ollama Object is streamed.
- iterator() - Method in class me.zacharias.chat.ollama.OllamaFunctionTools
K
- keep_alive(int) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Sets the keep alive of the Ollama Object.
- keep_alive(String) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Sets the keep alive of the Ollama Object.
This is a string formated as "minutes"m or "hours"h or "days"d
L
- LaunchOptions - Class in me.zacharias.chat.core
-
The Configuration class, where arguments are stored and retrieved.
- ListFiles - Class in me.zacharias.chat.core.files
- ListFiles() - Constructor for class me.zacharias.chat.core.files.ListFiles
- Loader - Class in me.zacharias.chat.plugin.loader
- Loader() - Constructor for class me.zacharias.chat.plugin.loader.Loader
M
- me.zacharias.chat.core - package me.zacharias.chat.core
- me.zacharias.chat.core.files - package me.zacharias.chat.core.files
- me.zacharias.chat.core.files.tools - package me.zacharias.chat.core.files.tools
- me.zacharias.chat.core.memory - package me.zacharias.chat.core.memory
- me.zacharias.chat.ollama - package me.zacharias.chat.ollama
- me.zacharias.chat.ollama.exceptions - package me.zacharias.chat.ollama.exceptions
- me.zacharias.chat.ollama.utils - package me.zacharias.chat.ollama.utils
- me.zacharias.chat.plugin.loader - package me.zacharias.chat.plugin.loader
N
- name() - Method in class me.zacharias.chat.core.files.tools.ReadFileTool
- name() - Method in class me.zacharias.chat.core.memory.AddMemoryFunction
- name() - Method in class me.zacharias.chat.core.memory.GetMemoriesFunction
- name() - Method in class me.zacharias.chat.core.memory.GetMemoryFunction
- name() - Method in class me.zacharias.chat.core.memory.GetMemoryIdentitiesFunction
- name() - Method in class me.zacharias.chat.core.memory.RemoveMemoryFunction
- name() - Method in class me.zacharias.chat.ollama.OllamaFunctionTool
-
The name of the tool This is used by Ollama to know what the tool is
O
- OBJECT - Enum constant in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Represents a object parameter.
- OllamaFunctionArgument - Record Class in me.zacharias.chat.ollama
-
Represents an argument passed to a tool.
- OllamaFunctionArgument(String, Object) - Constructor for record class me.zacharias.chat.ollama.OllamaFunctionArgument
-
Creates a new instance of OllamaFunctionArgument.
This is used by Ollama to pass arguments to a tool. - OllamaFunctionTool - Class in me.zacharias.chat.ollama
-
Represents a tool that Ollama can call.
- OllamaFunctionTool() - Constructor for class me.zacharias.chat.ollama.OllamaFunctionTool
- OllamaFunctionTools - Class in me.zacharias.chat.ollama
- OllamaFunctionTools.OllamaFunctionToolsBuilder - Class in me.zacharias.chat.ollama
- OllamaFunctionToolsBuilder() - Constructor for class me.zacharias.chat.ollama.OllamaFunctionTools.OllamaFunctionToolsBuilder
- OllamaMessage - Class in me.zacharias.chat.ollama
-
Represents a message sent by a Tool, Assistant(Ollama), or User.
- OllamaMessage(OllamaMessageRole, String) - Constructor for class me.zacharias.chat.ollama.OllamaMessage
-
Creates a new instance of OllamaMessage.
- OllamaMessageRole - Enum Class in me.zacharias.chat.ollama
-
Represents the role of a message.
- OllamaMessageToolCall - Class in me.zacharias.chat.ollama
-
Represents a message sent by a Tool.
- OllamaMessageToolCall(OllamaMessageRole, String, JSONArray) - Constructor for class me.zacharias.chat.ollama.OllamaMessageToolCall
-
Creates a new instance of OllamaMessage
- OllamaObject - Class in me.zacharias.chat.ollama
-
Represents an Ollama Object.
- OllamaObject.OllamaObjectBuilder - Class in me.zacharias.chat.ollama
-
Represents a builder for OllamaObject.
- OllamaObjectBuilder() - Constructor for class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Creates a new instance of
OllamaObject.OllamaObjectBuilder. - OllamaPerameter - Class in me.zacharias.chat.ollama
-
Represents the parameters of a tool.
- OllamaPerameter.OllamaPerameterBuilder - Class in me.zacharias.chat.ollama
-
Represents a builder for
OllamaPerameter. - OllamaPerameter.OllamaPerameterBuilder.Type - Enum Class in me.zacharias.chat.ollama
-
Represents the type of parameter.
- OllamaPerameterBuilder() - Constructor for class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder
- OllamaTool - Interface in me.zacharias.chat.ollama
-
Represents a tool.
- OllamaToolError - Class in me.zacharias.chat.ollama
-
Represents an error from a tool.
This is used by a tool to indicate to Ollama that an error occurred. - OllamaToolError(String) - Constructor for class me.zacharias.chat.ollama.OllamaToolError
-
Creates a new instance of OllamaToolError.
- OllamaToolErrorException - Exception Class in me.zacharias.chat.ollama.exceptions
-
Represents an error from a tool.
This is used internally by tools instead ofException, to then be handled gracefully byCore.handleResponce(JSONObject) - OllamaToolErrorException(String, Exception) - Constructor for exception class me.zacharias.chat.ollama.exceptions.OllamaToolErrorException
- OllamaToolErrorException(String, String) - Constructor for exception class me.zacharias.chat.ollama.exceptions.OllamaToolErrorException
-
Creates a new instance of OllamaToolErrorException.
- OllamaToolRespnce - Class in me.zacharias.chat.ollama
-
Represents a response from a tool.
- OllamaToolRespnce(String, String) - Constructor for class me.zacharias.chat.ollama.OllamaToolRespnce
-
Creates a new instance of
OllamaToolRespnce. - option(String, String) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Sets an option of the Ollama Object.
- options(Map) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Sets the options of the Ollama Object.
P
- Pair<K,
V> - Class in me.zacharias.chat.core -
A simple Pair class.
- Pair(K, V) - Constructor for class me.zacharias.chat.core.Pair
-
Creates a new instance of Pair.
- parameters() - Method in class me.zacharias.chat.core.files.tools.ReadFileTool
- parameters() - Method in class me.zacharias.chat.core.memory.AddMemoryFunction
- parameters() - Method in class me.zacharias.chat.core.memory.GetMemoriesFunction
- parameters() - Method in class me.zacharias.chat.core.memory.GetMemoryFunction
- parameters() - Method in class me.zacharias.chat.core.memory.GetMemoryIdentitiesFunction
- parameters() - Method in class me.zacharias.chat.core.memory.RemoveMemoryFunction
- parameters() - Method in class me.zacharias.chat.ollama.OllamaFunctionTool
-
The parameters of the tool This is used by Ollama to know what parameters the tool takes If null, the tool does not take any parameters
- path(File) - Method in class me.zacharias.chat.core.files.FileHandler
-
Provides a relative path from
FileHandler.rootto file - PLUGIN_DIRECTORY - Static variable in class me.zacharias.chat.core.Core
- PrintAdvanceMessageHandler - Interface in me.zacharias.chat.core
-
Represents a
PrintAdvanceMessageHandler. - printError(String) - Method in interface me.zacharias.chat.core.PrintMessageHandler
-
Default method to print error messages to the user or API Client.
- printErrorMessage(OllamaMessage) - Method in interface me.zacharias.chat.core.PrintAdvanceMessageHandler
-
Default method to print error messages to the user or API Client.
- printErrorMessage(OllamaMessage) - Method in interface me.zacharias.chat.core.PrintMessageHandler
-
This is a default implementation when wrapping
PrintAdvanceMessageHandlerto this "simpler"PrintMessageHandlerDefault method to print error messages to the user or API Client. - printMessage(String) - Method in interface me.zacharias.chat.core.PrintMessageHandler
-
Handles the printing of a message.
- printMessage(OllamaMessage) - Method in interface me.zacharias.chat.core.PrintAdvanceMessageHandler
-
Expected to handle the printing of the provided
OllamaMessage. - printMessage(OllamaMessage) - Method in interface me.zacharias.chat.core.PrintMessageHandler
-
This is a default implementation when wrapping
PrintAdvanceMessageHandlerto this "simpler"PrintMessageHandler - PrintMessageHandler - Interface in me.zacharias.chat.core
-
Represents a PrintMessageHandler.
Q
- qurryOllama() - Method in class me.zacharias.chat.core.Core
-
Sends the OllamaObject to Ollama
R
- readFile(String) - Method in class me.zacharias.chat.core.files.FileHandler
- ReadFileTool - Class in me.zacharias.chat.core.files.tools
- ReadFileTool() - Constructor for class me.zacharias.chat.core.files.tools.ReadFileTool
- removeMemory(String) - Method in class me.zacharias.chat.core.memory.CoreMemory
-
Removes the memory.
- RemoveMemoryFunction - Class in me.zacharias.chat.core.memory
-
Provides the remove_memory function.
This function removes a value from the memory. - RemoveMemoryFunction() - Constructor for class me.zacharias.chat.core.memory.RemoveMemoryFunction
- removeObject(String) - Static method in class me.zacharias.chat.core.GlobalObjects
- removeProperty(String) - Method in class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder
-
Removes a property from the parameters.
- removeTool(String) - Method in class me.zacharias.chat.core.Core
- removeTool(OllamaTool) - Method in class me.zacharias.chat.ollama.OllamaObject
- required(String) - Method in class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder
-
Creates a new instance of
OllamaPerameter.OllamaPerameterBuilder. - resolve(String) - Method in class me.zacharias.chat.core.files.FileHandler
S
- setAutoAccept(boolean) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets if the program should automatically accept prompts.
- setDataDirectory(String) - Static method in class me.zacharias.chat.core.Core
- setInstance(LaunchOptions) - Static method in class me.zacharias.chat.core.LaunchOptions
-
Sets the singleton instance of the LaunchOptions class.
- setKey(K) - Method in class me.zacharias.chat.core.Pair
-
Sets the key of the pair.
- setLoadOld(boolean) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets if old messages should be loaded.
- setModel(String) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Sets the model of the Ollama Object
- setNotDisplay(boolean) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets if the program is running in display mode.
- setOllamaObject(OllamaObject) - Method in class me.zacharias.chat.core.Core
-
Sets the
Core.ollamaObjectobject to the provided argument, Also adds the memory base system. - setOllamaObjectNoMemory(OllamaObject) - Method in class me.zacharias.chat.core.Core
-
Sets the
Core.ollamaObjectobject to the provided argument, Dose not add the base system for memory. - setPort(int) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets the port number that the API server should use.
- setRedirectOutput(String) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets the file path that the program should redirect output to.
- setServerCredentials(String) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets the credentials used by the API Server
- setServerCredentialsEnabled(boolean) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets weather credentials are needed for the API Server
- setServerMode(boolean) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets if the program is running in API server mode.
- setShowFullMessage(boolean) - Method in class me.zacharias.chat.core.LaunchOptions
-
Sets if the full message should be shown in the display.
- setValue(V) - Method in class me.zacharias.chat.core.Pair
-
Sets the value of the pair.
- source - Variable in class me.zacharias.chat.ollama.OllamaFunctionTool
-
This field is set via Reflection injection from
OllamaObject.addTool(OllamaTool, String). - Source() - Constructor for class me.zacharias.chat.core.Core.Source
- spliterator() - Method in class me.zacharias.chat.ollama.OllamaFunctionTools
- stream(boolean) - Method in class me.zacharias.chat.ollama.OllamaObject.OllamaObjectBuilder
-
Deprecated.This should be false due to being broken in the current version of this system
- STRING - Enum constant in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Represents a string parameter.
- SYSTEM - Enum constant in enum class me.zacharias.chat.ollama.OllamaMessageRole
-
Represents a system message.
- SystemMessage - Class in me.zacharias.chat.ollama.utils
- SystemMessage(String) - Constructor for class me.zacharias.chat.ollama.utils.SystemMessage
-
Creates a new instance of OllamaMessage.
T
- TOOL - Enum constant in enum class me.zacharias.chat.ollama.OllamaMessageRole
-
Represents a tool message
- toString() - Method in record class me.zacharias.chat.ollama.OllamaFunctionArgument
-
Returns a string representation of this record class.
- toString() - Method in class me.zacharias.chat.ollama.OllamaFunctionTool
- toString() - Method in class me.zacharias.chat.ollama.OllamaMessage
- toString() - Method in class me.zacharias.chat.ollama.OllamaMessageToolCall
- toString() - Method in class me.zacharias.chat.ollama.OllamaObject
- toString() - Method in class me.zacharias.chat.ollama.OllamaPerameter
U
- USER - Enum constant in enum class me.zacharias.chat.ollama.OllamaMessageRole
-
Represents a user message.
V
- value() - Method in record class me.zacharias.chat.ollama.OllamaFunctionArgument
-
Gets the argument value.
This needs to be cast to the correct type by the tool itself - valueOf(String) - Static method in enum class me.zacharias.chat.ollama.OllamaMessageRole
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class me.zacharias.chat.ollama.OllamaMessageRole
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class me.zacharias.chat.ollama.OllamaPerameter.OllamaPerameterBuilder.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- writeLog(String) - Static method in class me.zacharias.chat.core.Core
-
Writes a message to the log file
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form