MCPcopy Create free account
hub / github.com/antvis/AVA / constructor

Method constructor

src/query/tsql.ts:61–61  ·  view source on GitHub ↗
(private readonly llmConfig: LLMConfig)

Source from the content-addressed store, hash-verified

59 Reference exact table and column names from the data model, joining tables when needed. Quote identifier components separately with brackets or double quotes when needed; use single quotes for strings and N-prefixed literals for Unicode text.`;
60
61 constructor(private readonly llmConfig: LLMConfig) {}
62
63 async getDSL(query: string, dataModel: DataModel): Promise<TranslationResult> {
64 const prompt = `You are a SQL Server expert. Generate a query answering the user's question using the supplied data model.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected