// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: invalid_annotation_target
part of open_a_i_schema;

// ==========================================
// CLASS: ChatCompletionMessageFunctionCall
// ==========================================

/// The name and arguments of a function that should be called, as generated by the model.
@freezed
class ChatCompletionMessageFunctionCall
    with _$ChatCompletionMessageFunctionCall {
  const ChatCompletionMessageFunctionCall._();

  /// Factory constructor for ChatCompletionMessageFunctionCall
  const factory ChatCompletionMessageFunctionCall({
    /// The name of the function to call.
    required String name,

    /// 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.
    required String arguments,
  }) = _ChatCompletionMessageFunctionCall;

  /// Object construction from a JSON representation
  factory ChatCompletionMessageFunctionCall.fromJson(
          Map<String, dynamic> json) =>
      _$ChatCompletionMessageFunctionCallFromJson(json);

  /// List of all property names of schema
  static const List<String> propertyNames = ['name', 'arguments'];

  /// Perform validations on the schema property values
  String? validateSchema() {
    return null;
  }

  /// Map representation of object (not serialized)
  Map<String, dynamic> toMap() {
    return {
      'name': name,
      'arguments': arguments,
    };
  }
}
