/* 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 InputChatMessage */ export interface InputChatMessage { /** * * @type {string} * @memberof InputChatMessage */ role?: string; /** * * @type {string} * @memberof InputChatMessage */ content?: string; /** * * @type {string} * @memberof InputChatMessage */ type?: string; } /** * Check if a given object implements the InputChatMessage interface. */ export function instanceOfInputChatMessage(value: object): value is InputChatMessage { return true; } export function InputChatMessageFromJSON(json: any): InputChatMessage { return InputChatMessageFromJSONTyped(json, false); } export function InputChatMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): InputChatMessage { if (json == null) { return json; } return { 'role': json['role'] == null ? undefined : json['role'], 'content': json['content'] == null ? undefined : json['content'], 'type': json['type'] == null ? undefined : json['type'], }; } export function InputChatMessageToJSON(json: any): InputChatMessage { return InputChatMessageToJSONTyped(json, false); } export function InputChatMessageToJSONTyped(value?: InputChatMessage | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'role': value['role'], 'content': value['content'], 'type': value['type'], }; }