Class OllamaBot


@Node public class OllamaBot extends Bot
  • Constructor Details

    • OllamaBot

      public OllamaBot()
  • Method Details

    • selfTest

      public void selfTest() throws Exception
      Description copied from class: Bot
      Self test runs on server startup. Exceptions are logged but otherwise ignored.
      Specified by:
      selfTest in class Bot
      Throws:
      Exception
    • getResponseAsync

      public reactor.core.publisher.Mono<String> getResponseAsync(Client c, String query)
      Specified by:
      getResponseAsync in class Bot
    • gesture

      @Tool(description="Perform a gesture") public void gesture(String gestureName)
    • move

      @Tool(description="Move to position") public void move(Double x, Double y, Double z)
    • rotate

      @Tool(description="Rotate") public void rotate(Double x, Double y, Double z)
    • getModelName

      public String getModelName()
    • getChatModel

      public org.springframework.ai.ollama.OllamaChatModel getChatModel()
    • getContextWindowSize

      public int getContextWindowSize()
    • getKeepAlive

      public String getKeepAlive()
    • getMemorySize

      public int getMemorySize()
    • getSystemMessage

      public org.springframework.ai.chat.messages.SystemMessage getSystemMessage()
    • getPromptTemplate

      public org.springframework.ai.chat.prompt.PromptTemplate getPromptTemplate()
    • getMemory

      public org.springframework.ai.chat.memory.ChatMemory getMemory()
    • getConversationId

      public String getConversationId()
    • isProcessing

      public boolean isProcessing()
    • setModelName

      public void setModelName(String modelName)
    • setChatModel

      public void setChatModel(org.springframework.ai.ollama.OllamaChatModel chatModel)
    • setContextWindowSize

      public void setContextWindowSize(int contextWindowSize)
    • setKeepAlive

      public void setKeepAlive(String keepAlive)
    • setMemorySize

      public void setMemorySize(int memorySize)
    • setSystemMessage

      public void setSystemMessage(org.springframework.ai.chat.messages.SystemMessage systemMessage)
    • setPromptTemplate

      public void setPromptTemplate(org.springframework.ai.chat.prompt.PromptTemplate promptTemplate)
    • setMemory

      public void setMemory(org.springframework.ai.chat.memory.ChatMemory memory)
    • setConversationId

      public void setConversationId(String conversationId)
    • setProcessing

      public void setProcessing(boolean processing)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Bot
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class Bot
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Bot
    • toString

      public String toString()
      Overrides:
      toString in class Bot