Skip to content

The platform for continuously improving AI agents.

6.2 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 { TaskTypeSourceEnum } from './TaskTypeSourceEnum';
import {
    TaskTypeSourceEnumFromJSON,
    TaskTypeSourceEnumFromJSONTyped,
    TaskTypeSourceEnumToJSON,
    TaskTypeSourceEnumToJSONTyped,
} from './TaskTypeSourceEnum';
import type { FinetuningBenchmarkSnapshot } from './FinetuningBenchmarkSnapshot';
import {
    FinetuningBenchmarkSnapshotFromJSON,
    FinetuningBenchmarkSnapshotFromJSONTyped,
    FinetuningBenchmarkSnapshotToJSON,
    FinetuningBenchmarkSnapshotToJSONTyped,
} from './FinetuningBenchmarkSnapshot';
import type { FinetuningExperiment } from './FinetuningExperiment';
import {
    FinetuningExperimentFromJSON,
    FinetuningExperimentFromJSONTyped,
    FinetuningExperimentToJSON,
    FinetuningExperimentToJSONTyped,
} from './FinetuningExperiment';
import type { FinetuningRecommendationDataset } from './FinetuningRecommendationDataset';
import {
    FinetuningRecommendationDatasetFromJSON,
    FinetuningRecommendationDatasetFromJSONTyped,
    FinetuningRecommendationDatasetToJSON,
    FinetuningRecommendationDatasetToJSONTyped,
} from './FinetuningRecommendationDataset';
import type { FinetuningExcludedModel } from './FinetuningExcludedModel';
import {
    FinetuningExcludedModelFromJSON,
    FinetuningExcludedModelFromJSONTyped,
    FinetuningExcludedModelToJSON,
    FinetuningExcludedModelToJSONTyped,
} from './FinetuningExcludedModel';

/**
 *
 * @export
 * @interface FinetuningRecommendationResponse
 */
export interface FinetuningRecommendationResponse {
    /**
     *
     * @type {string}
     * @memberof FinetuningRecommendationResponse
     */
    taskType: string;
    /**
     *
     * @type {TaskTypeSourceEnum}
     * @memberof FinetuningRecommendationResponse
     */
    taskTypeSource: TaskTypeSourceEnum;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof FinetuningRecommendationResponse
     */
    capabilityContext: { [key: string]: any; } | null;
    /**
     *
     * @type {{ [key: string]: number; }}
     * @memberof FinetuningRecommendationResponse
     */
    skillWeights: { [key: string]: number; };
    /**
     *
     * @type {FinetuningRecommendationDataset}
     * @memberof FinetuningRecommendationResponse
     */
    dataset: FinetuningRecommendationDataset;
    /**
     *
     * @type {Array<FinetuningExperiment>}
     * @memberof FinetuningRecommendationResponse
     */
    candidates: Array<FinetuningExperiment>;
    /**
     *
     * @type {Array<FinetuningExcludedModel>}
     * @memberof FinetuningRecommendationResponse
     */
    excluded: Array<FinetuningExcludedModel>;
    /**
     *
     * @type {Array<string>}
     * @memberof FinetuningRecommendationResponse
     */
    shown: Array<string>;
    /**
     *
     * @type {FinetuningBenchmarkSnapshot}
     * @memberof FinetuningRecommendationResponse
     */
    benchmarkSnapshot: FinetuningBenchmarkSnapshot;
}



/**
 * Check if a given object implements the FinetuningRecommendationResponse interface.
 */
export function instanceOfFinetuningRecommendationResponse(value: object): value is FinetuningRecommendationResponse {
    if (!('taskType' in value) || value['taskType'] === undefined) return false;
    if (!('taskTypeSource' in value) || value['taskTypeSource'] === undefined) return false;
    if (!('capabilityContext' in value) || value['capabilityContext'] === undefined) return false;
    if (!('skillWeights' in value) || value['skillWeights'] === undefined) return false;
    if (!('dataset' in value) || value['dataset'] === undefined) return false;
    if (!('candidates' in value) || value['candidates'] === undefined) return false;
    if (!('excluded' in value) || value['excluded'] === undefined) return false;
    if (!('shown' in value) || value['shown'] === undefined) return false;
    if (!('benchmarkSnapshot' in value) || value['benchmarkSnapshot'] === undefined) return false;
    return true;
}

export function FinetuningRecommendationResponseFromJSON(json: any): FinetuningRecommendationResponse {
    return FinetuningRecommendationResponseFromJSONTyped(json, false);
}

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

        'taskType': json['task_type'],
        'taskTypeSource': TaskTypeSourceEnumFromJSON(json['task_type_source']),
        'capabilityContext': json['capability_context'],
        'skillWeights': json['skill_weights'],
        'dataset': FinetuningRecommendationDatasetFromJSON(json['dataset']),
        'candidates': ((json['candidates'] as Array<any>).map(FinetuningExperimentFromJSON)),
        'excluded': ((json['excluded'] as Array<any>).map(FinetuningExcludedModelFromJSON)),
        'shown': json['shown'],
        'benchmarkSnapshot': FinetuningBenchmarkSnapshotFromJSON(json['benchmark_snapshot']),
    };
}

export function FinetuningRecommendationResponseToJSON(json: any): FinetuningRecommendationResponse {
    return FinetuningRecommendationResponseToJSONTyped(json, false);
}

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

    return {

        'task_type': value['taskType'],
        'task_type_source': TaskTypeSourceEnumToJSON(value['taskTypeSource']),
        'capability_context': value['capabilityContext'],
        'skill_weights': value['skillWeights'],
        'dataset': FinetuningRecommendationDatasetToJSON(value['dataset']),
        'candidates': ((value['candidates'] as Array<any>).map(FinetuningExperimentToJSON)),
        'excluded': ((value['excluded'] as Array<any>).map(FinetuningExcludedModelToJSON)),
        'shown': value['shown'],
        'benchmark_snapshot': FinetuningBenchmarkSnapshotToJSON(value['benchmarkSnapshot']),
    };
}