// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using OpenAI;

namespace OpenAI.Chat
{
    [Experimental("OPENAI001")]
    public partial class ChatCompletionCollectionOptions
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

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

        internal ChatCompletionCollectionOptions(string afterId, int? pageSizeLimit, ChatCompletionCollectionOrder? order, IDictionary<string, string> metadata, string model, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            AfterId = afterId;
            PageSizeLimit = pageSizeLimit;
            Order = order;
            Metadata = metadata ?? new ChangeTrackingDictionary<string, string>();
            Model = model;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string AfterId { get; set; }

        public int? PageSizeLimit { get; set; }

        public ChatCompletionCollectionOrder? Order { get; set; }

        public IDictionary<string, string> Metadata { get; }

        public string Model { get; set; }

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