Skip to content

The platform for continuously improving AI agents.

2.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';
/**
 *
 * @export
 * @interface ResearchResumeRequest
 */
export interface ResearchResumeRequest {
    /**
     *
     * @type {string}
     * @memberof ResearchResumeRequest
     */
    requestKey: string;
    /**
     *
     * @type {string}
     * @memberof ResearchResumeRequest
     */
    instructions: string;
    /**
     *
     * @type {number}
     * @memberof ResearchResumeRequest
     */
    maxModelCalls?: number;
}

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

export function ResearchResumeRequestFromJSON(json: any): ResearchResumeRequest {
    return ResearchResumeRequestFromJSONTyped(json, false);
}

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

        'requestKey': json['request_key'],
        'instructions': json['instructions'],
        'maxModelCalls': json['max_model_calls'] == null ? undefined : json['max_model_calls'],
    };
}

export function ResearchResumeRequestToJSON(json: any): ResearchResumeRequest {
    return ResearchResumeRequestToJSONTyped(json, false);
}

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

    return {

        'request_key': value['requestKey'],
        'instructions': value['instructions'],
        'max_model_calls': value['maxModelCalls'],
    };
}