Skip to content

The platform for continuously improving AI agents.

3.2 KB
Raw Blame
/* 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';
/**
 * One weighted skill, read against the graded candidates for this dataset —
 * ``rank_in_field`` of ``field_n``. ``percentile_global`` is the same skill read against
 * every model the benchmark artifact tracks, the population the benchmark rows use.
 * @export
 * @interface FinetuningSkillScore
 */
export interface FinetuningSkillScore {
    /**
     *
     * @type {string}
     * @memberof FinetuningSkillScore
     */
    skill: string;
    /**
     *
     * @type {number}
     * @memberof FinetuningSkillScore
     */
    weight: number;
    /**
     *
     * @type {number}
     * @memberof FinetuningSkillScore
     */
    percentileInField: number;
    /**
     *
     * @type {number}
     * @memberof FinetuningSkillScore
     */
    rankInField: number;
    /**
     *
     * @type {number}
     * @memberof FinetuningSkillScore
     */
    fieldN: number;
    /**
     *
     * @type {number}
     * @memberof FinetuningSkillScore
     */
    percentileGlobal: number;
}

/**
 * Check if a given object implements the FinetuningSkillScore interface.
 */
export function instanceOfFinetuningSkillScore(value: object): value is FinetuningSkillScore {
    if (!('skill' in value) || value['skill'] === undefined) return false;
    if (!('weight' in value) || value['weight'] === undefined) return false;
    if (!('percentileInField' in value) || value['percentileInField'] === undefined) return false;
    if (!('rankInField' in value) || value['rankInField'] === undefined) return false;
    if (!('fieldN' in value) || value['fieldN'] === undefined) return false;
    if (!('percentileGlobal' in value) || value['percentileGlobal'] === undefined) return false;
    return true;
}

export function FinetuningSkillScoreFromJSON(json: any): FinetuningSkillScore {
    return FinetuningSkillScoreFromJSONTyped(json, false);
}

export function FinetuningSkillScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinetuningSkillScore {
    if (json == null) {
        return json;
    }
    return {

        'skill': json['skill'],
        'weight': json['weight'],
        'percentileInField': json['percentile_in_field'],
        'rankInField': json['rank_in_field'],
        'fieldN': json['field_n'],
        'percentileGlobal': json['percentile_global'],
    };
}

export function FinetuningSkillScoreToJSON(json: any): FinetuningSkillScore {
    return FinetuningSkillScoreToJSONTyped(json, false);
}

export function FinetuningSkillScoreToJSONTyped(value?: FinetuningSkillScore | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'skill': value['skill'],
        'weight': value['weight'],
        'percentile_in_field': value['percentileInField'],
        'rank_in_field': value['rankInField'],
        'field_n': value['fieldN'],
        'percentile_global': value['percentileGlobal'],
    };
}