Skip to content

The platform for continuously improving AI agents.

2.0 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 { InferenceActivityPoint } from './InferenceActivityPoint';
import {
    InferenceActivityPointFromJSON,
    InferenceActivityPointFromJSONTyped,
    InferenceActivityPointToJSON,
    InferenceActivityPointToJSONTyped,
} from './InferenceActivityPoint';

/**
 * Container so the activity series isn't wrapped in a pagination envelope.
 * @export
 * @interface InferenceActivity
 */
export interface InferenceActivity {
    /**
     *
     * @type {Array<InferenceActivityPoint>}
     * @memberof InferenceActivity
     */
    points: Array<InferenceActivityPoint>;
}

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

export function InferenceActivityFromJSON(json: any): InferenceActivity {
    return InferenceActivityFromJSONTyped(json, false);
}

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

        'points': ((json['points'] as Array<any>).map(InferenceActivityPointFromJSON)),
    };
}

export function InferenceActivityToJSON(json: any): InferenceActivity {
    return InferenceActivityToJSONTyped(json, false);
}

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

    return {

        'points': ((value['points'] as Array<any>).map(InferenceActivityPointToJSON)),
    };
}