Skip to content

The platform for continuously improving AI agents.

1.6 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 PythonCheck
 */
export interface PythonCheck {
    /**
     *
     * @type {boolean}
     * @memberof PythonCheck
     */
    valid: boolean;
    /**
     *
     * @type {string}
     * @memberof PythonCheck
     */
    error: string;
}

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

export function PythonCheckFromJSON(json: any): PythonCheck {
    return PythonCheckFromJSONTyped(json, false);
}

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

        'valid': json['valid'],
        'error': json['error'],
    };
}

export function PythonCheckToJSON(json: any): PythonCheck {
    return PythonCheckToJSONTyped(json, false);
}

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

    return {

        'valid': value['valid'],
        'error': value['error'],
    };
}