// <auto-generated/>

#nullable disable

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

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

        internal RunStepFileSearchResult(string fileId, string fileName, float score)
        {
            FileId = fileId;
            FileName = fileName;
            Score = score;
            Content = new ChangeTrackingList<RunStepFileSearchResultContent>();
        }

        internal RunStepFileSearchResult(string fileId, string fileName, float score, IReadOnlyList<RunStepFileSearchResultContent> content, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            FileId = fileId;
            FileName = fileName;
            Score = score;
            Content = content ?? new ChangeTrackingList<RunStepFileSearchResultContent>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string FileId { get; }

        public string FileName { get; }

        public float Score { get; }

        public IReadOnlyList<RunStepFileSearchResultContent> Content { get; }

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