Skip to content

The platform for continuously improving AI agents.

2.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';
/**
 * The answer to one Question or Choices of a result the assistant showed.
 * @export
 * @interface Interaction
 */
export interface Interaction {
    /**
     *
     * @type {string}
     * @memberof Interaction
     */
    call: string;
    /**
     *
     * @type {string}
     * @memberof Interaction
     */
    id: string;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof Interaction
     */
    values: { [key: string]: any; };
}

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

export function InteractionFromJSON(json: any): Interaction {
    return InteractionFromJSONTyped(json, false);
}

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

        'call': json['call'],
        'id': json['id'],
        'values': json['values'],
    };
}

export function InteractionToJSON(json: any): Interaction {
    return InteractionToJSONTyped(json, false);
}

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

    return {

        'call': value['call'],
        'id': value['id'],
        'values': value['values'],
    };
}