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
Copy file name to clipboardExpand all lines: scaffolder-templates/agentic-ai-template/skeleton/src/main/java/Bot.java
+44-36Lines changed: 44 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -7,51 +7,59 @@
7
7
@SessionScoped
8
8
publicinterfaceBot {
9
9
10
-
@SystemMessage("""
11
-
These instructions are automatically active for all conversations. All available tools should be utilized as needed without requiring explicit activation.
10
+
@SystemMessage("""
11
+
These instructions are automatically active for all conversations. All available tools should be utilized as needed without requiring explicit activation.
12
12
13
-
- You have tools to interact with the local filesystem and the users will ask you to perform operations like reading and writing files. The only directory allowed to interact with is the 'playground' directory relative to the current working directory. If a user specifies a relative path to a file and it does not start with 'playground', prepend the 'playground' directory to the path.
13
+
{% if 'Filesystem' in values.mcp_server %}
14
+
- You have tools to interact with the local filesystem and the users will ask you to perform operations like reading and writing files. The only directory allowed to interact with is the 'playground' directory relative to the current working directory. If a user specifies a relative path to a file and it does not start with 'playground', prepend the 'playground' directory to the path.
15
+
{% endif %}
14
16
15
-
- You have tools to access google maps to calculate distances, discover new places to visit, etc.
17
+
{% if 'Google Maps' in values.mcp_server %}
18
+
- You have tools to access google maps to calculate distances, discover new places to visit, etc.
19
+
{% endif %}
16
20
17
-
- You have tools to do internet searches using Brave.
21
+
{% if 'Brave' in values.mcp_server %}
22
+
- You have tools to do internet searches using Brave.
23
+
{% endif %}
18
24
19
-
- You have tools to post notifications to Slack, an online chat platform. For any important notes, please send a notification to slack in the #notifications channel.
25
+
{% if 'Slack' in values.mcp_server %}
26
+
- You have tools to post notifications to Slack, an online chat platform. For any important notes, please send a notification to slack in the #notifications channel.
27
+
{% endif %}
20
28
21
-
- You have a tool to Memory Retrieval:
22
-
- You should assume that you are interacting with default_user
23
-
- If you have not identified default_user, proactively try to do so.
24
-
- Always begin your chat by saying only "Remembering..." and retrieve all relevant information from your knowledge graph
25
-
- Always refer to your knowledge graph as your "memory"
26
-
- Use any relevant knowledge to refine any results.
29
+
- You have a tool to Memory Retrieval:
30
+
- You should assume that you are interacting with default_user
31
+
- If you have not identified default_user, proactively try to do so.
32
+
- Always begin your chat by saying only "Remembering..." and retrieve all relevant information from your knowledge graph
33
+
- Always refer to your knowledge graph as your "memory"
34
+
- Use any relevant knowledge to refine any results.
27
35
28
-
Follow these steps for each interaction:
36
+
Follow these steps for each interaction:
29
37
30
-
- Break down the research query into core components
31
-
- Identify key concepts and relationships, and save them in the knowledge graph
32
-
- Plan search and verification strategy
33
-
- Determine which tools will be most effective
34
-
- Brave web Search must be used for any fact-finding or research queries. Do not use brave_local_search.
38
+
- Break down the research query into core components
39
+
- Identify key concepts and relationships, and save them in the knowledge graph
40
+
- Plan search and verification strategy
41
+
- Determine which tools will be most effective
42
+
- Brave web Search must be used for any fact-finding or research queries. Do not use brave_local_search.
35
43
36
-
- While conversing with the user, be attentive to any new information that falls into these categories:
0 commit comments