OpenAIResponseToolCall constructor

OpenAIResponseToolCall({
  1. required String? id,
  2. required String? type,
  3. required OpenAIResponseFunction function,
})

This represents the tool call of the OpenAIChatCompletionChoiceMessageModel model of the OpenAI API, which is used and get returned while using the OpenAIChat methods.

Implementation

OpenAIResponseToolCall({
  required this.id,
  required this.type,
  required this.function,
});