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
2. THE TRENCHES (Narrative): Start with a "war story". Talk about an emotional moment early in your career involving high-stakes performance failure and the lesson learned.
56
-
3. TECHNICAL DEEP DIVE: Explain a specific concept related to ${selectedTool} (e.g. Memory profiling, TCP tuning, or async workloads).
57
-
4. PRACTICAL EXAMPLE: Provide a real-world code snippet, CLI command, or configuration snippet (YAML, JMX, or Script).
58
-
5. THE VETERAN'S WISDOM: Closing emotional/professional advice for future-proofing an SRE career.
59
-
60
-
TONE: Professional, sophisticated, inspiring, and strictly technical.
61
-
LENGTH: Exactly around 300 words.
50
+
FORMAT (Strict Markdown):
51
+
1. # ${selectedTool} Architectural Deep Dive
52
+
2. ## The Trenches (Story)
53
+
Write a 100-word emotional "war story" from the past (e.g., a massive production failure at 3 AM) and how it felt to be the one responsible for the fix.
54
+
3. ## Technical Analysis
55
+
Explain a highly technical bottleneck involving ${selectedTool}. Use expert terminology (Latency, Throughput, TCP, Heap Analysis).
56
+
4. ## Implementation Example
57
+
Provide a clear technical example (e.g., a code snippet, a CLI command, or a YAML config).
58
+
5. ## Veteran Wisdom
59
+
Close with a one-sentence inspiring advice for future Performance Engineers.
60
+
61
+
WORD COUNT: Ensure the total length is at least 300 words.
62
62
`;
63
63
64
64
constresult=awaitmodel.generateContent(prompt);
65
65
constresponse=awaitresult.response;
66
-
constmasterclassMD=response.text();
66
+
consttext=response.text();
67
67
68
-
if(!masterclassMD)thrownewError("Response was empty.");
68
+
if(!text)thrownewError("AI returned empty content");
0 commit comments