// <auto-generated/>

#nullable disable

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

namespace OpenAI.FineTuning
{
    internal partial class InternalTodoFineTuneChatRequestInput
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        public InternalTodoFineTuneChatRequestInput() : this(null, null, default, null, null)
        {
        }

        internal InternalTodoFineTuneChatRequestInput(IList<BinaryData> messages, IList<ChatTool> tools, bool? parallelToolCalls, IList<ChatFunction> functions, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Messages = messages ?? new ChangeTrackingList<BinaryData>();
            Tools = tools ?? new ChangeTrackingList<ChatTool>();
            ParallelToolCalls = parallelToolCalls;
            Functions = functions ?? new ChangeTrackingList<ChatFunction>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public IList<BinaryData> Messages { get; }

        public IList<ChatTool> Tools { get; }

        public bool? ParallelToolCalls { get; set; }

        public IList<ChatFunction> Functions { get; }

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