Class GetMemoriesFunction

java.lang.Object
me.neurodock.llm.tools.FunctionTool
me.neurodock.core.memory.GetMemoriesFunction
All Implemented Interfaces:
Tool

public class GetMemoriesFunction extends FunctionTool
  • Constructor Details

    • GetMemoriesFunction

      public GetMemoriesFunction()
  • Method Details

    • name

      @NotNull public @NotNull String name()
      Description copied from class: FunctionTool
      The name of the tool. Used by the model to identify what it's calling.
      Specified by:
      name in interface Tool
      Specified by:
      name in class FunctionTool
      Returns:
      the tool's name
    • description

      public String description()
      Description copied from class: FunctionTool
      The description of the tool. Used by the model to understand what the tool does. May be null to omit it from the serialized JSON.
      Overrides:
      description in class FunctionTool
      Returns:
      the tool's description, or null
    • parameters

      @NotNull public @NotNull ToolParameters parameters()
      Description copied from class: FunctionTool
      The parameters this tool accepts.
      Specified by:
      parameters in class FunctionTool
      Returns:
      the tool's parameter schema
    • function

      @NotNull public @NotNull ToolResponse function(ToolArguments args)
      Description copied from class: FunctionTool
      Invokes the tool.
      Specified by:
      function in class FunctionTool
      Parameters:
      args - the arguments passed by the model
      Returns:
      the tool's response