// <auto-generated/>

#nullable disable

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

namespace OpenAI.Responses
{
    public partial class FileSearchCallResponseItem : ResponseItem
    {
        internal FileSearchCallResponseItem(string id, IEnumerable<string> queries, FileSearchCallStatus? status) : base(InternalItemType.FileSearchCall, id)
        {
            Queries = queries.ToList();
            Results = new ChangeTrackingList<FileSearchCallResult>();
            Status = status;
        }

        internal FileSearchCallResponseItem(InternalItemType kind, string id, IDictionary<string, BinaryData> additionalBinaryDataProperties, IList<string> queries, IList<FileSearchCallResult> results, FileSearchCallStatus? status) : base(kind, id, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Queries = queries ?? new ChangeTrackingList<string>();
            Results = results ?? new ChangeTrackingList<FileSearchCallResult>();
            Status = status;
        }

        public IList<string> Queries { get; }

        public IList<FileSearchCallResult> Results { get; }
    }
}
