Class ApiChatCompletionsResponseMessageToolCallFunction


  • public final class ApiChatCompletionsResponseMessageToolCallFunction
    extends Object
    The function that the model called.
    Since:
    8.5.0
    • Method Detail

      • arguments

        public String arguments()
        The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
        Returns:
        The function arguments.
      • name

        public String name()
        The name of the function to call.
        Returns:
        The function name.