Skip to content

The platform for continuously improving AI agents.

2.9 KB
Raw Blame
/* tslint:disable */
/* eslint-disable */
/**
 * Overbae API
 * Backend API for the Overclaw / Overmind platform.
 *
 * The version of the OpenAPI document: 2.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';
import type { Cell } from './Cell';
import {
    CellFromJSON,
    CellFromJSONTyped,
    CellToJSON,
    CellToJSONTyped,
} from './Cell';

/**
 *
 * @export
 * @interface PreparationNode
 */
export interface PreparationNode {
    /**
     *
     * @type {Cell}
     * @memberof PreparationNode
     */
    cell: Cell;
    /**
     *
     * @type {string}
     * @memberof PreparationNode
     */
    dataset: string;
    /**
     *
     * @type {string}
     * @memberof PreparationNode
     */
    datasetName: string;
    /**
     *
     * @type {string}
     * @memberof PreparationNode
     */
    intent: string;
    /**
     *
     * @type {string}
     * @memberof PreparationNode
     */
    trainFormat: string;
    /**
     *
     * @type {string}
     * @memberof PreparationNode
     */
    role: string;
}

/**
 * Check if a given object implements the PreparationNode interface.
 */
export function instanceOfPreparationNode(value: object): value is PreparationNode {
    if (!('cell' in value) || value['cell'] === undefined) return false;
    if (!('dataset' in value) || value['dataset'] === undefined) return false;
    if (!('datasetName' in value) || value['datasetName'] === undefined) return false;
    if (!('intent' in value) || value['intent'] === undefined) return false;
    if (!('trainFormat' in value) || value['trainFormat'] === undefined) return false;
    if (!('role' in value) || value['role'] === undefined) return false;
    return true;
}

export function PreparationNodeFromJSON(json: any): PreparationNode {
    return PreparationNodeFromJSONTyped(json, false);
}

export function PreparationNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreparationNode {
    if (json == null) {
        return json;
    }
    return {

        'cell': CellFromJSON(json['cell']),
        'dataset': json['dataset'],
        'datasetName': json['dataset_name'],
        'intent': json['intent'],
        'trainFormat': json['train_format'],
        'role': json['role'],
    };
}

export function PreparationNodeToJSON(json: any): PreparationNode {
    return PreparationNodeToJSONTyped(json, false);
}

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

    return {

        'cell': CellToJSON(value['cell']),
        'dataset': value['dataset'],
        'dataset_name': value['datasetName'],
        'intent': value['intent'],
        'train_format': value['trainFormat'],
        'role': value['role'],
    };
}