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

32 lines (31 loc) 1.22 kB
import type { DataQueryCtx, DataQueryOptions, BaseOptions } from '../../types'; import { AtomName } from '../../types/atom'; import { BaseAtom } from '../base'; import type { LLMMessage, LLMResponse } from '../../types/llm'; export declare class DataQueryAtom extends BaseAtom<DataQueryCtx, DataQueryOptions> { name: AtomName; isLLMAtom: boolean; constructor(context: DataQueryCtx, option: BaseOptions); buildDefaultContext(context: DataQueryCtx): DataQueryCtx; buildDefaultOptions(): DataQueryOptions; getLLMMessages(query?: string): LLMMessage[]; parseLLMContent(resJson: any, toolJson: any, llmRes: LLMResponse): { sql: any; llmFieldInfo: any; thoughts: any; dataTableSummary?: string; fieldInfo?: import("../../types").FieldInfo[]; dataTable: import("../../types").DataTable; command: string; logId?: string; id?: string; query?: string; response?: string; error?: string; usage?: import("../../types").Usage; toolRes?: any; }; protected runBeforeLLM(): DataQueryCtx; protected _runWithOutLLM(): DataQueryCtx; } export declare const registerDataQueryAtom: () => void;