The platform for continuously improving AI agents.
/* 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 InteractionRequest
*/
export interface InteractionRequest {
/**
*
* @type {string}
* @memberof InteractionRequest
*/
call: string;
/**
*
* @type {string}
* @memberof InteractionRequest
*/
id: string;
/**
*
* @type {{ [key: string]: any; }}
* @memberof InteractionRequest
*/
values: { [key: string]: any; };
}
/**
* Check if a given object implements the InteractionRequest interface.
*/
export function instanceOfInteractionRequest(value: object): value is InteractionRequest {
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 InteractionRequestFromJSON(json: any): InteractionRequest {
return InteractionRequestFromJSONTyped(json, false);
}
export function InteractionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InteractionRequest {
if (json == null) {
return json;
}
return {
'call': json['call'],
'id': json['id'],
'values': json['values'],
};
}
export function InteractionRequestToJSON(json: any): InteractionRequest {
return InteractionRequestToJSONTyped(json, false);
}
export function InteractionRequestToJSONTyped(value?: InteractionRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'call': value['call'],
'id': value['id'],
'values': value['values'],
};
}