Skip to content

The platform for continuously improving AI agents.

6.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';
/**
 *
 * @export
 * @interface PatchedCapabilityRequest
 */
export interface PatchedCapabilityRequest {
    /**
     *
     * @type {any}
     * @memberof PatchedCapabilityRequest
     */
    toolConfig?: any | null;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    name?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    description?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    sourcePath?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    entrypointFn?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    model?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    cliVersion?: string;
    /**
     *
     * @type {any}
     * @memberof PatchedCapabilityRequest
     */
    footprint?: any | null;
    /**
     *
     * @type {any}
     * @memberof PatchedCapabilityRequest
     */
    inputSchema?: any | null;
    /**
     *
     * @type {any}
     * @memberof PatchedCapabilityRequest
     */
    outputFields?: any | null;
    /**
     *
     * @type {any}
     * @memberof PatchedCapabilityRequest
     */
    outputSchema?: any | null;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    policyMarkdown?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    toolsSummary?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    decisionLogic?: string;
    /**
     *
     * @type {any}
     * @memberof PatchedCapabilityRequest
     */
    improvementMetadata?: any | null;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    project?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    activeEvalSet?: string | null;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    activeModel?: string | null;
    /**
     *
     * @type {string}
     * @memberof PatchedCapabilityRequest
     */
    benchmarkModel?: string | null;
}

/**
 * Check if a given object implements the PatchedCapabilityRequest interface.
 */
export function instanceOfPatchedCapabilityRequest(value: object): value is PatchedCapabilityRequest {
    return true;
}

export function PatchedCapabilityRequestFromJSON(json: any): PatchedCapabilityRequest {
    return PatchedCapabilityRequestFromJSONTyped(json, false);
}

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

        'toolConfig': json['tool_config'] == null ? undefined : json['tool_config'],
        'name': json['name'] == null ? undefined : json['name'],
        'description': json['description'] == null ? undefined : json['description'],
        'sourcePath': json['source_path'] == null ? undefined : json['source_path'],
        'entrypointFn': json['entrypoint_fn'] == null ? undefined : json['entrypoint_fn'],
        'model': json['model'] == null ? undefined : json['model'],
        'cliVersion': json['cli_version'] == null ? undefined : json['cli_version'],
        'footprint': json['footprint'] == null ? undefined : json['footprint'],
        'inputSchema': json['input_schema'] == null ? undefined : json['input_schema'],
        'outputFields': json['output_fields'] == null ? undefined : json['output_fields'],
        'outputSchema': json['output_schema'] == null ? undefined : json['output_schema'],
        'policyMarkdown': json['policy_markdown'] == null ? undefined : json['policy_markdown'],
        'toolsSummary': json['tools_summary'] == null ? undefined : json['tools_summary'],
        'decisionLogic': json['decision_logic'] == null ? undefined : json['decision_logic'],
        'improvementMetadata': json['improvement_metadata'] == null ? undefined : json['improvement_metadata'],
        'project': json['project'] == null ? undefined : json['project'],
        'activeEvalSet': json['active_eval_set'] == null ? undefined : json['active_eval_set'],
        'activeModel': json['active_model'] == null ? undefined : json['active_model'],
        'benchmarkModel': json['benchmark_model'] == null ? undefined : json['benchmark_model'],
    };
}

export function PatchedCapabilityRequestToJSON(json: any): PatchedCapabilityRequest {
    return PatchedCapabilityRequestToJSONTyped(json, false);
}

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

    return {

        'tool_config': value['toolConfig'],
        'name': value['name'],
        'description': value['description'],
        'source_path': value['sourcePath'],
        'entrypoint_fn': value['entrypointFn'],
        'model': value['model'],
        'cli_version': value['cliVersion'],
        'footprint': value['footprint'],
        'input_schema': value['inputSchema'],
        'output_fields': value['outputFields'],
        'output_schema': value['outputSchema'],
        'policy_markdown': value['policyMarkdown'],
        'tools_summary': value['toolsSummary'],
        'decision_logic': value['decisionLogic'],
        'improvement_metadata': value['improvementMetadata'],
        'project': value['project'],
        'active_eval_set': value['activeEvalSet'],
        'active_model': value['activeModel'],
        'benchmark_model': value['benchmarkModel'],
    };
}