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';
import type { RoleEnum } from './RoleEnum';
import {
    RoleEnumFromJSON,
    RoleEnumFromJSONTyped,
    RoleEnumToJSON,
    RoleEnumToJSONTyped,
} from './RoleEnum';

/**
 *
 * @export
 * @interface InferenceMessageRequest
 */
export interface InferenceMessageRequest {
    /**
     *
     * @type {RoleEnum}
     * @memberof InferenceMessageRequest
     */
    role: RoleEnum;
    /**
     *
     * @type {string}
     * @memberof InferenceMessageRequest
     */
    content: string;
}



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

export function InferenceMessageRequestFromJSON(json: any): InferenceMessageRequest {
    return InferenceMessageRequestFromJSONTyped(json, false);
}

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

        'role': RoleEnumFromJSON(json['role']),
        'content': json['content'],
    };
}

export function InferenceMessageRequestToJSON(json: any): InferenceMessageRequest {
    return InferenceMessageRequestToJSONTyped(json, false);
}

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

    return {

        'role': RoleEnumToJSON(value['role']),
        'content': value['content'],
    };
}