UNPKG

@visactor/vmind

Version:

<div align="center"> <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank"> <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/> </a> <a href="https://githu

24 lines (23 loc) 1.19 kB
import type { ChartGeneratorCtx, LLMMessage } from '../../types'; import { AtomName } from '../../types/atom'; import { BaseAtom } from '../base'; import type { ChartType } from '../../types'; import type { GenerateChartCellContext, ChartGeneratorOptions } from './type'; export declare class ChartGeneratorAtom extends BaseAtom<ChartGeneratorCtx, ChartGeneratorOptions> { name: AtomName; isLLMAtom: boolean; private _generateType; finalChartTypeList: ChartType[]; constructor(context: ChartGeneratorCtx, option: ChartGeneratorOptions); setFinalChartTypeList(): void; buildDefaultContext(context: ChartGeneratorCtx): ChartGeneratorCtx; buildDefaultOptions(): ChartGeneratorOptions; updateContext(context: Partial<ChartGeneratorCtx>): ChartGeneratorCtx; updateOptions(options: ChartGeneratorOptions): void; getLLMMessages(query?: string): LLMMessage[]; parseLLMContent(resJson: any): GenerateChartCellContext; protected runBeforeLLM(): ChartGeneratorCtx; protected runWithLLMError(error: string): ChartGeneratorCtx; protected _runWithOutLLM(): ChartGeneratorCtx; } export declare const registerChartGeneratorAtom: () => void;