// <auto-generated/>

#nullable disable

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

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    public partial class TurnDetectionOptions
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        private protected TurnDetectionOptions(TurnDetectionKind kind)
        {
            Kind = kind;
        }

        internal TurnDetectionOptions(TurnDetectionKind kind, bool? responseCreationEnabled, bool? responseInterruptionEnabled, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Kind = kind;
            ResponseCreationEnabled = responseCreationEnabled;
            ResponseInterruptionEnabled = responseInterruptionEnabled;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public TurnDetectionKind Kind { get; }

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