Class GPTToolCall


  • public class GPTToolCall
    extends Object
    Represents a tool call generated by the model in a chat completion response. This can be a function call with specific arguments.
    • Constructor Detail

      • GPTToolCall

        public GPTToolCall​(String id,
                           String type,
                           GPTFunctionCallDetails function)
        Creates the object
        Parameters:
        id - The ID of the tool call.
        type - The type of the tool, currently only "function" is supported.
        function - The function being called by the model, including its name and arguments.