Skip to content

The platform for continuously improving AI agents.

1.6 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 JudgeOption
 */
export interface JudgeOption {
    /**
     *
     * @type {string}
     * @memberof JudgeOption
     */
    label: string;
    /**
     *
     * @type {number}
     * @memberof JudgeOption
     */
    score: number;
}

/**
 * Check if a given object implements the JudgeOption interface.
 */
export function instanceOfJudgeOption(value: object): value is JudgeOption {
    if (!('label' in value) || value['label'] === undefined) return false;
    if (!('score' in value) || value['score'] === undefined) return false;
    return true;
}

export function JudgeOptionFromJSON(json: any): JudgeOption {
    return JudgeOptionFromJSONTyped(json, false);
}

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

        'label': json['label'],
        'score': json['score'],
    };
}

export function JudgeOptionToJSON(json: any): JudgeOption {
    return JudgeOptionToJSONTyped(json, false);
}

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

    return {

        'label': value['label'],
        'score': value['score'],
    };
}