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';
/**
* ``id`` is the OpenRouter slug and exactly what ``EvalRun.model_name``
* carries — ``call_llm`` routes slash-style slugs through OpenRouter verbatim.
* @export
* @interface CatalogModel
*/
export interface CatalogModel {
/**
*
* @type {string}
* @memberof CatalogModel
*/
id: string;
/**
*
* @type {string}
* @memberof CatalogModel
*/
name: string;
/**
*
* @type {string}
* @memberof CatalogModel
*/
provider: string;
/**
*
* @type {number}
* @memberof CatalogModel
*/
contextLength: number | null;
/**
*
* @type {number}
* @memberof CatalogModel
*/
promptPrice: number | null;
/**
*
* @type {number}
* @memberof CatalogModel
*/
completionPrice: number | null;
/**
*
* @type {boolean}
* @memberof CatalogModel
*/
curated: boolean;
}
/**
* Check if a given object implements the CatalogModel interface.
*/
export function instanceOfCatalogModel(value: object): value is CatalogModel {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('provider' in value) || value['provider'] === undefined) return false;
if (!('contextLength' in value) || value['contextLength'] === undefined) return false;
if (!('promptPrice' in value) || value['promptPrice'] === undefined) return false;
if (!('completionPrice' in value) || value['completionPrice'] === undefined) return false;
if (!('curated' in value) || value['curated'] === undefined) return false;
return true;
}
export function CatalogModelFromJSON(json: any): CatalogModel {
return CatalogModelFromJSONTyped(json, false);
}
export function CatalogModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): CatalogModel {
if (json == null) {
return json;
}
return {
'id': json['id'],
'name': json['name'],
'provider': json['provider'],
'contextLength': json['context_length'],
'promptPrice': json['prompt_price'],
'completionPrice': json['completion_price'],
'curated': json['curated'],
};
}
export function CatalogModelToJSON(json: any): CatalogModel {
return CatalogModelToJSONTyped(json, false);
}
export function CatalogModelToJSONTyped(value?: CatalogModel | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'name': value['name'],
'provider': value['provider'],
'context_length': value['contextLength'],
'prompt_price': value['promptPrice'],
'completion_price': value['completionPrice'],
'curated': value['curated'],
};
}