Skip to content

The platform for continuously improving AI agents.

5.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';
import type { DecisionParticipantRequest } from './DecisionParticipantRequest';
import {
    DecisionParticipantRequestFromJSON,
    DecisionParticipantRequestFromJSONTyped,
    DecisionParticipantRequestToJSON,
    DecisionParticipantRequestToJSONTyped,
} from './DecisionParticipantRequest';
import type { DecisionComparisonRequestPurposeEnum } from './DecisionComparisonRequestPurposeEnum';
import {
    DecisionComparisonRequestPurposeEnumFromJSON,
    DecisionComparisonRequestPurposeEnumFromJSONTyped,
    DecisionComparisonRequestPurposeEnumToJSON,
    DecisionComparisonRequestPurposeEnumToJSONTyped,
} from './DecisionComparisonRequestPurposeEnum';

/**
 *
 * @export
 * @interface DecisionComparisonRequestRequest
 */
export interface DecisionComparisonRequestRequest {
    /**
     *
     * @type {string}
     * @memberof DecisionComparisonRequestRequest
     */
    project: string;
    /**
     *
     * @type {string}
     * @memberof DecisionComparisonRequestRequest
     */
    name: string;
    /**
     *
     * @type {string}
     * @memberof DecisionComparisonRequestRequest
     */
    requestKey: string;
    /**
     *
     * @type {string}
     * @memberof DecisionComparisonRequestRequest
     */
    finalCell: string;
    /**
     *
     * @type {string}
     * @memberof DecisionComparisonRequestRequest
     */
    calibrationCell?: string | null;
    /**
     *
     * @type {Array<DecisionParticipantRequest>}
     * @memberof DecisionComparisonRequestRequest
     */
    participants: Array<DecisionParticipantRequest>;
    /**
     *
     * @type {string}
     * @memberof DecisionComparisonRequestRequest
     */
    baseline: string;
    /**
     *
     * @type {number}
     * @memberof DecisionComparisonRequestRequest
     */
    bootstrapSamples?: number;
    /**
     *
     * @type {number}
     * @memberof DecisionComparisonRequestRequest
     */
    seed?: number;
    /**
     *
     * @type {any}
     * @memberof DecisionComparisonRequestRequest
     */
    inference?: any | null;
    /**
     *
     * @type {DecisionComparisonRequestPurposeEnum}
     * @memberof DecisionComparisonRequestRequest
     */
    purpose?: DecisionComparisonRequestPurposeEnum;
}



/**
 * Check if a given object implements the DecisionComparisonRequestRequest interface.
 */
export function instanceOfDecisionComparisonRequestRequest(value: object): value is DecisionComparisonRequestRequest {
    if (!('project' in value) || value['project'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('requestKey' in value) || value['requestKey'] === undefined) return false;
    if (!('finalCell' in value) || value['finalCell'] === undefined) return false;
    if (!('participants' in value) || value['participants'] === undefined) return false;
    if (!('baseline' in value) || value['baseline'] === undefined) return false;
    return true;
}

export function DecisionComparisonRequestRequestFromJSON(json: any): DecisionComparisonRequestRequest {
    return DecisionComparisonRequestRequestFromJSONTyped(json, false);
}

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

        'project': json['project'],
        'name': json['name'],
        'requestKey': json['request_key'],
        'finalCell': json['final_cell'],
        'calibrationCell': json['calibration_cell'] == null ? undefined : json['calibration_cell'],
        'participants': ((json['participants'] as Array<any>).map(DecisionParticipantRequestFromJSON)),
        'baseline': json['baseline'],
        'bootstrapSamples': json['bootstrap_samples'] == null ? undefined : json['bootstrap_samples'],
        'seed': json['seed'] == null ? undefined : json['seed'],
        'inference': json['inference'] == null ? undefined : json['inference'],
        'purpose': json['purpose'] == null ? undefined : DecisionComparisonRequestPurposeEnumFromJSON(json['purpose']),
    };
}

export function DecisionComparisonRequestRequestToJSON(json: any): DecisionComparisonRequestRequest {
    return DecisionComparisonRequestRequestToJSONTyped(json, false);
}

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

    return {

        'project': value['project'],
        'name': value['name'],
        'request_key': value['requestKey'],
        'final_cell': value['finalCell'],
        'calibration_cell': value['calibrationCell'],
        'participants': ((value['participants'] as Array<any>).map(DecisionParticipantRequestToJSON)),
        'baseline': value['baseline'],
        'bootstrap_samples': value['bootstrapSamples'],
        'seed': value['seed'],
        'inference': value['inference'],
        'purpose': DecisionComparisonRequestPurposeEnumToJSON(value['purpose']),
    };
}