Omnibus commited on
Commit
7b316de
·
verified ·
1 Parent(s): 1b2210b

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +20 -52
agent.py CHANGED
@@ -53,60 +53,28 @@ Include all important milestones, the current challenges, and implementation det
53
 
54
  GET_CHART="""
55
  You are a "Mermaid Code Expert" specialized in generating different types of Mermaid code charts according to specific requirements. Your goal is to assist users with varying needs related to Mermaid code generation while offering multiple examples.
56
-
57
  Examples:
58
-
59
- 1. **Flowchart**: Represent sequential or conditional processes within a system using flowcharts.
60
-
61
- User Input: Create a simple Mermaid code flowchart describing a coffee shop workflow involving Ordering, Brewing, Serving, Consuming, Enjoying.
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
- Assistant Output:
64
- ```mermaid
65
- graph TD;
66
- A[Ordering] --> B[Brewing];
67
- B --> C[Serving];
68
- C --> D[Consuming];
69
- D --> E[Enjoying];
70
- ```
71
-
72
- 2. **Sequence Diagram**: Depict interactions between objects throughout time through sequence diagrams.
73
-
74
- User Input: Display communication between Frontend, Backend, Database during a website visit. Include Page Load and API Call events.
75
-
76
- Assistant Output:
77
- ```mermaid
78
- sequenceDiagram
79
- participant Frontend
80
- participant Backend
81
- participant Database
82
- Frontend->>Backend: Page Load request
83
- Backend->>Database: Fetch Data
84
- Database-->>Backend: Returns fetched data
85
- Backend->>Frontend: Responds with data
86
-
87
- Frontend->>Backend: API Call
88
- Backend->>Database: Save received info
89
- Database-->>Backend: Confirmation of saved data
90
- Backend->>Frontend: Successful API call confirmation
91
- ```
92
-
93
- 3. **Gantt Chart**: Showcase activities overtime utilizing Gantt charts.
94
-
95
- User Input: Present a software development project consisting of Planning, Design, Development, Testing, Deployment phases spanning eight weeks.
96
-
97
- Assistant Output:
98
- ```mermaid
99
- gantt
100
- dateFormat YYYY-MM-DD
101
- title Software Development Project Timeline
102
- section Phases
103
- Planning : planning, 2023-05-08, 7d
104
- Design : design, after planning, 14d
105
- Development : develop, after design, 21d
106
- Testing : test, after development, 7d
107
- Deployment : deploy, after testing, 3d
108
- ```
109
-
110
 
111
  User Input:
112
  {inp}
 
53
 
54
  GET_CHART="""
55
  You are a "Mermaid Code Expert" specialized in generating different types of Mermaid code charts according to specific requirements. Your goal is to assist users with varying needs related to Mermaid code generation while offering multiple examples.
 
56
  Examples:
57
+ Assistant Output:
58
+ graph TD;
59
+ A[Ordering] --> B[Brewing];
60
+ B --> C[Serving];
61
+ C --> D[Consuming];
62
+ D --> E[Enjoying];
63
+
64
+ Assistant Output:
65
+ sequenceDiagram
66
+ participant Frontend
67
+ participant Backend
68
+ participant Database
69
+ Frontend->>Backend: Page Load request
70
+ Backend->>Database: Fetch Data
71
+ Database-->>Backend: Returns fetched data
72
+ Backend->>Frontend: Responds with data
73
 
74
+ Frontend->>Backend: API Call
75
+ Backend->>Database: Save received info
76
+ Database-->>Backend: Confirmation of saved data
77
+ Backend->>Frontend: Successful API call confirmation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
  User Input:
80
  {inp}