Skip to content

The platform for continuously improving AI agents.

2.2 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';
/**
 *
 * @export
 * @interface ContextEdge
 */
export interface ContextEdge {
    /**
     *
     * @type {string}
     * @memberof ContextEdge
     */
    source: string;
    /**
     *
     * @type {string}
     * @memberof ContextEdge
     */
    target: string;
    /**
     *
     * @type {string}
     * @memberof ContextEdge
     */
    relationship: string;
    /**
     *
     * @type {string}
     * @memberof ContextEdge
     */
    evidence: string;
}

/**
 * Check if a given object implements the ContextEdge interface.
 */
export function instanceOfContextEdge(value: object): value is ContextEdge {
    if (!('source' in value) || value['source'] === undefined) return false;
    if (!('target' in value) || value['target'] === undefined) return false;
    if (!('relationship' in value) || value['relationship'] === undefined) return false;
    if (!('evidence' in value) || value['evidence'] === undefined) return false;
    return true;
}

export function ContextEdgeFromJSON(json: any): ContextEdge {
    return ContextEdgeFromJSONTyped(json, false);
}

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

        'source': json['source'],
        'target': json['target'],
        'relationship': json['relationship'],
        'evidence': json['evidence'],
    };
}

export function ContextEdgeToJSON(json: any): ContextEdge {
    return ContextEdgeToJSONTyped(json, false);
}

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

    return {

        'source': value['source'],
        'target': value['target'],
        'relationship': value['relationship'],
        'evidence': value['evidence'],
    };
}