mirror of https://github.com/buster-so/buster.git
fix lint issues
This commit is contained in:
parent
9d023db3f8
commit
70193aad4f
|
@ -287,7 +287,7 @@ Today's date is ${new Date().toISOString().split('T')[0]}.
|
||||||
export const getAnalystInstructions = async ({
|
export const getAnalystInstructions = async ({
|
||||||
runtimeContext,
|
runtimeContext,
|
||||||
}: { runtimeContext: RuntimeContext<AnalystRuntimeContext> }): Promise<string> => {
|
}: { runtimeContext: RuntimeContext<AnalystRuntimeContext> }): Promise<string> => {
|
||||||
const userId = runtimeContext.get('userId');
|
const _userId = runtimeContext.get('userId');
|
||||||
const dataSourceSyntax = runtimeContext.get('dataSourceSyntax');
|
const dataSourceSyntax = runtimeContext.get('dataSourceSyntax');
|
||||||
|
|
||||||
// Get dialect-specific guidance
|
// Get dialect-specific guidance
|
||||||
|
|
|
@ -497,7 +497,7 @@ Today's date is ${new Date().toLocaleDateString()}.
|
||||||
export const getThinkAndPrepInstructions = async ({
|
export const getThinkAndPrepInstructions = async ({
|
||||||
runtimeContext,
|
runtimeContext,
|
||||||
}: { runtimeContext: RuntimeContext<AnalystRuntimeContext> }): Promise<string> => {
|
}: { runtimeContext: RuntimeContext<AnalystRuntimeContext> }): Promise<string> => {
|
||||||
const userId = runtimeContext.get('userId');
|
const _userId = runtimeContext.get('userId');
|
||||||
const dataSourceSyntax = runtimeContext.get('dataSourceSyntax');
|
const dataSourceSyntax = runtimeContext.get('dataSourceSyntax');
|
||||||
|
|
||||||
// Get dialect-specific guidance
|
// Get dialect-specific guidance
|
||||||
|
|
|
@ -271,7 +271,7 @@ const analystExecution = async ({
|
||||||
.join('\n---\n');
|
.join('\n---\n');
|
||||||
|
|
||||||
// Get dialect-specific guidance
|
// Get dialect-specific guidance
|
||||||
const sqlDialectGuidance = getSqlDialectGuidance(dataSourceSyntax);
|
const _sqlDialectGuidance = getSqlDialectGuidance(dataSourceSyntax);
|
||||||
|
|
||||||
// Create dataset system message
|
// Create dataset system message
|
||||||
const createDatasetSystemMessage = (databaseContext: string): string => {
|
const createDatasetSystemMessage = (databaseContext: string): string => {
|
||||||
|
|
|
@ -186,7 +186,7 @@ const thinkAndPrepExecution = async ({
|
||||||
.join('\n---\n');
|
.join('\n---\n');
|
||||||
|
|
||||||
// Get dialect-specific guidance
|
// Get dialect-specific guidance
|
||||||
const sqlDialectGuidance = getSqlDialectGuidance(dataSourceSyntax);
|
const _sqlDialectGuidance = getSqlDialectGuidance(dataSourceSyntax);
|
||||||
|
|
||||||
// Create dataset system message
|
// Create dataset system message
|
||||||
const createDatasetSystemMessage = (databaseContext: string): string => {
|
const createDatasetSystemMessage = (databaseContext: string): string => {
|
||||||
|
|
Loading…
Reference in New Issue