// <auto-generated/>

#nullable disable

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

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

        internal InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch() : this(null, null, null)
        {
        }

        internal InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch(IReadOnlyList<RunStepFileSearchResult> results, FileSearchRankingOptions rankingOptions, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Results = results ?? new ChangeTrackingList<RunStepFileSearchResult>();
            RankingOptions = rankingOptions;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public IReadOnlyList<RunStepFileSearchResult> Results { get; }

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