Skip to content

The platform for continuously improving AI agents.

2.5 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 { FinetuningJobList } from './FinetuningJobList';
import {
    FinetuningJobListFromJSON,
    FinetuningJobListFromJSONTyped,
    FinetuningJobListToJSON,
    FinetuningJobListToJSONTyped,
} from './FinetuningJobList';

/**
 * Every job the wizard launched together. ``run_id`` is the ``group_id`` when
 * the jobs carry one, else the lone job's id; ``group_id`` stays null for a
 * single-job run so ``?group_id=`` never matches it.
 * @export
 * @interface FinetuningJobRun
 */
export interface FinetuningJobRun {
    /**
     *
     * @type {string}
     * @memberof FinetuningJobRun
     */
    runId: string;
    /**
     *
     * @type {string}
     * @memberof FinetuningJobRun
     */
    groupId: string | null;
    /**
     *
     * @type {Array<FinetuningJobList>}
     * @memberof FinetuningJobRun
     */
    jobs: Array<FinetuningJobList>;
}

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

export function FinetuningJobRunFromJSON(json: any): FinetuningJobRun {
    return FinetuningJobRunFromJSONTyped(json, false);
}

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

        'runId': json['run_id'],
        'groupId': json['group_id'],
        'jobs': ((json['jobs'] as Array<any>).map(FinetuningJobListFromJSON)),
    };
}

export function FinetuningJobRunToJSON(json: any): FinetuningJobRun {
    return FinetuningJobRunToJSONTyped(json, false);
}

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

    return {

        'run_id': value['runId'],
        'group_id': value['groupId'],
        'jobs': ((value['jobs'] as Array<any>).map(FinetuningJobListToJSON)),
    };
}