Skip to content

The platform for continuously improving AI agents.

2.7 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';
/**
 *
 * @export
 * @interface NativeLabelScore
 */
export interface NativeLabelScore {
    /**
     *
     * @type {number}
     * @memberof NativeLabelScore
     */
    support: number;
    /**
     *
     * @type {number}
     * @memberof NativeLabelScore
     */
    predicted: number;
    /**
     *
     * @type {number}
     * @memberof NativeLabelScore
     */
    correct: number;
    /**
     *
     * @type {number}
     * @memberof NativeLabelScore
     */
    precision: number | null;
    /**
     *
     * @type {number}
     * @memberof NativeLabelScore
     */
    recall: number | null;
    /**
     *
     * @type {number}
     * @memberof NativeLabelScore
     */
    f1: number | null;
}

/**
 * Check if a given object implements the NativeLabelScore interface.
 */
export function instanceOfNativeLabelScore(value: object): value is NativeLabelScore {
    if (!('support' in value) || value['support'] === undefined) return false;
    if (!('predicted' in value) || value['predicted'] === undefined) return false;
    if (!('correct' in value) || value['correct'] === undefined) return false;
    if (!('precision' in value) || value['precision'] === undefined) return false;
    if (!('recall' in value) || value['recall'] === undefined) return false;
    if (!('f1' in value) || value['f1'] === undefined) return false;
    return true;
}

export function NativeLabelScoreFromJSON(json: any): NativeLabelScore {
    return NativeLabelScoreFromJSONTyped(json, false);
}

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

        'support': json['support'],
        'predicted': json['predicted'],
        'correct': json['correct'],
        'precision': json['precision'],
        'recall': json['recall'],
        'f1': json['f1'],
    };
}

export function NativeLabelScoreToJSON(json: any): NativeLabelScore {
    return NativeLabelScoreToJSONTyped(json, false);
}

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

    return {

        'support': value['support'],
        'predicted': value['predicted'],
        'correct': value['correct'],
        'precision': value['precision'],
        'recall': value['recall'],
        'f1': value['f1'],
    };
}