/* tslint:disable */
/* eslint-disable */
/**
 * RMI Backend
 * Rug Munch Intelligence — institutional-grade crypto intelligence API. 13+ chains, 96 data providers, 8 MCP tools, x402 paid tier, sovereign-first FOSS.
 *
 * The version of the OpenAPI document: 2026.06.21
 * 
 *
 * 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 AttachRagRequest
 */
export interface AttachRagRequest {
    /**
     * 
     * @type {string}
     * @memberof AttachRagRequest
     */
    chain: string;
    /**
     * 
     * @type {string}
     * @memberof AttachRagRequest
     */
    address: string;
    /**
     * 
     * @type {string}
     * @memberof AttachRagRequest
     */
    qdrantPointId: string;
}

/**
 * Check if a given object implements the AttachRagRequest interface.
 */
export function instanceOfAttachRagRequest(value: object): value is AttachRagRequest {
    if (!('chain' in value) || value['chain'] === undefined) return false;
    if (!('address' in value) || value['address'] === undefined) return false;
    if ((!('qdrantPointId' in value) && !('qdrant_point_id' in value)) || (value['qdrantPointId'] === undefined && value['qdrant_point_id'] === undefined)) return false;
    return true;
}

export function AttachRagRequestFromJSON(json: any): AttachRagRequest {
    return AttachRagRequestFromJSONTyped(json, false);
}

export function AttachRagRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachRagRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'chain': json['chain'],
        'address': json['address'],
        'qdrantPointId': json['qdrant_point_id'],
    };
}

export function AttachRagRequestToJSON(json: any): AttachRagRequest {
    return AttachRagRequestToJSONTyped(json, false);
}

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

    return {
        
        'chain': value['chain'],
        'address': value['address'],
        'qdrant_point_id': value['qdrantPointId'],
    };
}

