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';
import type { TrainingCheckpoint } from './TrainingCheckpoint';
import {
TrainingCheckpointFromJSON,
TrainingCheckpointFromJSONTyped,
TrainingCheckpointToJSON,
TrainingCheckpointToJSONTyped,
} from './TrainingCheckpoint';
import type { TrainingCheck } from './TrainingCheck';
import {
TrainingCheckFromJSON,
TrainingCheckFromJSONTyped,
TrainingCheckToJSON,
TrainingCheckToJSONTyped,
} from './TrainingCheck';
/**
*
* @export
* @interface TrainingMonitoring
*/
export interface TrainingMonitoring {
/**
*
* @type {string}
* @memberof TrainingMonitoring
*/
jobId: string;
/**
*
* @type {any}
* @memberof TrainingMonitoring
*/
policy: any | null;
/**
*
* @type {string}
* @memberof TrainingMonitoring
*/
status: string;
/**
*
* @type {any}
* @memberof TrainingMonitoring
*/
current: any | null;
/**
*
* @type {any}
* @memberof TrainingMonitoring
*/
probes: any | null;
/**
*
* @type {number}
* @memberof TrainingMonitoring
*/
count: number;
/**
*
* @type {number}
* @memberof TrainingMonitoring
*/
nextOffset: number | null;
/**
*
* @type {Array<TrainingCheck>}
* @memberof TrainingMonitoring
*/
checks: Array<TrainingCheck>;
/**
*
* @type {Array<TrainingCheckpoint>}
* @memberof TrainingMonitoring
*/
checkpoints: Array<TrainingCheckpoint>;
/**
*
* @type {Array<string>}
* @memberof TrainingMonitoring
*/
limitations: Array<string>;
}
/**
* Check if a given object implements the TrainingMonitoring interface.
*/
export function instanceOfTrainingMonitoring(value: object): value is TrainingMonitoring {
if (!('jobId' in value) || value['jobId'] === undefined) return false;
if (!('policy' in value) || value['policy'] === undefined) return false;
if (!('status' in value) || value['status'] === undefined) return false;
if (!('current' in value) || value['current'] === undefined) return false;
if (!('probes' in value) || value['probes'] === undefined) return false;
if (!('count' in value) || value['count'] === undefined) return false;
if (!('nextOffset' in value) || value['nextOffset'] === undefined) return false;
if (!('checks' in value) || value['checks'] === undefined) return false;
if (!('checkpoints' in value) || value['checkpoints'] === undefined) return false;
if (!('limitations' in value) || value['limitations'] === undefined) return false;
return true;
}
export function TrainingMonitoringFromJSON(json: any): TrainingMonitoring {
return TrainingMonitoringFromJSONTyped(json, false);
}
export function TrainingMonitoringFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainingMonitoring {
if (json == null) {
return json;
}
return {
'jobId': json['job_id'],
'policy': json['policy'],
'status': json['status'],
'current': json['current'],
'probes': json['probes'],
'count': json['count'],
'nextOffset': json['next_offset'],
'checks': ((json['checks'] as Array<any>).map(TrainingCheckFromJSON)),
'checkpoints': ((json['checkpoints'] as Array<any>).map(TrainingCheckpointFromJSON)),
'limitations': json['limitations'],
};
}
export function TrainingMonitoringToJSON(json: any): TrainingMonitoring {
return TrainingMonitoringToJSONTyped(json, false);
}
export function TrainingMonitoringToJSONTyped(value?: TrainingMonitoring | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'job_id': value['jobId'],
'policy': value['policy'],
'status': value['status'],
'current': value['current'],
'probes': value['probes'],
'count': value['count'],
'next_offset': value['nextOffset'],
'checks': ((value['checks'] as Array<any>).map(TrainingCheckToJSON)),
'checkpoints': ((value['checkpoints'] as Array<any>).map(TrainingCheckpointToJSON)),
'limitations': value['limitations'],
};
}