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';
/**
*
* @export
* @interface EvalMatrixRequest
*/
export interface EvalMatrixRequest {
/**
*
* @type {string}
* @memberof EvalMatrixRequest
*/
project: string;
/**
*
* @type {string}
* @memberof EvalMatrixRequest
*/
capability?: string | null;
/**
*
* @type {string}
* @memberof EvalMatrixRequest
*/
name: string;
/**
*
* @type {EvalMatrixTypeEnum}
* @memberof EvalMatrixRequest
*/
type: EvalMatrixTypeEnum;
/**
*
* @type {string}
* @memberof EvalMatrixRequest
*/
source: string;
/**
*
* @type {string}
* @memberof EvalMatrixRequest
*/
spanType?: string;
/**
*
* @type {string}
* @memberof EvalMatrixRequest
*/
spanName?: string;
/**
*
* @type {boolean}
* @memberof EvalMatrixRequest
*/
enabled?: boolean;
}
/**
* Check if a given object implements the EvalMatrixRequest interface.
*/
export function instanceOfEvalMatrixRequest(value: object): value is EvalMatrixRequest {
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;
return true;
}
export function EvalMatrixRequestFromJSON(json: any): EvalMatrixRequest {
return EvalMatrixRequestFromJSONTyped(json, false);
}
export function EvalMatrixRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalMatrixRequest {
if (json == null) {
return json;
}
return {
'project': json['project'],
'capability': json['capability'] == null ? undefined : json['capability'],
'name': json['name'],
'type': EvalMatrixTypeEnumFromJSON(json['type']),
'source': json['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'],
};
}
export function EvalMatrixRequestToJSON(json: any): EvalMatrixRequest {
return EvalMatrixRequestToJSONTyped(json, false);
}
export function EvalMatrixRequestToJSONTyped(value?: EvalMatrixRequest | 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'],
};
}