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';
/**
*
* @export
* @interface ChatTerminal
*/
export interface ChatTerminal {
/**
*
* @type {string}
* @memberof ChatTerminal
*/
output: string;
/**
*
* @type {boolean}
* @memberof ChatTerminal
*/
truncated: boolean;
/**
*
* @type {number}
* @memberof ChatTerminal
*/
exitCode?: number | null;
/**
*
* @type {number}
* @memberof ChatTerminal
*/
startedAt?: number | null;
/**
*
* @type {number}
* @memberof ChatTerminal
*/
durationMs?: number | null;
}
/**
* Check if a given object implements the ChatTerminal interface.
*/
export function instanceOfChatTerminal(value: object): value is ChatTerminal {
if (!('output' in value) || value['output'] === undefined) return false;
if (!('truncated' in value) || value['truncated'] === undefined) return false;
return true;
}
export function ChatTerminalFromJSON(json: any): ChatTerminal {
return ChatTerminalFromJSONTyped(json, false);
}
export function ChatTerminalFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatTerminal {
if (json == null) {
return json;
}
return {
'output': json['output'],
'truncated': json['truncated'],
'exitCode': json['exit_code'] == null ? undefined : json['exit_code'],
'startedAt': json['started_at'] == null ? undefined : json['started_at'],
'durationMs': json['duration_ms'] == null ? undefined : json['duration_ms'],
};
}
export function ChatTerminalToJSON(json: any): ChatTerminal {
return ChatTerminalToJSONTyped(json, false);
}
export function ChatTerminalToJSONTyped(value?: ChatTerminal | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'output': value['output'],
'truncated': value['truncated'],
'exit_code': value['exitCode'],
'started_at': value['startedAt'],
'duration_ms': value['durationMs'],
};
}