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 TrainingExperiment
*/
export interface TrainingExperiment {
/**
*
* @type {string}
* @memberof TrainingExperiment
*/
readonly id: string;
/**
*
* @type {string}
* @memberof TrainingExperiment
*/
readonly project: string;
/**
*
* @type {string}
* @memberof TrainingExperiment
*/
readonly name: string;
/**
*
* @type {string}
* @memberof TrainingExperiment
*/
readonly purpose: string;
/**
*
* @type {string}
* @memberof TrainingExperiment
*/
readonly requestKey: string;
/**
*
* @type {any}
* @memberof TrainingExperiment
*/
readonly variants: any | null;
/**
*
* @type {any}
* @memberof TrainingExperiment
*/
readonly protocol: any | null;
/**
*
* @type {string}
* @memberof TrainingExperiment
*/
readonly evaluation: string | null;
/**
*
* @type {string}
* @memberof TrainingExperiment
*/
readonly state: string;
/**
*
* @type {{ [key: string]: any; }}
* @memberof TrainingExperiment
*/
readonly record: { [key: string]: any; };
/**
*
* @type {Date}
* @memberof TrainingExperiment
*/
readonly createdAt: Date;
/**
*
* @type {Date}
* @memberof TrainingExperiment
*/
readonly updatedAt: Date;
}
/**
* Check if a given object implements the TrainingExperiment interface.
*/
export function instanceOfTrainingExperiment(value: object): value is TrainingExperiment {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('project' in value) || value['project'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('purpose' in value) || value['purpose'] === undefined) return false;
if (!('requestKey' in value) || value['requestKey'] === undefined) return false;
if (!('variants' in value) || value['variants'] === undefined) return false;
if (!('protocol' in value) || value['protocol'] === undefined) return false;
if (!('evaluation' in value) || value['evaluation'] === undefined) return false;
if (!('state' in value) || value['state'] === undefined) return false;
if (!('record' in value) || value['record'] === undefined) return false;
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
return true;
}
export function TrainingExperimentFromJSON(json: any): TrainingExperiment {
return TrainingExperimentFromJSONTyped(json, false);
}
export function TrainingExperimentFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainingExperiment {
if (json == null) {
return json;
}
return {
'id': json['id'],
'project': json['project'],
'name': json['name'],
'purpose': json['purpose'],
'requestKey': json['request_key'],
'variants': json['variants'],
'protocol': json['protocol'],
'evaluation': json['evaluation'],
'state': json['state'],
'record': json['record'],
'createdAt': (new Date(json['created_at'])),
'updatedAt': (new Date(json['updated_at'])),
};
}
export function TrainingExperimentToJSON(json: any): TrainingExperiment {
return TrainingExperimentToJSONTyped(json, false);
}
export function TrainingExperimentToJSONTyped(value?: Omit<TrainingExperiment, 'id'|'project'|'name'|'purpose'|'request_key'|'variants'|'protocol'|'evaluation'|'state'|'record'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
};
}