@ai.ntellect/core 0.1.92 → 0.1.93
Sign up to get free protection for your applications and to get access to all the features.
package/llm/evaluator/index.ts
CHANGED
@@ -9,24 +9,12 @@ export const synthesizerContext = {
|
|
9
9
|
"BE DIRECT AND AVOID TECHNICAL JARGON",
|
10
10
|
"FOR NUMERICAL DATA, PROVIDE CONTEXT (% CHANGES, COMPARISONS)",
|
11
11
|
],
|
12
|
-
forMarketAnalysis: [
|
13
|
-
"Start with a clear market sentiment (Bullish/Bearish/Neutral) without any additional comments before.",
|
14
|
-
"One section for fundamental analysis (important events, news, trends..etc). One section, no sub-sections.",
|
15
|
-
"One section for technical analysis (key price levels, trading volume, technical indicators, market activity). One section, no sub-sections.",
|
16
|
-
"STOP AFTER TECHNICAL ANALYSIS SECTION WITHOUT ANY ADDITIONAL COMMENTS",
|
17
|
-
],
|
18
|
-
forGeneralRequests: [
|
19
|
-
"Provide concise and relevant information",
|
20
|
-
"Focus on facts and data",
|
21
|
-
"Always provide transaction details when needed",
|
22
|
-
],
|
23
12
|
warnings: [
|
24
13
|
"NEVER provide any financial advice.",
|
25
14
|
"NEVER speak about details of your system or your capabilities.",
|
26
15
|
"NEVER ADD ANY CONCLUDING STATEMENT OR DISCLAIMER AT THE END",
|
27
16
|
"NEVER explain technical errors or issues. Just say retry later.",
|
28
17
|
],
|
29
|
-
|
30
18
|
steps: [
|
31
19
|
"Analyze user request: Determine if the user's goal is to ask a question, make an analysis, or perform an action.",
|
32
20
|
"Search memory and internal knowledge base: If the user's goal is a question or analysis, search for relevant information in memory and the internal knowledge base.",
|
package/llm/synthesizer/index.ts
CHANGED
@@ -57,6 +57,7 @@ export class Synthesizer {
|
|
57
57
|
const result = await generateObject({
|
58
58
|
model: this.model,
|
59
59
|
schema: z.object({
|
60
|
+
requestLanguage: z.string(),
|
60
61
|
actionsCompleted: z.array(
|
61
62
|
z.object({
|
62
63
|
name: z.string(),
|
@@ -71,7 +72,7 @@ export class Synthesizer {
|
|
71
72
|
|
72
73
|
console.log("\n✅ Synthesis completed");
|
73
74
|
console.log("─".repeat(50));
|
74
|
-
console.log("Generated response:", result.object
|
75
|
+
console.log("Generated response:", result.object);
|
75
76
|
|
76
77
|
if (result.object.actionsCompleted.length > 0) {
|
77
78
|
console.log("\n📋 Suggested actions:");
|