Skip to content

The platform for continuously improving AI agents.

3.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 EvaluationJudgeOption
 */
export interface EvaluationJudgeOption {
    /**
     *
     * @type {string}
     * @memberof EvaluationJudgeOption
     */
    model: string;
    /**
     *
     * @type {string}
     * @memberof EvaluationJudgeOption
     */
    name: string;
    /**
     *
     * @type {number}
     * @memberof EvaluationJudgeOption
     */
    contextWindow: number | null;
    /**
     *
     * @type {number}
     * @memberof EvaluationJudgeOption
     */
    maxOutputTokens: number | null;
    /**
     *
     * @type {number}
     * @memberof EvaluationJudgeOption
     */
    reservedOutputTokens: number;
    /**
     *
     * @type {number}
     * @memberof EvaluationJudgeOption
     */
    estimatedCredits: number | null;
    /**
     *
     * @type {number}
     * @memberof EvaluationJudgeOption
     */
    creditsDelta: number | null;
    /**
     *
     * @type {string}
     * @memberof EvaluationJudgeOption
     */
    status: string;
}

/**
 * Check if a given object implements the EvaluationJudgeOption interface.
 */
export function instanceOfEvaluationJudgeOption(value: object): value is EvaluationJudgeOption {
    if (!('model' in value) || value['model'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('contextWindow' in value) || value['contextWindow'] === undefined) return false;
    if (!('maxOutputTokens' in value) || value['maxOutputTokens'] === undefined) return false;
    if (!('reservedOutputTokens' in value) || value['reservedOutputTokens'] === undefined) return false;
    if (!('estimatedCredits' in value) || value['estimatedCredits'] === undefined) return false;
    if (!('creditsDelta' in value) || value['creditsDelta'] === undefined) return false;
    if (!('status' in value) || value['status'] === undefined) return false;
    return true;
}

export function EvaluationJudgeOptionFromJSON(json: any): EvaluationJudgeOption {
    return EvaluationJudgeOptionFromJSONTyped(json, false);
}

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

        'model': json['model'],
        'name': json['name'],
        'contextWindow': json['context_window'],
        'maxOutputTokens': json['max_output_tokens'],
        'reservedOutputTokens': json['reserved_output_tokens'],
        'estimatedCredits': json['estimated_credits'],
        'creditsDelta': json['credits_delta'],
        'status': json['status'],
    };
}

export function EvaluationJudgeOptionToJSON(json: any): EvaluationJudgeOption {
    return EvaluationJudgeOptionToJSONTyped(json, false);
}

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

    return {

        'model': value['model'],
        'name': value['name'],
        'context_window': value['contextWindow'],
        'max_output_tokens': value['maxOutputTokens'],
        'reserved_output_tokens': value['reservedOutputTokens'],
        'estimated_credits': value['estimatedCredits'],
        'credits_delta': value['creditsDelta'],
        'status': value['status'],
    };
}