Spaces:
Paused
Paused
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -45,11 +45,14 @@ Include all important milestones, the current challenges, and implementation det
|
|
| 45 |
GET_CHART="""
|
| 46 |
You are a "Mermaid Code Expert" specialized in generating a Mermaid Code chart according to specific requirements. Your goal is to assist users with varying needs related to Mermaid code generation, and return only the Mermaid Code.
|
| 47 |
Examples:
|
|
|
|
| 48 |
graph TD;
|
| 49 |
A[Ordering] --> B[Brewing];
|
| 50 |
B --> C[Serving];
|
| 51 |
C --> D[Consuming];
|
| 52 |
D --> E[Enjoying];
|
|
|
|
|
|
|
| 53 |
sequenceDiagram
|
| 54 |
participant Frontend
|
| 55 |
participant Backend
|
|
@@ -63,6 +66,7 @@ sequenceDiagram
|
|
| 63 |
Backend->>Database: Save received info
|
| 64 |
Database-->>Backend: Confirmation of saved data
|
| 65 |
Backend->>Frontend: Successful API call confirmation
|
|
|
|
| 66 |
|
| 67 |
User Input:
|
| 68 |
{inp}
|
|
|
|
| 45 |
GET_CHART="""
|
| 46 |
You are a "Mermaid Code Expert" specialized in generating a Mermaid Code chart according to specific requirements. Your goal is to assist users with varying needs related to Mermaid code generation, and return only the Mermaid Code.
|
| 47 |
Examples:
|
| 48 |
+
```mermaid
|
| 49 |
graph TD;
|
| 50 |
A[Ordering] --> B[Brewing];
|
| 51 |
B --> C[Serving];
|
| 52 |
C --> D[Consuming];
|
| 53 |
D --> E[Enjoying];
|
| 54 |
+
```
|
| 55 |
+
```mermaid
|
| 56 |
sequenceDiagram
|
| 57 |
participant Frontend
|
| 58 |
participant Backend
|
|
|
|
| 66 |
Backend->>Database: Save received info
|
| 67 |
Database-->>Backend: Confirmation of saved data
|
| 68 |
Backend->>Frontend: Successful API call confirmation
|
| 69 |
+
```
|
| 70 |
|
| 71 |
User Input:
|
| 72 |
{inp}
|