/* tslint:disable */
/* eslint-disable */
/**
 * Vectorize API (Beta)
 * API for Vectorize services
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 *
 * 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 RetrieveContextMessage
 */
export interface RetrieveContextMessage {
    /**
     * 
     * @type {string}
     * @memberof RetrieveContextMessage
     */
    role: string;
    /**
     * 
     * @type {string}
     * @memberof RetrieveContextMessage
     */
    content: string;
}

/**
 * Check if a given object implements the RetrieveContextMessage interface.
 */
export function instanceOfRetrieveContextMessage(value: object): value is RetrieveContextMessage {
    if (!('role' in value) || value['role'] === undefined) return false;
    if (!('content' in value) || value['content'] === undefined) return false;
    return true;
}

export function RetrieveContextMessageFromJSON(json: any): RetrieveContextMessage {
    return RetrieveContextMessageFromJSONTyped(json, false);
}

export function RetrieveContextMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): RetrieveContextMessage {
    if (json == null) {
        return json;
    }
    return {
        
        'role': json['role'],
        'content': json['content'],
    };
}

export function RetrieveContextMessageToJSON(json: any): RetrieveContextMessage {
    return RetrieveContextMessageToJSONTyped(json, false);
}

export function RetrieveContextMessageToJSONTyped(value?: RetrieveContextMessage | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'role': value['role'],
        'content': value['content'],
    };
}

