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';
import type { EvaluationContextCheck } from './EvaluationContextCheck';
import {
    EvaluationContextCheckFromJSON,
    EvaluationContextCheckFromJSONTyped,
    EvaluationContextCheckToJSON,
    EvaluationContextCheckToJSONTyped,
} from './EvaluationContextCheck';
import type { EvaluationJudgeOption } from './EvaluationJudgeOption';
import {
    EvaluationJudgeOptionFromJSON,
    EvaluationJudgeOptionFromJSONTyped,
    EvaluationJudgeOptionToJSON,
    EvaluationJudgeOptionToJSONTyped,
} from './EvaluationJudgeOption';

/**
 *
 * @export
 * @interface EvaluationContextReport
 */
export interface EvaluationContextReport {
    /**
     *
     * @type {Array<EvaluationContextCheck>}
     * @memberof EvaluationContextReport
     */
    checks: Array<EvaluationContextCheck>;
    /**
     *
     * @type {Array<EvaluationJudgeOption>}
     * @memberof EvaluationContextReport
     */
    judgeModels: Array<EvaluationJudgeOption>;
}

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

export function EvaluationContextReportFromJSON(json: any): EvaluationContextReport {
    return EvaluationContextReportFromJSONTyped(json, false);
}

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

        'checks': ((json['checks'] as Array<any>).map(EvaluationContextCheckFromJSON)),
        'judgeModels': ((json['judge_models'] as Array<any>).map(EvaluationJudgeOptionFromJSON)),
    };
}

export function EvaluationContextReportToJSON(json: any): EvaluationContextReport {
    return EvaluationContextReportToJSONTyped(json, false);
}

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

    return {

        'checks': ((value['checks'] as Array<any>).map(EvaluationContextCheckToJSON)),
        'judge_models': ((value['judgeModels'] as Array<any>).map(EvaluationJudgeOptionToJSON)),
    };
}