Skip to content

The platform for continuously improving AI agents.

2.4 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 structured argument of a tool (the granular form of the flat ``args`` string).
 * @export
 * @interface CapabilityFlowToolArgument
 */
export interface CapabilityFlowToolArgument {
    /**
     *
     * @type {string}
     * @memberof CapabilityFlowToolArgument
     */
    name: string;
    /**
     *
     * @type {string}
     * @memberof CapabilityFlowToolArgument
     */
    type?: string;
    /**
     *
     * @type {boolean}
     * @memberof CapabilityFlowToolArgument
     */
    required?: boolean;
    /**
     *
     * @type {string}
     * @memberof CapabilityFlowToolArgument
     */
    description?: string;
}

/**
 * Check if a given object implements the CapabilityFlowToolArgument interface.
 */
export function instanceOfCapabilityFlowToolArgument(value: object): value is CapabilityFlowToolArgument {
    if (!('name' in value) || value['name'] === undefined) return false;
    return true;
}

export function CapabilityFlowToolArgumentFromJSON(json: any): CapabilityFlowToolArgument {
    return CapabilityFlowToolArgumentFromJSONTyped(json, false);
}

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

        'name': json['name'],
        'type': json['type'] == null ? undefined : json['type'],
        'required': json['required'] == null ? undefined : json['required'],
        'description': json['description'] == null ? undefined : json['description'],
    };
}

export function CapabilityFlowToolArgumentToJSON(json: any): CapabilityFlowToolArgument {
    return CapabilityFlowToolArgumentToJSONTyped(json, false);
}

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

    return {

        'name': value['name'],
        'type': value['type'],
        'required': value['required'],
        'description': value['description'],
    };
}