// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        public InternalRealtimeSessionCreateRequestTurnDetection()
        {
        }

        internal InternalRealtimeSessionCreateRequestTurnDetection(InternalRealtimeSessionCreateRequestTurnDetectionType? kind, InternalRealtimeSessionCreateRequestTurnDetectionEagerness? eagerness, float? threshold, int? prefixPaddingMs, int? silenceDurationMs, bool? createResponse, bool? interruptResponse, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Kind = kind;
            Eagerness = eagerness;
            Threshold = threshold;
            PrefixPaddingMs = prefixPaddingMs;
            SilenceDurationMs = silenceDurationMs;
            CreateResponse = createResponse;
            InterruptResponse = interruptResponse;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal InternalRealtimeSessionCreateRequestTurnDetectionType? Kind { get; set; }

        internal InternalRealtimeSessionCreateRequestTurnDetectionEagerness? Eagerness { get; set; }

        public float? Threshold { get; set; }

        public int? PrefixPaddingMs { get; set; }

        public int? SilenceDurationMs { get; set; }

        public bool? CreateResponse { get; set; }

        public bool? InterruptResponse { get; set; }

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