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 NativeSamplePrediction
 */
export interface NativeSamplePrediction {
    /**
     *
     * @type {any}
     * @memberof NativeSamplePrediction
     */
    raw: any | null;
    /**
     *
     * @type {any}
     * @memberof NativeSamplePrediction
     */
    calibrated: any | null;
    /**
     *
     * @type {{ [key: string]: number; }}
     * @memberof NativeSamplePrediction
     */
    metrics: { [key: string]: number; };
    /**
     *
     * @type {{ [key: string]: number; }}
     * @memberof NativeSamplePrediction
     */
    calibratedMetrics: { [key: string]: number; };
    /**
     *
     * @type {string}
     * @memberof NativeSamplePrediction
     */
    error: string;
}

/**
 * Check if a given object implements the NativeSamplePrediction interface.
 */
export function instanceOfNativeSamplePrediction(value: object): value is NativeSamplePrediction {
    if (!('raw' in value) || value['raw'] === undefined) return false;
    if (!('calibrated' in value) || value['calibrated'] === undefined) return false;
    if (!('metrics' in value) || value['metrics'] === undefined) return false;
    if (!('calibratedMetrics' in value) || value['calibratedMetrics'] === undefined) return false;
    if (!('error' in value) || value['error'] === undefined) return false;
    return true;
}

export function NativeSamplePredictionFromJSON(json: any): NativeSamplePrediction {
    return NativeSamplePredictionFromJSONTyped(json, false);
}

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

        'raw': json['raw'],
        'calibrated': json['calibrated'],
        'metrics': json['metrics'],
        'calibratedMetrics': json['calibrated_metrics'],
        'error': json['error'],
    };
}

export function NativeSamplePredictionToJSON(json: any): NativeSamplePrediction {
    return NativeSamplePredictionToJSONTyped(json, false);
}

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

    return {

        'raw': value['raw'],
        'calibrated': value['calibrated'],
        'metrics': value['metrics'],
        'calibrated_metrics': value['calibratedMetrics'],
        'error': value['error'],
    };
}