Skip to content

The platform for continuously improving AI agents.

5.1 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';
import type { CapabilityFlowTrajectoryTerminal } from './CapabilityFlowTrajectoryTerminal';
import {
    CapabilityFlowTrajectoryTerminalFromJSON,
    CapabilityFlowTrajectoryTerminalFromJSONTyped,
    CapabilityFlowTrajectoryTerminalToJSON,
    CapabilityFlowTrajectoryTerminalToJSONTyped,
} from './CapabilityFlowTrajectoryTerminal';
import type { CapabilityFlowTrajectoryStep } from './CapabilityFlowTrajectoryStep';
import {
    CapabilityFlowTrajectoryStepFromJSON,
    CapabilityFlowTrajectoryStepFromJSONTyped,
    CapabilityFlowTrajectoryStepToJSON,
    CapabilityFlowTrajectoryStepToJSONTyped,
} from './CapabilityFlowTrajectoryStep';

/**
 *
 * @export
 * @interface CapabilityFlowTrajectoryPath
 */
export interface CapabilityFlowTrajectoryPath {
    /**
     *
     * @type {string}
     * @memberof CapabilityFlowTrajectoryPath
     */
    id: string;
    /**
     *
     * @type {string}
     * @memberof CapabilityFlowTrajectoryPath
     */
    name: string;
    /**
     *
     * @type {string}
     * @memberof CapabilityFlowTrajectoryPath
     */
    claim?: string;
    /**
     *
     * @type {string}
     * @memberof CapabilityFlowTrajectoryPath
     */
    promptQuote?: string;
    /**
     *
     * @type {boolean}
     * @memberof CapabilityFlowTrajectoryPath
     */
    verified?: boolean;
    /**
     *
     * @type {string}
     * @memberof CapabilityFlowTrajectoryPath
     */
    routing: string;
    /**
     *
     * @type {Array<CapabilityFlowTrajectoryStep>}
     * @memberof CapabilityFlowTrajectoryPath
     */
    steps?: Array<CapabilityFlowTrajectoryStep>;
    /**
     *
     * @type {Array<string>}
     * @memberof CapabilityFlowTrajectoryPath
     */
    tools: Array<string>;
    /**
     *
     * @type {CapabilityFlowTrajectoryTerminal}
     * @memberof CapabilityFlowTrajectoryPath
     */
    terminal: CapabilityFlowTrajectoryTerminal;
    /**
     *
     * @type {Array<string>}
     * @memberof CapabilityFlowTrajectoryPath
     */
    divergences: Array<string>;
    /**
     *
     * @type {Array<string>}
     * @memberof CapabilityFlowTrajectoryPath
     */
    provenance: Array<string>;
}

/**
 * Check if a given object implements the CapabilityFlowTrajectoryPath interface.
 */
export function instanceOfCapabilityFlowTrajectoryPath(value: object): value is CapabilityFlowTrajectoryPath {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('routing' in value) || value['routing'] === undefined) return false;
    if (!('tools' in value) || value['tools'] === undefined) return false;
    if (!('terminal' in value) || value['terminal'] === undefined) return false;
    if (!('divergences' in value) || value['divergences'] === undefined) return false;
    if (!('provenance' in value) || value['provenance'] === undefined) return false;
    return true;
}

export function CapabilityFlowTrajectoryPathFromJSON(json: any): CapabilityFlowTrajectoryPath {
    return CapabilityFlowTrajectoryPathFromJSONTyped(json, false);
}

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

        'id': json['id'],
        'name': json['name'],
        'claim': json['claim'] == null ? undefined : json['claim'],
        'promptQuote': json['prompt_quote'] == null ? undefined : json['prompt_quote'],
        'verified': json['verified'] == null ? undefined : json['verified'],
        'routing': json['routing'],
        'steps': json['steps'] == null ? undefined : ((json['steps'] as Array<any>).map(CapabilityFlowTrajectoryStepFromJSON)),
        'tools': json['tools'],
        'terminal': CapabilityFlowTrajectoryTerminalFromJSON(json['terminal']),
        'divergences': json['divergences'],
        'provenance': json['provenance'],
    };
}

export function CapabilityFlowTrajectoryPathToJSON(json: any): CapabilityFlowTrajectoryPath {
    return CapabilityFlowTrajectoryPathToJSONTyped(json, false);
}

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

    return {

        'id': value['id'],
        'name': value['name'],
        'claim': value['claim'],
        'prompt_quote': value['promptQuote'],
        'verified': value['verified'],
        'routing': value['routing'],
        'steps': value['steps'] == null ? undefined : ((value['steps'] as Array<any>).map(CapabilityFlowTrajectoryStepToJSON)),
        'tools': value['tools'],
        'terminal': CapabilityFlowTrajectoryTerminalToJSON(value['terminal']),
        'divergences': value['divergences'],
        'provenance': value['provenance'],
    };
}