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 TrainingCheckpoint
*/
export interface TrainingCheckpoint {
/**
*
* @type {string}
* @memberof TrainingCheckpoint
*/
id: string;
/**
*
* @type {string}
* @memberof TrainingCheckpoint
*/
key: string;
/**
*
* @type {number}
* @memberof TrainingCheckpoint
*/
attempt: number;
/**
*
* @type {number}
* @memberof TrainingCheckpoint
*/
step: number;
/**
*
* @type {string}
* @memberof TrainingCheckpoint
*/
state: string;
/**
*
* @type {string}
* @memberof TrainingCheckpoint
*/
identity: string;
/**
*
* @type {any}
* @memberof TrainingCheckpoint
*/
manifest: any | null;
/**
*
* @type {any}
* @memberof TrainingCheckpoint
*/
verification: any | null;
/**
*
* @type {any}
* @memberof TrainingCheckpoint
*/
metrics: any | null;
/**
*
* @type {boolean}
* @memberof TrainingCheckpoint
*/
selected: boolean;
}
/**
* Check if a given object implements the TrainingCheckpoint interface.
*/
export function instanceOfTrainingCheckpoint(value: object): value is TrainingCheckpoint {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('key' in value) || value['key'] === undefined) return false;
if (!('attempt' in value) || value['attempt'] === undefined) return false;
if (!('step' in value) || value['step'] === undefined) return false;
if (!('state' in value) || value['state'] === undefined) return false;
if (!('identity' in value) || value['identity'] === undefined) return false;
if (!('manifest' in value) || value['manifest'] === undefined) return false;
if (!('verification' in value) || value['verification'] === undefined) return false;
if (!('metrics' in value) || value['metrics'] === undefined) return false;
if (!('selected' in value) || value['selected'] === undefined) return false;
return true;
}
export function TrainingCheckpointFromJSON(json: any): TrainingCheckpoint {
return TrainingCheckpointFromJSONTyped(json, false);
}
export function TrainingCheckpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainingCheckpoint {
if (json == null) {
return json;
}
return {
'id': json['id'],
'key': json['key'],
'attempt': json['attempt'],
'step': json['step'],
'state': json['state'],
'identity': json['identity'],
'manifest': json['manifest'],
'verification': json['verification'],
'metrics': json['metrics'],
'selected': json['selected'],
};
}
export function TrainingCheckpointToJSON(json: any): TrainingCheckpoint {
return TrainingCheckpointToJSONTyped(json, false);
}
export function TrainingCheckpointToJSONTyped(value?: TrainingCheckpoint | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'key': value['key'],
'attempt': value['attempt'],
'step': value['step'],
'state': value['state'],
'identity': value['identity'],
'manifest': value['manifest'],
'verification': value['verification'],
'metrics': value['metrics'],
'selected': value['selected'],
};
}