Skip to content

The platform for continuously improving AI agents.

2.3 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 EvaluationReuseRequest
 */
export interface EvaluationReuseRequest {
    /**
     *
     * @type {string}
     * @memberof EvaluationReuseRequest
     */
    sourceEvaluation: string;
    /**
     *
     * @type {string}
     * @memberof EvaluationReuseRequest
     */
    participant: string;
    /**
     *
     * @type {string}
     * @memberof EvaluationReuseRequest
     */
    sourceParticipant: string;
}

/**
 * Check if a given object implements the EvaluationReuseRequest interface.
 */
export function instanceOfEvaluationReuseRequest(value: object): value is EvaluationReuseRequest {
    if (!('sourceEvaluation' in value) || value['sourceEvaluation'] === undefined) return false;
    if (!('participant' in value) || value['participant'] === undefined) return false;
    if (!('sourceParticipant' in value) || value['sourceParticipant'] === undefined) return false;
    return true;
}

export function EvaluationReuseRequestFromJSON(json: any): EvaluationReuseRequest {
    return EvaluationReuseRequestFromJSONTyped(json, false);
}

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

        'sourceEvaluation': json['source_evaluation'],
        'participant': json['participant'],
        'sourceParticipant': json['source_participant'],
    };
}

export function EvaluationReuseRequestToJSON(json: any): EvaluationReuseRequest {
    return EvaluationReuseRequestToJSONTyped(json, false);
}

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

    return {

        'source_evaluation': value['sourceEvaluation'],
        'participant': value['participant'],
        'source_participant': value['sourceParticipant'],
    };
}