// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;

namespace OpenAI.Chat
{
    public partial class ChatFunctionCall
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        public ChatFunctionCall(string functionName, BinaryData functionArguments)
        {
            Argument.AssertNotNull(functionName, nameof(functionName));
            Argument.AssertNotNull(functionArguments, nameof(functionArguments));

            FunctionName = functionName;
            FunctionArguments = functionArguments;
        }

        internal ChatFunctionCall(string functionName, BinaryData functionArguments, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            FunctionName = functionName;
            FunctionArguments = functionArguments;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
