/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * The version of the OpenAPI document: 1.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 ResponseEventData */ export interface ResponseEventData { /** * * @type {string} * @memberof ResponseEventData */ content: string; /** * * @type {string} * @memberof ResponseEventData */ model?: string | null; /** * Tool call/result records emitted by the agent. Present for tool-call events and omitted for text-only response events. * @type {Array<{ [key: string]: any; }>} * @memberof ResponseEventData */ tools?: Array<{ [key: string]: any; }>; /** * True when this response is a streaming partial rather than the final assistant message. * @type {boolean} * @memberof ResponseEventData */ isStreaming?: boolean; } /** * Check if a given object implements the ResponseEventData interface. */ export function instanceOfResponseEventData(value: object): value is ResponseEventData { if (!('content' in value) || value['content'] === undefined) return false; return true; } export function ResponseEventDataFromJSON(json: any): ResponseEventData { return ResponseEventDataFromJSONTyped(json, false); } export function ResponseEventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResponseEventData { if (json == null) { return json; } return { 'content': json['content'], 'model': json['model'] == null ? undefined : json['model'], 'tools': json['tools'] == null ? undefined : json['tools'], 'isStreaming': json['is_streaming'] == null ? undefined : json['is_streaming'], }; } export function ResponseEventDataToJSON(json: any): ResponseEventData { return ResponseEventDataToJSONTyped(json, false); } export function ResponseEventDataToJSONTyped(value?: ResponseEventData | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'content': value['content'], 'model': value['model'], 'tools': value['tools'], 'is_streaming': value['isStreaming'], }; }