Skip to content

The platform for continuously improving AI agents.

3.9 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 { FamilyEnum } from './FamilyEnum';
import {
    FamilyEnumFromJSON,
    FamilyEnumFromJSONTyped,
    FamilyEnumToJSON,
    FamilyEnumToJSONTyped,
} from './FamilyEnum';

/**
 *
 * @export
 * @interface DecisionTrainingModelOption
 */
export interface DecisionTrainingModelOption {
    /**
     *
     * @type {string}
     * @memberof DecisionTrainingModelOption
     */
    id: string;
    /**
     *
     * @type {string}
     * @memberof DecisionTrainingModelOption
     */
    name: string;
    /**
     *
     * @type {FamilyEnum}
     * @memberof DecisionTrainingModelOption
     */
    family: FamilyEnum;
    /**
     *
     * @type {boolean}
     * @memberof DecisionTrainingModelOption
     */
    trainingAvailable: boolean;
    /**
     *
     * @type {string}
     * @memberof DecisionTrainingModelOption
     */
    unavailableReason: string | null;
    /**
     *
     * @type {number}
     * @memberof DecisionTrainingModelOption
     */
    maxContextLength: number;
    /**
     *
     * @type {any}
     * @memberof DecisionTrainingModelOption
     */
    limits: any | null;
    /**
     *
     * @type {number}
     * @memberof DecisionTrainingModelOption
     */
    decisionIndex: number | null;
}



/**
 * Check if a given object implements the DecisionTrainingModelOption interface.
 */
export function instanceOfDecisionTrainingModelOption(value: object): value is DecisionTrainingModelOption {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('family' in value) || value['family'] === undefined) return false;
    if (!('trainingAvailable' in value) || value['trainingAvailable'] === undefined) return false;
    if (!('unavailableReason' in value) || value['unavailableReason'] === undefined) return false;
    if (!('maxContextLength' in value) || value['maxContextLength'] === undefined) return false;
    if (!('limits' in value) || value['limits'] === undefined) return false;
    if (!('decisionIndex' in value) || value['decisionIndex'] === undefined) return false;
    return true;
}

export function DecisionTrainingModelOptionFromJSON(json: any): DecisionTrainingModelOption {
    return DecisionTrainingModelOptionFromJSONTyped(json, false);
}

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

        'id': json['id'],
        'name': json['name'],
        'family': FamilyEnumFromJSON(json['family']),
        'trainingAvailable': json['training_available'],
        'unavailableReason': json['unavailable_reason'],
        'maxContextLength': json['max_context_length'],
        'limits': json['limits'],
        'decisionIndex': json['decision_index'],
    };
}

export function DecisionTrainingModelOptionToJSON(json: any): DecisionTrainingModelOption {
    return DecisionTrainingModelOptionToJSONTyped(json, false);
}

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

    return {

        'id': value['id'],
        'name': value['name'],
        'family': FamilyEnumToJSON(value['family']),
        'training_available': value['trainingAvailable'],
        'unavailable_reason': value['unavailableReason'],
        'max_context_length': value['maxContextLength'],
        'limits': value['limits'],
        'decision_index': value['decisionIndex'],
    };
}