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 { SplitMethodE87Enum } from './SplitMethodE87Enum';
import {
SplitMethodE87EnumFromJSON,
SplitMethodE87EnumFromJSONTyped,
SplitMethodE87EnumToJSON,
SplitMethodE87EnumToJSONTyped,
} from './SplitMethodE87Enum';
/**
*
* @export
* @interface PatchedFinetuningJobRequest
*/
export interface PatchedFinetuningJobRequest {
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
requestKey?: string | null;
/**
*
* @type {any}
* @memberof PatchedFinetuningJobRequest
*/
acceptedFindings?: any | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
project?: string;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
capability?: string | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
dataset?: string;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
evalDataset?: string | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
evalCell?: string | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
evalSet?: string | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
evalJudgeModel?: PatchedFinetuningJobRequestEvalJudgeModelEnum;
/**
*
* @type {Array<string>}
* @memberof PatchedFinetuningJobRequest
*/
benchmarkModels?: Array<string>;
/**
*
* @type {boolean}
* @memberof PatchedFinetuningJobRequest
*/
evalIncumbentBefore?: boolean;
/**
*
* @type {boolean}
* @memberof PatchedFinetuningJobRequest
*/
evalIncumbentAfter?: boolean;
/**
*
* @type {boolean}
* @memberof PatchedFinetuningJobRequest
*/
evalModelBefore?: boolean;
/**
*
* @type {boolean}
* @memberof PatchedFinetuningJobRequest
*/
evalModelAfter?: boolean;
/**
*
* @type {boolean}
* @memberof PatchedFinetuningJobRequest
*/
validationEnabled?: boolean;
/**
*
* @type {number}
* @memberof PatchedFinetuningJobRequest
*/
validationSplitRatio?: number;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
validationDataset?: string | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
cell?: string | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
validationCell?: string | null;
/**
*
* @type {SplitMethodE87Enum}
* @memberof PatchedFinetuningJobRequest
*/
splitMethod?: SplitMethodE87Enum;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
name?: string;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
useCase?: string;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
baseModel?: string;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
baselineModel?: string;
/**
*
* @type {any}
* @memberof PatchedFinetuningJobRequest
*/
hyperparameters?: any | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
groupId?: string | null;
/**
*
* @type {string}
* @memberof PatchedFinetuningJobRequest
*/
modelTier?: PatchedFinetuningJobRequestModelTierEnum;
}
/**
* @export
*/
export const PatchedFinetuningJobRequestEvalJudgeModelEnum = {
gpt_5_6_luna: 'gpt-5.6-luna',
gpt_5_6_terra: 'gpt-5.6-terra',
claude_sonnet_5: 'claude-sonnet-5',
claude_haiku_4_5: 'claude-haiku-4-5',
gemini_3_1_pro_preview: 'gemini-3.1-pro-preview',
gemini_3_8_flash: 'gemini-3.8-flash',
deepseek_v3_2: 'deepseek-v3.2',
empty: ''
} as const;
export type PatchedFinetuningJobRequestEvalJudgeModelEnum = typeof PatchedFinetuningJobRequestEvalJudgeModelEnum[keyof typeof PatchedFinetuningJobRequestEvalJudgeModelEnum];
/**
* @export
*/
export const PatchedFinetuningJobRequestModelTierEnum = {
compact: 'compact',
small: 'small',
mid: 'mid',
large: 'large',
empty: ''
} as const;
export type PatchedFinetuningJobRequestModelTierEnum = typeof PatchedFinetuningJobRequestModelTierEnum[keyof typeof PatchedFinetuningJobRequestModelTierEnum];
/**
* Check if a given object implements the PatchedFinetuningJobRequest interface.
*/
export function instanceOfPatchedFinetuningJobRequest(value: object): value is PatchedFinetuningJobRequest {
return true;
}
export function PatchedFinetuningJobRequestFromJSON(json: any): PatchedFinetuningJobRequest {
return PatchedFinetuningJobRequestFromJSONTyped(json, false);
}
export function PatchedFinetuningJobRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedFinetuningJobRequest {
if (json == null) {
return json;
}
return {
'requestKey': json['request_key'] == null ? undefined : json['request_key'],
'acceptedFindings': json['accepted_findings'] == null ? undefined : json['accepted_findings'],
'project': json['project'] == null ? undefined : json['project'],
'capability': json['capability'] == null ? undefined : json['capability'],
'dataset': json['dataset'] == null ? undefined : json['dataset'],
'evalDataset': json['eval_dataset'] == null ? undefined : json['eval_dataset'],
'evalCell': json['eval_cell'] == null ? undefined : json['eval_cell'],
'evalSet': json['eval_set'] == null ? undefined : json['eval_set'],
'evalJudgeModel': json['eval_judge_model'] == null ? undefined : json['eval_judge_model'],
'benchmarkModels': json['benchmark_models'] == null ? undefined : json['benchmark_models'],
'evalIncumbentBefore': json['eval_incumbent_before'] == null ? undefined : json['eval_incumbent_before'],
'evalIncumbentAfter': json['eval_incumbent_after'] == null ? undefined : json['eval_incumbent_after'],
'evalModelBefore': json['eval_model_before'] == null ? undefined : json['eval_model_before'],
'evalModelAfter': json['eval_model_after'] == null ? undefined : json['eval_model_after'],
'validationEnabled': json['validation_enabled'] == null ? undefined : json['validation_enabled'],
'validationSplitRatio': json['validation_split_ratio'] == null ? undefined : json['validation_split_ratio'],
'validationDataset': json['validation_dataset'] == null ? undefined : json['validation_dataset'],
'cell': json['cell'] == null ? undefined : json['cell'],
'validationCell': json['validation_cell'] == null ? undefined : json['validation_cell'],
'splitMethod': json['split_method'] == null ? undefined : SplitMethodE87EnumFromJSON(json['split_method']),
'name': json['name'] == null ? undefined : json['name'],
'useCase': json['use_case'] == null ? undefined : json['use_case'],
'baseModel': json['base_model'] == null ? undefined : json['base_model'],
'baselineModel': json['baseline_model'] == null ? undefined : json['baseline_model'],
'hyperparameters': json['hyperparameters'] == null ? undefined : json['hyperparameters'],
'groupId': json['group_id'] == null ? undefined : json['group_id'],
'modelTier': json['model_tier'] == null ? undefined : json['model_tier'],
};
}
export function PatchedFinetuningJobRequestToJSON(json: any): PatchedFinetuningJobRequest {
return PatchedFinetuningJobRequestToJSONTyped(json, false);
}
export function PatchedFinetuningJobRequestToJSONTyped(value?: PatchedFinetuningJobRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'request_key': value['requestKey'],
'accepted_findings': value['acceptedFindings'],
'project': value['project'],
'capability': value['capability'],
'dataset': value['dataset'],
'eval_dataset': value['evalDataset'],
'eval_cell': value['evalCell'],
'eval_set': value['evalSet'],
'eval_judge_model': value['evalJudgeModel'],
'benchmark_models': value['benchmarkModels'],
'eval_incumbent_before': value['evalIncumbentBefore'],
'eval_incumbent_after': value['evalIncumbentAfter'],
'eval_model_before': value['evalModelBefore'],
'eval_model_after': value['evalModelAfter'],
'validation_enabled': value['validationEnabled'],
'validation_split_ratio': value['validationSplitRatio'],
'validation_dataset': value['validationDataset'],
'cell': value['cell'],
'validation_cell': value['validationCell'],
'split_method': SplitMethodE87EnumToJSON(value['splitMethod']),
'name': value['name'],
'use_case': value['useCase'],
'base_model': value['baseModel'],
'baseline_model': value['baselineModel'],
'hyperparameters': value['hyperparameters'],
'group_id': value['groupId'],
'model_tier': value['modelTier'],
};
}