Class FunctionCall

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

public class FunctionCall extends Object
Represents the function call requested by the model, including the function name and its arguments as a JSON string.
  • Constructor Details

    • FunctionCall

      public FunctionCall()
    • FunctionCall

      public FunctionCall(String name, String arguments)
      Creates a new FunctionCall instance.
      Parameters:
      name - The function name.
      arguments - The function arguments as a JSON string.
  • Method Details

    • getName

      public String getName()
      The name of the function to call. Cannot be blank.
      Returns:
      The function name.
    • getArguments

      public String getArguments()
      The arguments to call the function with, represented as a JSON string.
      Returns:
      The function arguments JSON string.
    • setName

      public void setName(String name)
      The name of the function to call. Cannot be blank.
      Parameters:
      name - The function name.
    • setArguments

      public void setArguments(String arguments)
      The arguments to call the function with, represented as a JSON string.
      Parameters:
      arguments - The function arguments as a JSON string.
    • 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