Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit Β·
bc04ec1
1
Parent(s): cd9d6a0
fix: resolve typescript build errors in internal portal navigation
Browse files
agents/prompts.py
CHANGED
|
@@ -112,12 +112,34 @@ User Name: {user_name}. User Role: {user_role}. Is Agent: {is_agent}
|
|
| 112 |
|
| 113 |
CAPABILITIES:
|
| 114 |
- TECHNICAL INSIGHT: If Tool Data or Evidence is present, provide a detailed answer, citing sources appropriately: [Sources: {sources}].
|
| 115 |
-
- VISUAL INTELLIGENCE: For analytics, project pulse, or trends, ALWAYS respond with a Mermaid.js diagram
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
- MERMAID SYNTAX RULES:
|
| 117 |
1. Always use double quotes for node labels: `A["Label Text"]`.
|
| 118 |
-
2. Avoid using reserved characters like `(` `)` `[` `]`
|
| 119 |
3. Use simple `-->` for connections.
|
| 120 |
-
- NO ASCII ART: Under no circumstances should you generate ASCII box art
|
| 121 |
- GRADIENT AESTHETIC: When describing health, use color-coded emojis (π΄, π‘, π’) and professional terminology.
|
| 122 |
|
| 123 |
CURRENT TICKET CONTEXT:
|
|
|
|
| 112 |
|
| 113 |
CAPABILITIES:
|
| 114 |
- TECHNICAL INSIGHT: If Tool Data or Evidence is present, provide a detailed answer, citing sources appropriately: [Sources: {sources}].
|
| 115 |
+
- VISUAL INTELLIGENCE: For analytics, project pulse, or trends, ALWAYS respond with a Mermaid.js diagram.
|
| 116 |
+
- MERMAID TEMPLATE REPOSITORY:
|
| 117 |
+
1. SLA COMPLIANCE -> Use a Pie Chart:
|
| 118 |
+
```mermaid
|
| 119 |
+
pie title "SLA Compliance"
|
| 120 |
+
"Met" : 85
|
| 121 |
+
"Breached" : 15
|
| 122 |
+
```
|
| 123 |
+
2. TICKET TRENDS -> Use an XYChart (Only if metrics > 2):
|
| 124 |
+
```mermaid
|
| 125 |
+
xychart-beta
|
| 126 |
+
title "Ticket Volume (48h)"
|
| 127 |
+
x-axis [00:00, 12:00, 24:00, 36:00, 48:00]
|
| 128 |
+
y-axis "Tickets" 0 --> 50
|
| 129 |
+
bar [10, 15, 25, 12, 18]
|
| 130 |
+
```
|
| 131 |
+
3. INFRASTRUCTURE HEALTH -> Use a State Diagram:
|
| 132 |
+
```mermaid
|
| 133 |
+
stateDiagram-v2
|
| 134 |
+
[*] --> Redis : ok
|
| 135 |
+
Redis --> Worker : ok
|
| 136 |
+
Worker --> API : alert
|
| 137 |
+
```
|
| 138 |
- MERMAID SYNTAX RULES:
|
| 139 |
1. Always use double quotes for node labels: `A["Label Text"]`.
|
| 140 |
+
2. Avoid using reserved characters like `(` `)` `[` `]` outside of quotes.
|
| 141 |
3. Use simple `-->` for connections.
|
| 142 |
+
- NO ASCII ART: Under no circumstances should you generate ASCII box art. Use standard Markdown tables and headers for structure.
|
| 143 |
- GRADIENT AESTHETIC: When describing health, use color-coded emojis (π΄, π‘, π’) and professional terminology.
|
| 144 |
|
| 145 |
CURRENT TICKET CONTEXT:
|
frontend/apps/internal/src/components/NexusConsole.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import React, { useState, useRef, useEffect } from 'react';
|
| 2 |
-
import { useNexus } from '@nexus/shared';
|
| 3 |
import styles from './NexusConsole.module.css';
|
| 4 |
|
| 5 |
interface NexusConsoleProps {
|
|
@@ -61,17 +61,7 @@ export const NexusConsole: React.FC<NexusConsoleProps> = ({ initialTicket }) =>
|
|
| 61 |
}
|
| 62 |
}
|
| 63 |
|
| 64 |
-
|
| 65 |
-
return parts.map((p, j) => {
|
| 66 |
-
if (p.startsWith("```")) {
|
| 67 |
-
const code = p.replace(/```\w*\n?/, "").replace(/```$/, "");
|
| 68 |
-
return <pre key={j} className={styles.codeBlock}>{code}</pre>;
|
| 69 |
-
}
|
| 70 |
-
if (p.startsWith("**")) {
|
| 71 |
-
return <strong key={j} className={styles.bold}>{p.replace(/\*\*/g, "")}</strong>;
|
| 72 |
-
}
|
| 73 |
-
return <span key={j}>{p}</span>;
|
| 74 |
-
});
|
| 75 |
};
|
| 76 |
|
| 77 |
return (
|
|
|
|
| 1 |
import React, { useState, useRef, useEffect } from 'react';
|
| 2 |
+
import { useNexus, NexusMarkdown } from '@nexus/shared';
|
| 3 |
import styles from './NexusConsole.module.css';
|
| 4 |
|
| 5 |
interface NexusConsoleProps {
|
|
|
|
| 61 |
}
|
| 62 |
}
|
| 63 |
|
| 64 |
+
return <NexusMarkdown content={content} isMe={role === 'user'} />;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
};
|
| 66 |
|
| 67 |
return (
|