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';
/**
 *
 * @export
 * @interface DecisionPerformance
 */
export interface DecisionPerformance {
    /**
     *
     * @type {string}
     * @memberof DecisionPerformance
     */
    readonly id: string;
    /**
     *
     * @type {string}
     * @memberof DecisionPerformance
     */
    readonly project: string;
    /**
     *
     * @type {string}
     * @memberof DecisionPerformance
     */
    readonly evaluation: string;
    /**
     *
     * @type {string}
     * @memberof DecisionPerformance
     */
    readonly name: string;
    /**
     *
     * @type {string}
     * @memberof DecisionPerformance
     */
    readonly requestKey: string;
    /**
     *
     * @type {any}
     * @memberof DecisionPerformance
     */
    readonly workload: any | null;
    /**
     *
     * @type {string}
     * @memberof DecisionPerformance
     */
    readonly state: string;
    /**
     *
     * @type {any}
     * @memberof DecisionPerformance
     */
    readonly results: any | null;
    /**
     *
     * @type {string}
     * @memberof DecisionPerformance
     */
    readonly error: string;
    /**
     *
     * @type {Date}
     * @memberof DecisionPerformance
     */
    readonly createdAt: Date;
    /**
     *
     * @type {Date}
     * @memberof DecisionPerformance
     */
    readonly updatedAt: Date;
}

/**
 * Check if a given object implements the DecisionPerformance interface.
 */
export function instanceOfDecisionPerformance(value: object): value is DecisionPerformance {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('project' in value) || value['project'] === undefined) return false;
    if (!('evaluation' in value) || value['evaluation'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('requestKey' in value) || value['requestKey'] === undefined) return false;
    if (!('workload' in value) || value['workload'] === undefined) return false;
    if (!('state' in value) || value['state'] === undefined) return false;
    if (!('results' in value) || value['results'] === undefined) return false;
    if (!('error' in value) || value['error'] === undefined) return false;
    if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
    if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
    return true;
}

export function DecisionPerformanceFromJSON(json: any): DecisionPerformance {
    return DecisionPerformanceFromJSONTyped(json, false);
}

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

        'id': json['id'],
        'project': json['project'],
        'evaluation': json['evaluation'],
        'name': json['name'],
        'requestKey': json['request_key'],
        'workload': json['workload'],
        'state': json['state'],
        'results': json['results'],
        'error': json['error'],
        'createdAt': (new Date(json['created_at'])),
        'updatedAt': (new Date(json['updated_at'])),
    };
}

export function DecisionPerformanceToJSON(json: any): DecisionPerformance {
    return DecisionPerformanceToJSONTyped(json, false);
}

export function DecisionPerformanceToJSONTyped(value?: Omit<DecisionPerformance, 'id'|'project'|'evaluation'|'name'|'request_key'|'workload'|'state'|'results'|'error'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

    };
}