@ai.ntellect/core 0.1.89 → 0.1.91
Sign up to get free protection for your applications and to get access to all the features.
- package/llm/orchestrator/index.ts +2 -0
- package/llm/synthesizer/context.ts +17 -15
- package/package.json +1 -1
@@ -9,6 +9,7 @@ export class Orchestrator implements BaseLLM {
|
|
9
9
|
private readonly model = openai("gpt-4o");
|
10
10
|
public tools: ActionSchema[];
|
11
11
|
private memory: PersistentMemory;
|
12
|
+
|
12
13
|
constructor(tools: ActionSchema[], memory: PersistentMemory) {
|
13
14
|
this.memory = memory;
|
14
15
|
this.tools = [
|
@@ -24,6 +25,7 @@ export class Orchestrator implements BaseLLM {
|
|
24
25
|
const memories = await this.memory.searchSimilarQueries(query, {
|
25
26
|
similarityThreshold: 95,
|
26
27
|
});
|
28
|
+
|
27
29
|
return memories;
|
28
30
|
},
|
29
31
|
},
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export const synthesizerContext = {
|
2
|
-
role: "You are the synthesizer agent. Your role is to provide a clear and factual analysis of the results.",
|
2
|
+
role: "You are the synthesizer agent. Your role is to provide a clear and factual analysis of the results. You are also the expert in the field of security analysis.",
|
3
3
|
guidelines: {
|
4
4
|
important: [
|
5
5
|
"AVOID MULTIPLE UPPERCASE IN TITLE/SUBTITLE LIKE ('Market Sentiment: Bullish'). USE ONLY ONE UPPERCASE IN TITLE/SUBTITLE.",
|
@@ -32,7 +32,21 @@ export const synthesizerContext = {
|
|
32
32
|
Initial prompt: ${initialPrompt} (Speak in the same language as the initial prompt)
|
33
33
|
Results: ${summaryData}
|
34
34
|
|
35
|
-
|
35
|
+
|
36
|
+
1. FOR SECURITY ANALYSIS ONLY, USE THE FOLLOWING FORMAT:
|
37
|
+
--------------------------------
|
38
|
+
## Security analysis of x/y:
|
39
|
+
|
40
|
+
### Good:
|
41
|
+
Speak about the good points of the security check. If there is no good point, say "No good point found"
|
42
|
+
|
43
|
+
### Bad:
|
44
|
+
Speak about the bad points of the security check. If there is no bad point, say "No bad point found"
|
45
|
+
|
46
|
+
STOP AFTER SECURITY CHECK SECTION WITHOUT ANY CONCLUDING STATEMENT OR DISCLAIMER OR ADDITIONAL COMMENTS
|
47
|
+
--------------------------------
|
48
|
+
|
49
|
+
2. OTHERWISE FOR GENERAL ANALYSIS OF COINS/TOKENS, USE THE FOLLOWING FORMAT:
|
36
50
|
--------------------------------
|
37
51
|
## Analysis of x/y:
|
38
52
|
|
@@ -47,20 +61,8 @@ export const synthesizerContext = {
|
|
47
61
|
STOP AFTER TECHNICAL ANALYSIS SECTION WITHOUT ANY CONCLUDING STATEMENT OR DISCLAIMER OR ADDITIONAL COMMENTS
|
48
62
|
--------------------------------
|
49
63
|
|
50
|
-
2. FOR SECURITY CHECKS, USE THE FOLLOWING FORMAT:
|
51
|
-
--------------------------------
|
52
|
-
## Security check of x/y:
|
53
|
-
|
54
|
-
### Good:
|
55
|
-
Speak about the good points of the security check. If there is no good point, say "No good point found"
|
56
|
-
|
57
|
-
### Bad:
|
58
|
-
Speak about the bad points of the security check. If there is no bad point, say "No bad point found"
|
59
|
-
|
60
|
-
STOP AFTER SECURITY CHECK SECTION WITHOUT ANY CONCLUDING STATEMENT OR DISCLAIMER OR ADDITIONAL COMMENTS
|
61
|
-
--------------------------------
|
62
|
-
|
63
64
|
3. OTHERWISE FOR OTHER REQUESTS, USE THE FORMAT YOU WANT.
|
65
|
+
--------------------------------
|
64
66
|
`;
|
65
67
|
},
|
66
68
|
};
|