Class FunctionName

java.lang.Object
nl.dannyj.mistral.models.completion.tool.FunctionName

public class FunctionName extends Object
Represents the name of a function, used when specifying a particular function for tool_choice.
  • Constructor Details

    • FunctionName

      public FunctionName()
    • FunctionName

      public FunctionName(String name)
      Creates a new FunctionName instance.
      Parameters:
      name - The name of the function.
  • Method Details

    • getName

      public String getName()
      The name of the function. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
      Returns:
      The name of the function.
    • setName

      public void setName(String name)
      The name of the function. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
      Parameters:
      name - The name of the function.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object