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';
import type { AssistantEventKindEnum } from './AssistantEventKindEnum';
import {
AssistantEventKindEnumFromJSON,
AssistantEventKindEnumFromJSONTyped,
AssistantEventKindEnumToJSON,
AssistantEventKindEnumToJSONTyped,
} from './AssistantEventKindEnum';
/**
* An event as the Console shows it. What the model reads of a tool's result stays in
* Postgres: only a Python cell's output, an error and a result document leave it.
* @export
* @interface AssistantEvent
*/
export interface AssistantEvent {
/**
*
* @type {number}
* @memberof AssistantEvent
*/
readonly sequence: number;
/**
*
* @type {AssistantEventKindEnum}
* @memberof AssistantEvent
*/
readonly kind: AssistantEventKindEnum;
/**
*
* @type {{ [key: string]: any; }}
* @memberof AssistantEvent
*/
readonly payload: { [key: string]: any; };
/**
*
* @type {any}
* @memberof AssistantEvent
*/
readonly presentation: any | null;
/**
*
* @type {Date}
* @memberof AssistantEvent
*/
readonly createdAt: Date;
}
/**
* Check if a given object implements the AssistantEvent interface.
*/
export function instanceOfAssistantEvent(value: object): value is AssistantEvent {
if (!('sequence' in value) || value['sequence'] === undefined) return false;
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('payload' in value) || value['payload'] === undefined) return false;
if (!('presentation' in value) || value['presentation'] === undefined) return false;
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
return true;
}
export function AssistantEventFromJSON(json: any): AssistantEvent {
return AssistantEventFromJSONTyped(json, false);
}
export function AssistantEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantEvent {
if (json == null) {
return json;
}
return {
'sequence': json['sequence'],
'kind': AssistantEventKindEnumFromJSON(json['kind']),
'payload': json['payload'],
'presentation': json['presentation'],
'createdAt': (new Date(json['created_at'])),
};
}
export function AssistantEventToJSON(json: any): AssistantEvent {
return AssistantEventToJSONTyped(json, false);
}
export function AssistantEventToJSONTyped(value?: Omit<AssistantEvent, 'sequence'|'kind'|'payload'|'presentation'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
};
}