yuluo-yx commented on code in PR #3503:
URL: https://github.com/apache/hertzbeat/pull/3503#discussion_r2180302837
##########
hertzbeat-ai-agent/src/main/java/org/apache/hertzbeat/ai/agent/config/PromptProvider.java:
##########
@@ -0,0 +1,34 @@
+package org.apache.hertzbeat.ai.agent.config;
+
+import org.springframework.stereotype.Component;
+
+/**
+ * Provider for system prompts used in the AI agent
+ */
+
+@Component
+public class PromptProvider {
+ /**
+ * Static version of the HertzBeat monitoring prompt
+ */
+ public static final String HERTZBEAT_MONITORING_PROMPT =
+ "You are an AI assistant specialized in monitoring infrastructure
and applications with HertzBeat. "
Review Comment:
IMO, we can use java17 string blocks to write promotion, which is more
readable.
such as:
```
String content = """
prompt content
""";
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]