/* tslint:disable */ /* eslint-disable */ /** * ChatGPT Function * Backend for Azure OpenAI integrations * * The version of the OpenAPI document: v1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface TurnDetection */ export interface TurnDetection { /** * * @type {string} * @memberof TurnDetection */ type?: string | null; /** * * @type {number} * @memberof TurnDetection */ threshold?: number | null; /** * * @type {number} * @memberof TurnDetection */ prefixPaddingMs?: number | null; /** * * @type {number} * @memberof TurnDetection */ silenceDurationMs?: number | null; /** * * @type {boolean} * @memberof TurnDetection */ createResponse?: boolean | null; /** * * @type {boolean} * @memberof TurnDetection */ interruptResponse?: boolean | null; } /** * Check if a given object implements the TurnDetection interface. */ export function instanceOfTurnDetection(value: object): value is TurnDetection { return true; } export function TurnDetectionFromJSON(json: any): TurnDetection { return TurnDetectionFromJSONTyped(json, false); } export function TurnDetectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TurnDetection { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'threshold': json['threshold'] == null ? undefined : json['threshold'], 'prefixPaddingMs': json['prefix_padding_ms'] == null ? undefined : json['prefix_padding_ms'], 'silenceDurationMs': json['silence_duration_ms'] == null ? undefined : json['silence_duration_ms'], 'createResponse': json['create_response'] == null ? undefined : json['create_response'], 'interruptResponse': json['interrupt_response'] == null ? undefined : json['interrupt_response'], }; } export function TurnDetectionToJSON(json: any): TurnDetection { return TurnDetectionToJSONTyped(json, false); } export function TurnDetectionToJSONTyped(value?: TurnDetection | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'threshold': value['threshold'], 'prefix_padding_ms': value['prefixPaddingMs'], 'silence_duration_ms': value['silenceDurationMs'], 'create_response': value['createResponse'], 'interrupt_response': value['interruptResponse'], }; }