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 MetricComparison
*/
export interface MetricComparison {
/**
*
* @type {string}
* @memberof MetricComparison
*/
name: string;
/**
*
* @type {number}
* @memberof MetricComparison
*/
baseline: number | null;
/**
*
* @type {number}
* @memberof MetricComparison
*/
candidate: number | null;
/**
*
* @type {number}
* @memberof MetricComparison
*/
delta: number | null;
/**
*
* @type {string}
* @memberof MetricComparison
*/
status: string;
}
/**
* Check if a given object implements the MetricComparison interface.
*/
export function instanceOfMetricComparison(value: object): value is MetricComparison {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('baseline' in value) || value['baseline'] === undefined) return false;
if (!('candidate' in value) || value['candidate'] === undefined) return false;
if (!('delta' in value) || value['delta'] === undefined) return false;
if (!('status' in value) || value['status'] === undefined) return false;
return true;
}
export function MetricComparisonFromJSON(json: any): MetricComparison {
return MetricComparisonFromJSONTyped(json, false);
}
export function MetricComparisonFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricComparison {
if (json == null) {
return json;
}
return {
'name': json['name'],
'baseline': json['baseline'],
'candidate': json['candidate'],
'delta': json['delta'],
'status': json['status'],
};
}
export function MetricComparisonToJSON(json: any): MetricComparison {
return MetricComparisonToJSONTyped(json, false);
}
export function MetricComparisonToJSONTyped(value?: MetricComparison | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'baseline': value['baseline'],
'candidate': value['candidate'],
'delta': value['delta'],
'status': value['status'],
};
}