Skip to content

The platform for continuously improving AI agents.

3.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';
/**
 * Exactly one of ``uploads``, ``upload_id``, ``text``, ``rows``, ``traces`` or ``llm_calls``.
 * ``traces`` is a traces-list selection or ``{"trace_ids": [...]}``.
 * ``llm_calls`` is ``{capability_id, since, until?, model?, limit?}``.
 * @export
 * @interface SourceRequest
 */
export interface SourceRequest {
    /**
     *
     * @type {string}
     * @memberof SourceRequest
     */
    uploadId?: string | null;
    /**
     *
     * @type {Array<string>}
     * @memberof SourceRequest
     */
    uploads?: Array<string>;
    /**
     *
     * @type {string}
     * @memberof SourceRequest
     */
    filename?: string;
    /**
     *
     * @type {string}
     * @memberof SourceRequest
     */
    text?: string;
    /**
     *
     * @type {Array<any>}
     * @memberof SourceRequest
     */
    rows?: Array<any>;
    /**
     * Trace IDs or trace-list filters. A capability filter selects its unique invocation and descendants per trace. Otherwise the destination capability is preferred when present. Repeated invocations fail; unmatched traces retain original evidence.
     * @type {any}
     * @memberof SourceRequest
     */
    traces?: any | null;
    /**
     *
     * @type {any}
     * @memberof SourceRequest
     */
    llmCalls?: any | null;
}

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

export function SourceRequestFromJSON(json: any): SourceRequest {
    return SourceRequestFromJSONTyped(json, false);
}

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

        'uploadId': json['upload_id'] == null ? undefined : json['upload_id'],
        'uploads': json['uploads'] == null ? undefined : json['uploads'],
        'filename': json['filename'] == null ? undefined : json['filename'],
        'text': json['text'] == null ? undefined : json['text'],
        'rows': json['rows'] == null ? undefined : json['rows'],
        'traces': json['traces'] == null ? undefined : json['traces'],
        'llmCalls': json['llm_calls'] == null ? undefined : json['llm_calls'],
    };
}

export function SourceRequestToJSON(json: any): SourceRequest {
    return SourceRequestToJSONTyped(json, false);
}

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

    return {

        'upload_id': value['uploadId'],
        'uploads': value['uploads'],
        'filename': value['filename'],
        'text': value['text'],
        'rows': value['rows'],
        'traces': value['traces'],
        'llm_calls': value['llmCalls'],
    };
}