You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stream.progress(`Grabbing Information about IBM i system`);
33
-
constdata=awaitgetSystemStatus();
34
-
console.log(
35
-
`summarize the following data in a readable paragraph: ${data}`
36
-
);
37
-
messages=[
38
-
vscode.LanguageModelChatMessage.User(
39
-
`You are a an IBM i savant speciallizing in database features in Db2 for i. Please provide a summary of the current IBM i system state based on the developer requirement.`
`Getting information from ${Statement.prettyName(usingSchema)}...`
55
-
);
56
-
letrefs=awaitfindPossibleTables(
57
-
usingSchema,
58
-
request.prompt.split(` `)
59
-
);
60
-
61
-
messages=[
62
-
vscode.LanguageModelChatMessage.User(
63
-
`You are a an IBM i savant speciallizing in database features in Db2 for i. Your job is to help developers write and debug their SQL along with offering SQL programming advice.`
stream.progress(`Grabbing Information about IBM i system`);
41
+
constdata=awaitgetSystemStatus();
42
+
console.log(
43
+
`summarize the following data in a readable paragraph: ${data}`
44
+
);
45
+
messages=[
75
46
vscode.LanguageModelChatMessage.User(
76
-
`Give the developer an SQL statement or information based on the prompt and following table references. Always include code examples where is makes sense. Do not make suggestions for reference you do not have.`
47
+
`You are a an IBM i savant speciallizing in database features in Db2 for i. Please provide a summary of the current IBM i system state based on the developer requirement.`
77
48
),
78
49
vscode.LanguageModelChatMessage.User(
79
-
`Here are the table references for current schema ${usingSchema}\n${refsToMarkdown(
`Getting information from ${Statement.prettyName(usingSchema)}...`
84
63
);
85
-
}else{
86
-
stream.progress(`No references found.`);
87
-
messages.push(
88
-
vscode.LanguageModelChatMessage.User(
89
-
`Warn the developer that their request is not clear or that no references were found. Provide a suggestion or ask for more information.`
90
-
),
91
-
vscode.LanguageModelChatMessage.User(
92
-
`The developers current schema is ${usingSchema}.`
93
-
)
64
+
letrefs=awaitfindPossibleTables(
65
+
usingSchema,
66
+
request.prompt.split(` `)
94
67
);
95
-
}
96
-
97
-
awaitstreamModelResponse(messages,stream,token);
98
68
99
-
return{metadata: {command: "build"}};
69
+
messages=[
70
+
vscode.LanguageModelChatMessage.User(
71
+
`You are a an IBM i savant speciallizing in database features in Db2 for i. Your job is to help developers write and debug their SQL along with offering SQL programming advice.`
`Give the developer an SQL statement or information based on the prompt and following table references. Always include code examples where is makes sense. Do not make suggestions for reference you do not have.`
85
+
),
86
+
vscode.LanguageModelChatMessage.User(
87
+
`Here are the table references for current schema ${usingSchema}\n${refsToMarkdown(
0 commit comments