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 { EvalMatrixTypeEnum } from './EvalMatrixTypeEnum';
import {
EvalMatrixTypeEnumFromJSON,
EvalMatrixTypeEnumFromJSONTyped,
EvalMatrixTypeEnumToJSON,
EvalMatrixTypeEnumToJSONTyped,
} from './EvalMatrixTypeEnum';
import type { DefinitionSourceEnum } from './DefinitionSourceEnum';
import {
DefinitionSourceEnumFromJSON,
DefinitionSourceEnumFromJSONTyped,
DefinitionSourceEnumToJSON,
DefinitionSourceEnumToJSONTyped,
} from './DefinitionSourceEnum';
/**
*
* @export
* @interface EvalMatrix
*/
export interface EvalMatrix {
/**
*
* @type {string}
* @memberof EvalMatrix
*/
readonly id: string;
/**
*
* @type {string}
* @memberof EvalMatrix
*/
project: string;
/**
*
* @type {string}
* @memberof EvalMatrix
*/
capability?: string | null;
/**
*
* @type {string}
* @memberof EvalMatrix
*/
name: string;
/**
*
* @type {EvalMatrixTypeEnum}
* @memberof EvalMatrix
*/
type: EvalMatrixTypeEnum;
/**
*
* @type {string}
* @memberof EvalMatrix
*/
source: string;
/**
*
* @type {DefinitionSourceEnum}
* @memberof EvalMatrix
*/
readonly definitionSource: DefinitionSourceEnum;
/**
*
* @type {string}
* @memberof EvalMatrix
*/
spanType?: string;
/**
*
* @type {string}
* @memberof EvalMatrix
*/
spanName?: string;
/**
*
* @type {boolean}
* @memberof EvalMatrix
*/
enabled?: boolean;
/**
*
* @type {Date}
* @memberof EvalMatrix
*/
readonly createdAt: Date;
/**
*
* @type {Date}
* @memberof EvalMatrix
*/
readonly updatedAt: Date;
}
/**
* Check if a given object implements the EvalMatrix interface.
*/
export function instanceOfEvalMatrix(value: object): value is EvalMatrix {
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 (!('type' in value) || value['type'] === undefined) return false;
if (!('source' in value) || value['source'] === undefined) return false;
if (!('definitionSource' in value) || value['definitionSource'] === 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 EvalMatrixFromJSON(json: any): EvalMatrix {
return EvalMatrixFromJSONTyped(json, false);
}
export function EvalMatrixFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalMatrix {
if (json == null) {
return json;
}
return {
'id': json['id'],
'project': json['project'],
'capability': json['capability'] == null ? undefined : json['capability'],
'name': json['name'],
'type': EvalMatrixTypeEnumFromJSON(json['type']),
'source': json['source'],
'definitionSource': DefinitionSourceEnumFromJSON(json['definition_source']),
'spanType': json['span_type'] == null ? undefined : json['span_type'],
'spanName': json['span_name'] == null ? undefined : json['span_name'],
'enabled': json['enabled'] == null ? undefined : json['enabled'],
'createdAt': (new Date(json['created_at'])),
'updatedAt': (new Date(json['updated_at'])),
};
}
export function EvalMatrixToJSON(json: any): EvalMatrix {
return EvalMatrixToJSONTyped(json, false);
}
export function EvalMatrixToJSONTyped(value?: Omit<EvalMatrix, 'id'|'definition_source'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'project': value['project'],
'capability': value['capability'],
'name': value['name'],
'type': EvalMatrixTypeEnumToJSON(value['type']),
'source': value['source'],
'span_type': value['spanType'],
'span_name': value['spanName'],
'enabled': value['enabled'],
};
}