Class GPTFunctionCallDetails


  • public class GPTFunctionCallDetails
    extends Object
    Represents the a call of a function used as a tool in the chat completion request.
    • Constructor Detail

      • GPTFunctionCallDetails

        public GPTFunctionCallDetails​(String name,
                                      String arguments)
        Creates the object
        Parameters:
        name - The name of the function to be called. This must be unique and can only contain a-z, A-Z, 0-9, underscores, and dashes.
        arguments - A JSON for the arguments the function is called with.
    • Method Detail

      • getName

        public String getName()
        The name of the function to be called. This must be unique and can only contain a-z, A-Z, 0-9, underscores, and dashes.
      • getArguments

        public String getArguments()
        A JSON for the arguments the function is called with.
      • toString

        public String toString()
        String representation for debugging.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object