The platform for continuously improving AI agents.
/* 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 { FinetuningJob } from './FinetuningJob';
import {
FinetuningJobFromJSON,
FinetuningJobFromJSONTyped,
FinetuningJobToJSON,
FinetuningJobToJSONTyped,
} from './FinetuningJob';
/**
*
* @export
* @interface DecisionJob
*/
export interface DecisionJob {
/**
*
* @type {string}
* @memberof DecisionJob
*/
readonly id: string;
/**
*
* @type {string}
* @memberof DecisionJob
*/
readonly model: string;
/**
*
* @type {string}
* @memberof DecisionJob
*/
readonly status: string;
/**
*
* @type {FinetuningJob}
* @memberof DecisionJob
*/
readonly trainingRun: FinetuningJob;
/**
*
* @type {Date}
* @memberof DecisionJob
*/
readonly createdAt: Date;
}
/**
* Check if a given object implements the DecisionJob interface.
*/
export function instanceOfDecisionJob(value: object): value is DecisionJob {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('model' in value) || value['model'] === undefined) return false;
if (!('status' in value) || value['status'] === undefined) return false;
if (!('trainingRun' in value) || value['trainingRun'] === undefined) return false;
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
return true;
}
export function DecisionJobFromJSON(json: any): DecisionJob {
return DecisionJobFromJSONTyped(json, false);
}
export function DecisionJobFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionJob {
if (json == null) {
return json;
}
return {
'id': json['id'],
'model': json['model'],
'status': json['status'],
'trainingRun': FinetuningJobFromJSON(json['training_run']),
'createdAt': (new Date(json['created_at'])),
};
}
export function DecisionJobToJSON(json: any): DecisionJob {
return DecisionJobToJSONTyped(json, false);
}
export function DecisionJobToJSONTyped(value?: Omit<DecisionJob, 'id'|'model'|'status'|'training_run'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
};
}