Skip to content

The platform for continuously improving AI agents.

4.0 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';
/**
 * One recurring observation shape, ranked as a possible capability boundary.
 * @export
 * @interface ConnectorShapeCandidate
 */
export interface ConnectorShapeCandidate {
    /**
     *
     * @type {string}
     * @memberof ConnectorShapeCandidate
     */
    name: string;
    /**
     *
     * @type {string}
     * @memberof ConnectorShapeCandidate
     */
    type: string;
    /**
     *
     * @type {number}
     * @memberof ConnectorShapeCandidate
     */
    traces: number;
    /**
     *
     * @type {number}
     * @memberof ConnectorShapeCandidate
     */
    occurrences: number;
    /**
     *
     * @type {number}
     * @memberof ConnectorShapeCandidate
     */
    maxPerTrace: number;
    /**
     *
     * @type {number}
     * @memberof ConnectorShapeCandidate
     */
    modelCalls: number;
    /**
     *
     * @type {boolean}
     * @memberof ConnectorShapeCandidate
     */
    isRoot: boolean;
    /**
     *
     * @type {string}
     * @memberof ConnectorShapeCandidate
     */
    parentName: string | null;
    /**
     *
     * @type {number}
     * @memberof ConnectorShapeCandidate
     */
    score: number;
    /**
     *
     * @type {Array<string>}
     * @memberof ConnectorShapeCandidate
     */
    reasons: Array<string>;
}

/**
 * Check if a given object implements the ConnectorShapeCandidate interface.
 */
export function instanceOfConnectorShapeCandidate(value: object): value is ConnectorShapeCandidate {
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('type' in value) || value['type'] === undefined) return false;
    if (!('traces' in value) || value['traces'] === undefined) return false;
    if (!('occurrences' in value) || value['occurrences'] === undefined) return false;
    if (!('maxPerTrace' in value) || value['maxPerTrace'] === undefined) return false;
    if (!('modelCalls' in value) || value['modelCalls'] === undefined) return false;
    if (!('isRoot' in value) || value['isRoot'] === undefined) return false;
    if (!('parentName' in value) || value['parentName'] === undefined) return false;
    if (!('score' in value) || value['score'] === undefined) return false;
    if (!('reasons' in value) || value['reasons'] === undefined) return false;
    return true;
}

export function ConnectorShapeCandidateFromJSON(json: any): ConnectorShapeCandidate {
    return ConnectorShapeCandidateFromJSONTyped(json, false);
}

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

        'name': json['name'],
        'type': json['type'],
        'traces': json['traces'],
        'occurrences': json['occurrences'],
        'maxPerTrace': json['max_per_trace'],
        'modelCalls': json['model_calls'],
        'isRoot': json['is_root'],
        'parentName': json['parent_name'],
        'score': json['score'],
        'reasons': json['reasons'],
    };
}

export function ConnectorShapeCandidateToJSON(json: any): ConnectorShapeCandidate {
    return ConnectorShapeCandidateToJSONTyped(json, false);
}

export function ConnectorShapeCandidateToJSONTyped(value?: ConnectorShapeCandidate | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'name': value['name'],
        'type': value['type'],
        'traces': value['traces'],
        'occurrences': value['occurrences'],
        'max_per_trace': value['maxPerTrace'],
        'model_calls': value['modelCalls'],
        'is_root': value['isRoot'],
        'parent_name': value['parentName'],
        'score': value['score'],
        'reasons': value['reasons'],
    };
}