
#nullable enable

namespace Google.Gemini
{
    /// <summary>
    /// Candidates with top log probabilities at each decoding step.
    /// </summary>
    public sealed partial class TopCandidates
    {
        /// <summary>
        /// Sorted by log probability in descending order.
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("candidates")]
        public global::System.Collections.Generic.IList<global::Google.Gemini.LogprobsResultCandidate>? Candidates { get; set; }

        /// <summary>
        /// Additional properties that are not explicitly defined in the schema
        /// </summary>
        [global::System.Text.Json.Serialization.JsonExtensionData]
        public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

        /// <summary>
        /// Initializes a new instance of the <see cref="TopCandidates" /> class.
        /// </summary>
        /// <param name="candidates">
        /// Sorted by log probability in descending order.
        /// </param>
#if NET7_0_OR_GREATER
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
        public TopCandidates(
            global::System.Collections.Generic.IList<global::Google.Gemini.LogprobsResultCandidate>? candidates)
        {
            this.Candidates = candidates;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="TopCandidates" /> class.
        /// </summary>
        public TopCandidates()
        {
        }

    }
}