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 ContextSummary
*/
export interface ContextSummary {
/**
*
* @type {string}
* @memberof ContextSummary
*/
project: string;
/**
*
* @type {number}
* @memberof ContextSummary
*/
generation: number;
/**
*
* @type {{ [key: string]: number; }}
* @memberof ContextSummary
*/
coverage: { [key: string]: number; };
/**
*
* @type {Date}
* @memberof ContextSummary
*/
startedAt: Date | null;
/**
*
* @type {Date}
* @memberof ContextSummary
*/
completedAt: Date | null;
/**
*
* @type {number}
* @memberof ContextSummary
*/
nodes: number;
/**
*
* @type {number}
* @memberof ContextSummary
*/
edges: number;
}
/**
* Check if a given object implements the ContextSummary interface.
*/
export function instanceOfContextSummary(value: object): value is ContextSummary {
if (!('project' in value) || value['project'] === undefined) return false;
if (!('generation' in value) || value['generation'] === undefined) return false;
if (!('coverage' in value) || value['coverage'] === undefined) return false;
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
if (!('completedAt' in value) || value['completedAt'] === undefined) return false;
if (!('nodes' in value) || value['nodes'] === undefined) return false;
if (!('edges' in value) || value['edges'] === undefined) return false;
return true;
}
export function ContextSummaryFromJSON(json: any): ContextSummary {
return ContextSummaryFromJSONTyped(json, false);
}
export function ContextSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContextSummary {
if (json == null) {
return json;
}
return {
'project': json['project'],
'generation': json['generation'],
'coverage': json['coverage'],
'startedAt': (json['started_at'] == null ? null : new Date(json['started_at'])),
'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
'nodes': json['nodes'],
'edges': json['edges'],
};
}
export function ContextSummaryToJSON(json: any): ContextSummary {
return ContextSummaryToJSONTyped(json, false);
}
export function ContextSummaryToJSONTyped(value?: ContextSummary | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'project': value['project'],
'generation': value['generation'],
'coverage': value['coverage'],
'started_at': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
'nodes': value['nodes'],
'edges': value['edges'],
};
}