/* 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 RagIngestRequest
 */
export interface RagIngestRequest {
    /**
     * 
     * @type {string}
     * @memberof RagIngestRequest
     */
    content: string;
    /**
     * 
     * @type {string}
     * @memberof RagIngestRequest
     */
    collection?: string;
    /**
     * 
     * @type {string}
     * @memberof RagIngestRequest
     */
    docId?: string | null;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof RagIngestRequest
     */
    metadata?: { [key: string]: any; };
}

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

export function RagIngestRequestFromJSON(json: any): RagIngestRequest {
    return RagIngestRequestFromJSONTyped(json, false);
}

export function RagIngestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RagIngestRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'content': json['content'],
        'collection': json['collection'] == null ? undefined : json['collection'],
        'docId': json['doc_id'] == null ? undefined : json['doc_id'],
        'metadata': json['metadata'] == null ? undefined : json['metadata'],
    };
}

export function RagIngestRequestToJSON(json: any): RagIngestRequest {
    return RagIngestRequestToJSONTyped(json, false);
}

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

    return {
        
        'content': value['content'],
        'collection': value['collection'],
        'doc_id': value['docId'],
        'metadata': value['metadata'],
    };
}

