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 FinetuningTrainingMethod
*/
export interface FinetuningTrainingMethod {
/**
*
* @type {boolean}
* @memberof FinetuningTrainingMethod
*/
enabled: boolean;
/**
*
* @type {number}
* @memberof FinetuningTrainingMethod
*/
contextLength?: number | null;
/**
*
* @type {boolean}
* @memberof FinetuningTrainingMethod
*/
validatedContextLength?: boolean;
}
/**
* Check if a given object implements the FinetuningTrainingMethod interface.
*/
export function instanceOfFinetuningTrainingMethod(value: object): value is FinetuningTrainingMethod {
if (!('enabled' in value) || value['enabled'] === undefined) return false;
return true;
}
export function FinetuningTrainingMethodFromJSON(json: any): FinetuningTrainingMethod {
return FinetuningTrainingMethodFromJSONTyped(json, false);
}
export function FinetuningTrainingMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinetuningTrainingMethod {
if (json == null) {
return json;
}
return {
'enabled': json['enabled'],
'contextLength': json['context_length'] == null ? undefined : json['context_length'],
'validatedContextLength': json['validated_context_length'] == null ? undefined : json['validated_context_length'],
};
}
export function FinetuningTrainingMethodToJSON(json: any): FinetuningTrainingMethod {
return FinetuningTrainingMethodToJSONTyped(json, false);
}
export function FinetuningTrainingMethodToJSONTyped(value?: FinetuningTrainingMethod | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'enabled': value['enabled'],
'context_length': value['contextLength'],
'validated_context_length': value['validatedContextLength'],
};
}