Class ChatCompletionsFunctionToolCall

java.lang.Object
com.azure.ai.openai.models.ChatCompletionsToolCall
com.azure.ai.openai.models.ChatCompletionsFunctionToolCall

public final class ChatCompletionsFunctionToolCall extends ChatCompletionsToolCall
A tool call to a function tool, issued by the model in evaluation of a configured function tool, that represents a function invocation needed for a subsequent chat completions request to resolve.
  • Constructor Details

    • ChatCompletionsFunctionToolCall

      public ChatCompletionsFunctionToolCall(String id, FunctionCall function)
      Creates an instance of ChatCompletionsFunctionToolCall class.
      Parameters:
      id - the id value to set.
      function - the function value to set.
  • Method Details

    • getFunction

      public FunctionCall getFunction()
      Get the function property: The details of the function invocation requested by the tool call.
      Returns:
      the function value.