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 { TrainingReview } from './TrainingReview';
import {
TrainingReviewFromJSON,
TrainingReviewFromJSONTyped,
TrainingReviewToJSON,
TrainingReviewToJSONTyped,
} from './TrainingReview';
import type { TrainingLimits } from './TrainingLimits';
import {
TrainingLimitsFromJSON,
TrainingLimitsFromJSONTyped,
TrainingLimitsToJSON,
TrainingLimitsToJSONTyped,
} from './TrainingLimits';
import type { RetainedCheckpoint } from './RetainedCheckpoint';
import {
RetainedCheckpointFromJSON,
RetainedCheckpointFromJSONTyped,
RetainedCheckpointToJSON,
RetainedCheckpointToJSONTyped,
} from './RetainedCheckpoint';
import type { TrainingControl } from './TrainingControl';
import {
TrainingControlFromJSON,
TrainingControlFromJSONTyped,
TrainingControlToJSON,
TrainingControlToJSONTyped,
} from './TrainingControl';
/**
*
* @export
* @interface TrainingAgent
*/
export interface TrainingAgent {
/**
*
* @type {TrainingLimits}
* @memberof TrainingAgent
*/
limits: TrainingLimits | null;
/**
*
* @type {string}
* @memberof TrainingAgent
*/
unavailable: string | null;
/**
*
* @type {number}
* @memberof TrainingAgent
*/
learningRate: number | null;
/**
*
* @type {number}
* @memberof TrainingAgent
*/
clipNorm: number | null;
/**
*
* @type {Array<RetainedCheckpoint>}
* @memberof TrainingAgent
*/
checkpoints: Array<RetainedCheckpoint>;
/**
*
* @type {Array<TrainingReview>}
* @memberof TrainingAgent
*/
reviews: Array<TrainingReview>;
/**
*
* @type {Array<TrainingControl>}
* @memberof TrainingAgent
*/
controls: Array<TrainingControl>;
}
/**
* Check if a given object implements the TrainingAgent interface.
*/
export function instanceOfTrainingAgent(value: object): value is TrainingAgent {
if (!('limits' in value) || value['limits'] === undefined) return false;
if (!('unavailable' in value) || value['unavailable'] === undefined) return false;
if (!('learningRate' in value) || value['learningRate'] === undefined) return false;
if (!('clipNorm' in value) || value['clipNorm'] === undefined) return false;
if (!('checkpoints' in value) || value['checkpoints'] === undefined) return false;
if (!('reviews' in value) || value['reviews'] === undefined) return false;
if (!('controls' in value) || value['controls'] === undefined) return false;
return true;
}
export function TrainingAgentFromJSON(json: any): TrainingAgent {
return TrainingAgentFromJSONTyped(json, false);
}
export function TrainingAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainingAgent {
if (json == null) {
return json;
}
return {
'limits': TrainingLimitsFromJSON(json['limits']),
'unavailable': json['unavailable'],
'learningRate': json['learning_rate'],
'clipNorm': json['clip_norm'],
'checkpoints': ((json['checkpoints'] as Array<any>).map(RetainedCheckpointFromJSON)),
'reviews': ((json['reviews'] as Array<any>).map(TrainingReviewFromJSON)),
'controls': ((json['controls'] as Array<any>).map(TrainingControlFromJSON)),
};
}
export function TrainingAgentToJSON(json: any): TrainingAgent {
return TrainingAgentToJSONTyped(json, false);
}
export function TrainingAgentToJSONTyped(value?: TrainingAgent | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'limits': TrainingLimitsToJSON(value['limits']),
'unavailable': value['unavailable'],
'learning_rate': value['learningRate'],
'clip_norm': value['clipNorm'],
'checkpoints': ((value['checkpoints'] as Array<any>).map(RetainedCheckpointToJSON)),
'reviews': ((value['reviews'] as Array<any>).map(TrainingReviewToJSON)),
'controls': ((value['controls'] as Array<any>).map(TrainingControlToJSON)),
};
}