The platform for continuously improving AI agents.
/* 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';
/**
*
* @export
* @interface TrainingPreparation
*/
export interface TrainingPreparation {
/**
*
* @type {string}
* @memberof TrainingPreparation
*/
readonly id: string;
/**
*
* @type {string}
* @memberof TrainingPreparation
*/
readonly trainingJob: string | null;
/**
*
* @type {string}
* @memberof TrainingPreparation
*/
readonly decisionJob: string | null;
/**
*
* @type {string}
* @memberof TrainingPreparation
*/
readonly cell: string;
/**
*
* @type {string}
* @memberof TrainingPreparation
*/
readonly validationCell: string | null;
/**
*
* @type {string}
* @memberof TrainingPreparation
*/
readonly state: string;
/**
*
* @type {any}
* @memberof TrainingPreparation
*/
readonly config: any | null;
/**
*
* @type {any}
* @memberof TrainingPreparation
*/
readonly report: any | null;
/**
*
* @type {string}
* @memberof TrainingPreparation
*/
readonly error: string;
/**
*
* @type {Date}
* @memberof TrainingPreparation
*/
readonly createdAt: Date;
}
/**
* Check if a given object implements the TrainingPreparation interface.
*/
export function instanceOfTrainingPreparation(value: object): value is TrainingPreparation {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('trainingJob' in value) || value['trainingJob'] === undefined) return false;
if (!('decisionJob' in value) || value['decisionJob'] === undefined) return false;
if (!('cell' in value) || value['cell'] === undefined) return false;
if (!('validationCell' in value) || value['validationCell'] === undefined) return false;
if (!('state' in value) || value['state'] === undefined) return false;
if (!('config' in value) || value['config'] === undefined) return false;
if (!('report' in value) || value['report'] === undefined) return false;
if (!('error' in value) || value['error'] === undefined) return false;
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
return true;
}
export function TrainingPreparationFromJSON(json: any): TrainingPreparation {
return TrainingPreparationFromJSONTyped(json, false);
}
export function TrainingPreparationFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainingPreparation {
if (json == null) {
return json;
}
return {
'id': json['id'],
'trainingJob': json['training_job'],
'decisionJob': json['decision_job'],
'cell': json['cell'],
'validationCell': json['validation_cell'],
'state': json['state'],
'config': json['config'],
'report': json['report'],
'error': json['error'],
'createdAt': (new Date(json['created_at'])),
};
}
export function TrainingPreparationToJSON(json: any): TrainingPreparation {
return TrainingPreparationToJSONTyped(json, false);
}
export function TrainingPreparationToJSONTyped(value?: Omit<TrainingPreparation, 'id'|'training_job'|'decision_job'|'cell'|'validation_cell'|'state'|'config'|'report'|'error'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
};
}