UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
104 lines (103 loc) 2.54 kB
/** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.22 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ChartParameters } from './ChartParameters'; /** * * @export * @interface ChartResponse */ export interface ChartResponse { /** * * @type {boolean} * @memberof ChartResponse */ success: boolean; /** * The plotly fig.to_json() JSON representation of the chart * @type {{ [key: string]: any; }} * @memberof ChartResponse */ chartJson: { [key: string]: any; }; /** * * @type {string} * @memberof ChartResponse */ query?: string; /** * * @type {string} * @memberof ChartResponse */ reasoning?: string | null; /** * * @type {ChartParameters} * @memberof ChartResponse */ parameters?: ChartParameters | null; /** * * @type {{ [key: string]: any; }} * @memberof ChartResponse */ context?: { [key: string]: any; } | null; /** * * @type {number} * @memberof ChartResponse */ iterationsUsed?: number | null; /** * * @type {string} * @memberof ChartResponse */ lastReasoning?: string | null; /** * * @type {ChartParameters} * @memberof ChartResponse */ lastParameters?: ChartParameters | null; /** * * @type {string} * @memberof ChartResponse */ pngData?: string | null; /** * * @type {string} * @memberof ChartResponse */ pngUrl?: string | null; /** * * @type {string} * @memberof ChartResponse */ chartUrl?: string | null; } /** * Check if a given object implements the ChartResponse interface. */ export declare function instanceOfChartResponse(value: object): value is ChartResponse; export declare function ChartResponseFromJSON(json: any): ChartResponse; export declare function ChartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChartResponse; export declare function ChartResponseToJSON(json: any): ChartResponse; export declare function ChartResponseToJSONTyped(value?: ChartResponse | null, ignoreDiscriminator?: boolean): any;