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';
/**
*
* @export
* @interface ExperimentMonitorAgent
*/
export interface ExperimentMonitorAgent {
/**
*
* @type {string}
* @memberof ExperimentMonitorAgent
*/
id: string;
/**
*
* @type {string}
* @memberof ExperimentMonitorAgent
*/
assignment: string;
/**
*
* @type {string}
* @memberof ExperimentMonitorAgent
*/
role: string;
/**
*
* @type {string}
* @memberof ExperimentMonitorAgent
*/
state: string;
/**
*
* @type {boolean}
* @memberof ExperimentMonitorAgent
*/
active: boolean;
/**
*
* @type {{ [key: string]: any; }}
* @memberof ExperimentMonitorAgent
*/
activity: { [key: string]: any; };
/**
*
* @type {string}
* @memberof ExperimentMonitorAgent
*/
tool: string;
/**
*
* @type {Date}
* @memberof ExperimentMonitorAgent
*/
updatedAt: Date;
}
/**
* Check if a given object implements the ExperimentMonitorAgent interface.
*/
export function instanceOfExperimentMonitorAgent(value: object): value is ExperimentMonitorAgent {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('assignment' in value) || value['assignment'] === undefined) return false;
if (!('role' in value) || value['role'] === undefined) return false;
if (!('state' in value) || value['state'] === undefined) return false;
if (!('active' in value) || value['active'] === undefined) return false;
if (!('activity' in value) || value['activity'] === undefined) return false;
if (!('tool' in value) || value['tool'] === undefined) return false;
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
return true;
}
export function ExperimentMonitorAgentFromJSON(json: any): ExperimentMonitorAgent {
return ExperimentMonitorAgentFromJSONTyped(json, false);
}
export function ExperimentMonitorAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExperimentMonitorAgent {
if (json == null) {
return json;
}
return {
'id': json['id'],
'assignment': json['assignment'],
'role': json['role'],
'state': json['state'],
'active': json['active'],
'activity': json['activity'],
'tool': json['tool'],
'updatedAt': (new Date(json['updated_at'])),
};
}
export function ExperimentMonitorAgentToJSON(json: any): ExperimentMonitorAgent {
return ExperimentMonitorAgentToJSONTyped(json, false);
}
export function ExperimentMonitorAgentToJSONTyped(value?: ExperimentMonitorAgent | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'assignment': value['assignment'],
'role': value['role'],
'state': value['state'],
'active': value['active'],
'activity': value['activity'],
'tool': value['tool'],
'updated_at': value['updatedAt'].toISOString(),
};
}