Class OllamaToolError

java.lang.Object
me.zacharias.chat.ollama.OllamaMessage
me.zacharias.chat.ollama.OllamaToolError

public class OllamaToolError extends OllamaMessage
Represents an error from a tool.
This is used by a tool to indicate to Ollama that an error occurred.
  • Constructor Details

    • OllamaToolError

      public OllamaToolError(String error)
      Creates a new instance of OllamaToolError.
      Parameters:
      error - The error from the tool
  • Method Details

    • getError

      public String getError()
      Gets the error from the tool.
      Returns:
      The error from the tool