Class RemoveMemoryFunction
java.lang.Object
me.neurodock.llm.tools.FunctionTool
me.neurodock.core.memory.RemoveMemoryFunction
- All Implemented Interfaces:
Tool
Provides the remove_memory function.
This function removes a value from the memory.
This function removes a value from the memory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe description of the tool.@NotNull ToolResponsefunction(ToolArguments args) Invokes the tool.@NotNull Stringname()The name of the tool.@NotNull ToolParametersThe parameters this tool accepts.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Tool
renderCalling
-
Constructor Details
-
RemoveMemoryFunction
public RemoveMemoryFunction()
-
-
Method Details
-
name
Description copied from class:FunctionToolThe name of the tool. Used by the model to identify what it's calling.- Specified by:
namein interfaceTool- Specified by:
namein classFunctionTool- Returns:
- the tool's name
-
description
Description copied from class:FunctionToolThe description of the tool. Used by the model to understand what the tool does. May benullto omit it from the serialized JSON.- Overrides:
descriptionin classFunctionTool- Returns:
- the tool's description, or
null
-
parameters
Description copied from class:FunctionToolThe parameters this tool accepts.- Specified by:
parametersin classFunctionTool- Returns:
- the tool's parameter schema
-
function
Description copied from class:FunctionToolInvokes the tool.- Specified by:
functionin classFunctionTool- Parameters:
args- the arguments passed by the model- Returns:
- the tool's response
-