huytd189/pintora-edit-instruct
015
1instruction,input,output
2Add error handling with retry logic to this sequence diagram,"sequenceDiagram3participant Client4participant Server5Client->>Server: Request6Server-->>Client: Response","sequenceDiagram7participant Client8participant Server9loop Retry up to 3 times10 Client->>Server: Request11 alt Success12 Server-->>Client: 200 OK13 else Timeout14 Server-->>Client: 408 Timeout15 else Server Error16 Server-->>Client: 500 Error17 end18end"
19Add a cache layer between the API and database in this sequence diagram,"sequenceDiagram20participant Client21participant API22participant Database23Client->>API: Request data24API->>Database: Query25Database-->>API: Results26API-->>Client: Response","sequenceDiagram27participant Client28participant API29participant Cache30participant Database31Client->>API: Request data32API->>Cache: Check cache33alt Cache hit34 Cache-->>API: Cached data35 API-->>Client: Response (from cache)36else Cache miss37 Cache-->>API: Not found38 API->>Database: Query39 Database-->>API: Results40 API->>Cache: Store in cache41 API-->>Client: Response42end"
43Add authentication and authorization checks to this sequence diagram,"sequenceDiagram44participant User45participant API46participant Service47User->>API: Request48API->>Service: Process49Service-->>API: Result50API-->>User: Response","sequenceDiagram51participant User52participant API53participant AuthService54participant Service55User->>API: Request + Token56API->>AuthService: Validate token57alt Token valid58 AuthService-->>API: User info59 API->>AuthService: Check permissions60 alt Has permission61 AuthService-->>API: Authorized62 API->>Service: Process63 Service-->>API: Result64 API-->>User: 200 Response65 else No permission66 AuthService-->>API: Forbidden67 API-->>User: 403 Forbidden68 end69else Token invalid70 AuthService-->>API: Unauthorized71 API-->>User: 401 Unauthorized72end"
73Add distributed tracing with correlation IDs to this sequence diagram,"sequenceDiagram74participant ServiceA75participant ServiceB76participant ServiceC77ServiceA->>ServiceB: Call B78ServiceB->>ServiceC: Call C79ServiceC-->>ServiceB: Response80ServiceB-->>ServiceA: Response","sequenceDiagram81title: Distributed Tracing Flow82participant ServiceA83participant ServiceB84participant ServiceC85participant TracingService86ServiceA->>TracingService: Generate trace-id: ABC12387activate ServiceA88ServiceA->>ServiceB: Call B (trace-id: ABC123, span: A)89activate ServiceB90ServiceB->>TracingService: Record span B (parent: A)91ServiceB->>ServiceC: Call C (trace-id: ABC123, span: B)92activate ServiceC93ServiceC->>TracingService: Record span C (parent: B)94ServiceC-->>ServiceB: Response95deactivate ServiceC96ServiceB-->>ServiceA: Response97deactivate ServiceB98ServiceA->>TracingService: Close span A99deactivate ServiceA"
100Add autonumbering and dividers to organize this sequence diagram,"sequenceDiagram101participant User102participant API103participant DB104User->>API: Login105API->>DB: Check credentials106DB-->>API: Valid107API-->>User: Token108User->>API: Get data109API->>DB: Query110DB-->>API: Results111API-->>User: Data","sequenceDiagram112title: User Session Flow113autonumber114participant User115participant API116participant DB117== Authentication ==118User->>API: Login119API->>DB: Check credentials120DB-->>API: Valid121API-->>User: Token122== Data Access ==123User->>API: Get data124API->>DB: Query125DB-->>API: Results126API-->>User: Data"
127Add timestamps and soft delete to all entities in this ER diagram,"erDiagram128USER {129 int id PK130 string name131}132POST {133 int id PK134 string title135}","erDiagram136USER {137 int id PK138 string name139 string email140 datetime created_at141 datetime updated_at142 datetime deleted_at ""nullable, for soft delete""143 int created_by144 int updated_by145}146POST {147 int id PK148 int user_id FK149 string title150 text content151 datetime created_at152 datetime updated_at153 datetime deleted_at ""nullable""154}155USER ||--o{ POST : creates"
156Add a many-to-many relationship with a junction table to this ER diagram,"erDiagram157STUDENT {158 int id PK159 string name160}161COURSE {162 int id PK163 string title164}","erDiagram165STUDENT {166 int id PK167 string name168 string email169}170COURSE {171 int id PK172 string title173 int credits174}175ENROLLMENT {176 int student_id PK177 int course_id PK178 date enrolled_date179 string grade180 string status181}182STUDENT ||--o{ ENROLLMENT : enrolls183COURSE ||--o{ ENROLLMENT : has"
184Add audit logging and user tracking to this ER diagram,"erDiagram185PRODUCT {186 int id PK187 string name188 float price189}190ORDER {191 int id PK192 float total193}","erDiagram194USER {195 int id PK196 string username197 string role198}199PRODUCT {200 int id PK201 string name202 float price203 datetime created_at204 int created_by FK205 datetime updated_at206 int updated_by FK207}208ORDER {209 int id PK210 int customer_id FK211 float total212 datetime created_at213 int created_by FK214}215AUDIT_LOG {216 int id PK217 string table_name218 int record_id219 string action220 int user_id FK221 datetime timestamp222 text changes223}224USER ||--o{ PRODUCT : ""created by""225USER ||--o{ ORDER : ""created by""226USER ||--o{ AUDIT_LOG : performs"
227Add indexes and constraints annotations to this ER diagram,"erDiagram228USER {229 int id PK230 string email231 string username232}","erDiagram233USER {234 int id PK235 string email ""unique, indexed""236 string username ""unique, indexed""237 string password_hash ""required""238 datetime last_login ""indexed""239 boolean is_active ""default: true, indexed""240 int failed_login_attempts ""default: 0""241 datetime locked_until ""nullable""242}"
243Add monitoring and logging infrastructure to this component diagram,"componentDiagram244[Web Server]245[API Server]246[Database]247[Web Server] --> [API Server]248[API Server] --> [Database]","componentDiagram249package ""Application"" {250 [Web Server]251 [API Server]252}253database ""Data"" {254 [Database]255}256package ""Observability"" {257 [Prometheus]258 [Grafana]259 [ELK Stack]260 [Alert Manager]261}262[Web Server] --> [API Server]263[API Server] --> [Database]264[Web Server] ..> [Prometheus] : metrics265[API Server] ..> [Prometheus] : metrics266[Prometheus] --> [Grafana] : visualize267[Prometheus] --> [Alert Manager] : alerts268[Web Server] ..> [ELK Stack] : logs269[API Server] ..> [ELK Stack] : logs"
270Add a message queue and background workers to this component diagram,"componentDiagram271[API]272[Database]273[API] --> [Database]","componentDiagram274package ""Frontend"" {275 [API]276}277package ""Background Processing"" {278 [Message Queue]279 [Worker 1]280 [Worker 2]281 [Worker 3]282}283database ""Storage"" {284 [Database]285 [Cache]286}287[API] --> [Database]288[API] --> [Message Queue] : publish jobs289[Message Queue] --> [Worker 1]290[Message Queue] --> [Worker 2]291[Message Queue] --> [Worker 3]292[Worker 1] --> [Database]293[Worker 2] --> [Database]294[Worker 3] --> [Database]295[API] --> [Cache]"
296Add API gateway and load balancer to this component diagram,"componentDiagram297[Service A]298[Service B]299[Database]300[Service A] --> [Database]301[Service B] --> [Database]","componentDiagram302[Load Balancer]303[API Gateway]304package ""Services"" {305 [Service A]306 [Service B]307}308package ""Cross-Cutting"" {309 [Auth Service]310 [Rate Limiter]311}312database ""Data"" {313 [Database]314 [Cache]315}316[Load Balancer] --> [API Gateway]317[API Gateway] --> [Auth Service]318[API Gateway] --> [Rate Limiter]319[API Gateway] --> [Service A]320[API Gateway] --> [Service B]321[Service A] --> [Database]322[Service B] --> [Database]323[Service A] --> [Cache]324[Service B] --> [Cache]"
325Add parallel processing with fork/join to this activity diagram,"activityDiagram326start327:Task 1;328:Task 2;329:Task 3;330end","activityDiagram331start332:Initialize;333fork334 :Task 1A;335 :Task 1B;336forkagain337 :Task 2A;338 :Task 2B;339forkagain340 :Task 3A;341 :Task 3B;342endfork343:Merge results;344:Finalize;345end"
346Add error handling and rollback logic to this activity diagram,"activityDiagram347start348:Process order;349:Charge payment;350:Ship product;351end","activityDiagram352title: Order Processing with Error Handling353start354:Process order;355if (Order valid?) then (yes)356 :Charge payment;357 if (Payment successful?) then (yes)358 :Reserve inventory;359 if (Items available?) then (yes)360 :Ship product;361 :Send confirmation;362 else (no)363 :Refund payment;364 :Notify customer;365 end366 endif367 else (no)368 :Cancel order;369 :Notify customer;370 end371 endif372else (no)373 :Return validation error;374 end375endif376end"
377Add partitions to show different actors in this activity diagram,"activityDiagram378start379:Submit request;380:Review request;381:Approve request;382:Execute task;383end","activityDiagram384title: Multi-Actor Workflow385start386partition Employee {387 :Submit request;388 @note right: Employee initiates389}390partition Manager {391 :Review request;392 if (Approved?) then (yes)393 :Approve request;394 else (no)395 :Request changes;396 end397 endif398}399partition Operations {400 :Execute task;401 :Update records;402}403partition System {404 :Send notifications;405 :Archive documents;406}407end"
408Add interfaces and dependency injection to this class diagram,"classDiagram409class UserService {410 +getUser()411 +saveUser()412}413class Database {414 +query()415 +save()416}","classDiagram417class IUserRepository {418 <<interface>>419 +getUser(id) User420 +saveUser(user) void421 +deleteUser(id) void422}423class IDatabase {424 <<interface>>425 +query(sql) ResultSet426 +save(data) void427}428class UserService {429 -repository IUserRepository430 +UserService(repo IUserRepository)431 +getUser(id) User432 +saveUser(user) void433}434class UserRepository {435 -database IDatabase436 +UserRepository(db IDatabase)437 +getUser(id) User438 +saveUser(user) void439}440class PostgresDatabase {441 -connection Connection442 +query(sql) ResultSet443 +save(data) void444}445IUserRepository <|.. UserRepository446IDatabase <|.. PostgresDatabase447UserService --> IUserRepository : depends on448UserRepository --> IDatabase : depends on"
449Add generic types and collection handling to this class diagram,"classDiagram450class Repository {451 +find()452 +save()453}","classDiagram454class IRepository~T~ {455 <<interface>>456 +findById(id) T457 +findAll() List~T~458 +save(entity T) void459 +delete(id) void460}461class BaseRepository~T~ {462 <<abstract>>463 -items List~T~464 +findById(id) T465 +findAll() List~T~466 +save(entity T) void467 +delete(id) void468 #validate(entity T) boolean469}470class UserRepository {471 +findById(id) User472 +findAll() List~User~473 +findByEmail(email) User474}475class ProductRepository {476 +findById(id) Product477 +findAll() List~Product~478 +findByCategory(category) List~Product~479}480IRepository <|.. BaseRepository481BaseRepository <|-- UserRepository482BaseRepository <|-- ProductRepository"
483Add validation and exception handling to this class diagram,"classDiagram484class User {485 +email486 +password487 +save()488}","classDiagram489class User {490 -string email491 -string passwordHash492 +getEmail() string493 +setEmail(email) void494 +setPassword(password) void495 +validate() boolean496 +save() void497}498class ValidationException {499 +string message500 +string field501 +List~string~ errors502 +ValidationException(message, field)503}504class EmailValidator {505 {static} +isValid(email) boolean506 {static} +normalize(email) string507}508class PasswordValidator {509 {static} +isStrong(password) boolean510 {static} +hash(password) string511 {static} +verify(password, hash) boolean512}513User ..> ValidationException : throws514User --> EmailValidator : uses515User --> PasswordValidator : uses"
516Add task dependencies and milestones to this Gantt chart,"gantt517title Project Timeline518dateFormat YYYY-MM-DD519""Task A"" : 2024-01-01, 10d520""Task B"" : 2024-01-15, 10d521""Task C"" : 2024-01-20, 5d","gantt522title Project Timeline with Dependencies523dateFormat YYYY-MM-DD524axisFormat %b %d525section Phase 1526""Task A"" : t1, 2024-01-01, 10d527""Task B"" : t2, after t1, 10d528""Phase 1 Complete"" : milestone, after t2, 0d529section Phase 2530""Task C"" : t3, after t2, 5d531""Task D"" : t4, after t3, 7d532""Phase 2 Complete"" : milestone, after t4, 0d533section Final534""Integration"" : after t4, 5d535""Deployment"" : milestone, 2024-03-01, 0d"
536Add resource allocation sections to this Gantt chart,"gantt537title Development538dateFormat YYYY-MM-DD539""Feature 1"" : 2024-01-01, 20d540""Feature 2"" : 2024-01-15, 15d","gantt541title Development by Team542dateFormat YYYY-MM-DD543axisFormat %b %d544section Frontend Team (3 devs)545""Feature 1 UI"" : f1, 2024-01-01, 15d546""Feature 2 UI"" : f2, 2024-01-15, 12d547section Backend Team (2 devs)548""Feature 1 API"" : b1, 2024-01-01, 20d549""Feature 2 API"" : b2, 2024-01-20, 15d550section QA Team (1 tester)551""Test Feature 1"" : after f1, 5d552""Test Feature 2"" : after f2, 5d"
553Add more depth and detail to this mind map,"mindmap554* Project555** Planning556** Execution557** Delivery","mindmap558* Project559** Planning560*** Requirements561**** Functional562**** Non-functional563*** Resources564**** Team565**** Budget566**** Tools567*** Timeline568**** Milestones569**** Dependencies570** Execution571*** Development572**** Sprint 1573**** Sprint 2574*** Testing575**** Unit tests576**** Integration577*** Review578**** Code review579**** Security audit580** Delivery581*** Deployment582**** Staging583**** Production584*** Monitoring585**** Logs586**** Metrics587*** Support588**** Documentation589**** Training"
590Add color styling to this mind map using @param,"mindmap591* Topic592** Branch A593** Branch B","mindmap594@param {595 l1NodeBgColor #FF6B6B596 l1NodeTextColor #ffffff597 l2NodeBgColor #4ECDC4598 l2NodeTextColor #ffffff599 nodeBgColor #95E1D3600}601* Topic602** Branch A603*** Detail A1604*** Detail A2605** Branch B606*** Detail B1607*** Detail B2"
608Add subgraphs to organize nodes by layer in this DOT diagram,"dotDiagram609digraph G {610 a -> b611 b -> c612 c -> d613}","dotDiagram614digraph LayeredSystem {615 bgcolor=""white""616 rankdir=TB617 618 subgraph cluster_presentation {619 label=""Presentation Layer""620 bgcolor=""#e3f2fd""621 node [shape=""box"", bgcolor=""#90caf9""]622 a [label=""UI Component""]623 b [label=""View Controller""]624 }625 626 subgraph cluster_business {627 label=""Business Layer""628 bgcolor=""#fff3e0""629 node [shape=""box"", bgcolor=""#ffb74d""]630 c [label=""Service""]631 }632 633 subgraph cluster_data {634 label=""Data Layer""635 bgcolor=""#e8f5e9""636 node [shape=""cylinder"", bgcolor=""#66bb6a""]637 d [label=""Database""]638 }639 640 a -> b641 b -> c642 c -> d643}"
644Add edge labels and styling to this DOT diagram,"dotDiagram645digraph G {646 a -> b647 b -> c648 a -> c649}","dotDiagram650digraph StyledGraph {651 bgcolor=""white""652 node [shape=""ellipse"", bgcolor=""#e3f2fd""]653 654 a [label=""Start""]655 b [label=""Process""]656 c [label=""End""]657 658 a -> b [label=""direct"", color=""#2196f3""]659 b -> c [label=""output"", color=""#4caf50""]660 a -> c [label=""bypass"", style=""dashed"", color=""#ff9800""]661}"
662Add timeout and retry handling to this sequence diagram,"sequenceDiagram663A->>B: Request664B-->>A: Response","sequenceDiagram665participant A666participant B667loop Retry with exponential backoff668 A->>B: Request (timeout: 5s)669 alt Success670 B-->>A: 200 OK671 else Timeout672 A->>A: Wait 1s673 end674end"
675Add foreign keys and relationships to this ER diagram,"erDiagram676TABLE_A {677 int id PK678}679TABLE_B {680 int id PK681}","erDiagram682TABLE_A {683 int id PK684 string name685 datetime created_at686}687TABLE_B {688 int id PK689 int table_a_id FK690 string data691}692TABLE_A ||--o{ TABLE_B : has"
693Add service mesh and sidecar proxies to this component diagram,"[Service A]694[Service B]","componentDiagram695package ""Service Mesh"" {696 [Istio Control Plane]697}698package ""App A"" {699 [Service A]700 [Envoy Proxy A]701}702package ""App B"" {703 [Service B]704 [Envoy Proxy B]705}706[Envoy Proxy A] --> [Service A]707[Envoy Proxy B] --> [Service B]708[Envoy Proxy A] --> [Envoy Proxy B]709[Istio Control Plane] ..> [Envoy Proxy A]710[Istio Control Plane] ..> [Envoy Proxy B]"
711Add switch-case logic to this activity diagram,"activityDiagram712start713:Process;714end","activityDiagram715start716:Receive input;717switch (Input type?)718case (Type A)719 :Handle A;720case (Type B)721 :Handle B;722case (Type C)723 :Handle C;724endswitch725:Complete;726end"
727Add abstract classes and inheritance to this class diagram,"classDiagram728class Animal","classDiagram729class Animal {730 <<abstract>>731 -string name732 +getName() string733 +makeSound() void734}735class Dog {736 +makeSound() void737 +bark() void738}739class Cat {740 +makeSound() void741 +meow() void742}743Animal <|-- Dog744Animal <|-- Cat"
745Add critical path highlighting to this Gantt chart,"gantt746title Project747""Task"" : 2024-01-01, 10d","gantt748title Project with Critical Path749dateFormat YYYY-MM-DD750section Critical Path751""Critical Task 1"" : crit, 2024-01-01, 10d752""Critical Task 2"" : crit, 2024-01-11, 10d753section Non-Critical754""Parallel Task"" : 2024-01-01, 15d"
755Reorganize this mind map with left-right notation,"mindmap756* Topic757** A758** B","mindmap759* Central Topic760+ Right Side A761++ Detail A1762+ Right Side B763++ Detail B1764- Left Side C765-- Detail C1766- Left Side D767-- Detail D1"
768Add node shapes and colors to this DOT diagram,"dotDiagram769digraph G { a -> b }","dotDiagram770digraph G {771 bgcolor=""white""772 a [shape=""box"", bgcolor=""#ff6b6b"", label=""Start""]773 b [shape=""ellipse"", bgcolor=""#4ecdc4"", label=""End""]774 a -> b [color=""#95e1d3""]775}"
776Add timeout and retry handling to this sequence diagram,"sequenceDiagram777A->>B: Request778B-->>A: Response","sequenceDiagram779participant A780participant B781loop Retry with exponential backoff782 A->>B: Request (timeout: 5s)783 alt Success784 B-->>A: 200 OK785 else Timeout786 A->>A: Wait 256s787 end788end"
789Add foreign keys and relationships to this ER diagram,"erDiagram790TABLE_A {791 int id PK792}793TABLE_B {794 int id PK795}","erDiagram796TABLE_A {797 int id PK798 string name799 datetime created_at800}801TABLE_B {802 int id PK803 int table_a_id FK804 string data805}806TABLE_A ||--o{ TABLE_B : has"
807Add service mesh and sidecar proxies to this component diagram,"[Service A]808[Service B]","componentDiagram809package ""Service Mesh"" {810 [Istio Control Plane]811}812package ""App A"" {813 [Service A]814 [Envoy Proxy A]815}816package ""App B"" {817 [Service B]818 [Envoy Proxy B]819}820[Envoy Proxy A] --> [Service A]821[Envoy Proxy B] --> [Service B]822[Envoy Proxy A] --> [Envoy Proxy B]823[Istio Control Plane] ..> [Envoy Proxy A]824[Istio Control Plane] ..> [Envoy Proxy B]"
825Add switch-case logic to this activity diagram,"activityDiagram826start827:Process;828end","activityDiagram829start830:Receive input;831switch (Input type?)832case (Type A)833 :Handle A;834case (Type B)835 :Handle B;836case (Type C)837 :Handle C;838endswitch839:Complete;840end"
841Add abstract classes and inheritance to this class diagram,"classDiagram842class Animal","classDiagram843class Animal {844 <<abstract>>845 -string name846 +getName() string847 +makeSound() void848}849class Dog {850 +makeSound() void851 +bark() void852}853class Cat {854 +makeSound() void855 +meow() void856}857Animal <|-- Dog858Animal <|-- Cat"
859Add critical path highlighting to this Gantt chart,"gantt860title Project861""Task"" : 2024-01-01, 10d","gantt862title Project with Critical Path863dateFormat YYYY-MM-DD864section Critical Path865""Critical Task 1"" : crit, 2024-01-01, 10d866""Critical Task 2"" : crit, 2024-01-11, 10d867section Non-Critical868""Parallel Task"" : 2024-01-01, 15d"
869Reorganize this mind map with left-right notation,"mindmap870* Topic871** A872** B","mindmap873* Central Topic874+ Right Side A875++ Detail A1876+ Right Side B877++ Detail B1878- Left Side C879-- Detail C1880- Left Side D881-- Detail D1"
882Add node shapes and colors to this DOT diagram,"dotDiagram883digraph G { a -> b }","dotDiagram884digraph G {885 bgcolor=""white""886 a [shape=""box"", bgcolor=""#ff6b6b"", label=""Start""]887 b [shape=""ellipse"", bgcolor=""#4ecdc4"", label=""End""]888 a -> b [color=""#95e1d3""]889}"
890Add timeout and retry handling to this sequence diagram,"sequenceDiagram891A->>B: Request892B-->>A: Response","sequenceDiagram893participant A894participant B895loop Retry with exponential backoff896 A->>B: Request (timeout: 5s)897 alt Success898 B-->>A: 200 OK899 else Timeout900 A->>A: Wait 65536s901 end902end"
903Add foreign keys and relationships to this ER diagram,"erDiagram904TABLE_A {905 int id PK906}907TABLE_B {908 int id PK909}","erDiagram910TABLE_A {911 int id PK912 string name913 datetime created_at914}915TABLE_B {916 int id PK917 int table_a_id FK918 string data919}920TABLE_A ||--o{ TABLE_B : has"
921Add service mesh and sidecar proxies to this component diagram,"[Service A]922[Service B]","componentDiagram923package ""Service Mesh"" {924 [Istio Control Plane]925}926package ""App A"" {927 [Service A]928 [Envoy Proxy A]929}930package ""App B"" {931 [Service B]932 [Envoy Proxy B]933}934[Envoy Proxy A] --> [Service A]935[Envoy Proxy B] --> [Service B]936[Envoy Proxy A] --> [Envoy Proxy B]937[Istio Control Plane] ..> [Envoy Proxy A]938[Istio Control Plane] ..> [Envoy Proxy B]"
939Add switch-case logic to this activity diagram,"activityDiagram940start941:Process;942end","activityDiagram943start944:Receive input;945switch (Input type?)946case (Type A)947 :Handle A;948case (Type B)949 :Handle B;950case (Type C)951 :Handle C;952endswitch953:Complete;954end"
955Add abstract classes and inheritance to this class diagram,"classDiagram956class Animal","classDiagram957class Animal {958 <<abstract>>959 -string name960 +getName() string961 +makeSound() void962}963class Dog {964 +makeSound() void965 +bark() void966}967class Cat {968 +makeSound() void969 +meow() void970}971Animal <|-- Dog972Animal <|-- Cat"
973Add critical path highlighting to this Gantt chart,"gantt974title Project975""Task"" : 2024-01-01, 10d","gantt976title Project with Critical Path977dateFormat YYYY-MM-DD978section Critical Path979""Critical Task 1"" : crit, 2024-01-01, 10d980""Critical Task 2"" : crit, 2024-01-11, 10d981section Non-Critical982""Parallel Task"" : 2024-01-01, 15d"
983Reorganize this mind map with left-right notation,"mindmap984* Topic985** A986** B","mindmap987* Central Topic988+ Right Side A989++ Detail A1990+ Right Side B991++ Detail B1992- Left Side C993-- Detail C1994- Left Side D995-- Detail D1"
996Add node shapes and colors to this DOT diagram,"dotDiagram997digraph G { a -> b }","dotDiagram998digraph G {999 bgcolor=""white""1000 a [shape=""box"", bgcolor=""#ff6b6b"", label=""Start""]1001 b [shape=""ellipse"", bgcolor=""#4ecdc4"", label=""End""]1002 a -> b [color=""#95e1d3""]1003}"
1004Add timeout and retry handling to this sequence diagram,"sequenceDiagram1005A->>B: Request1006B-->>A: Response","sequenceDiagram1007participant A1008participant B1009loop Retry with exponential backoff1010 A->>B: Request (timeout: 5s)1011 alt Success1012 B-->>A: 200 OK1013 else Timeout1014 A->>A: Wait 16777216s1015 end1016end"
1017Add foreign keys and relationships to this ER diagram,"erDiagram1018TABLE_A {1019 int id PK1020}1021TABLE_B {1022 int id PK1023}","erDiagram1024TABLE_A {1025 int id PK1026 string name1027 datetime created_at1028}1029TABLE_B {1030 int id PK1031 int table_a_id FK1032 string data1033}1034TABLE_A ||--o{ TABLE_B : has"
1035Add service mesh and sidecar proxies to this component diagram,"[Service A]1036[Service B]","componentDiagram1037package ""Service Mesh"" {1038 [Istio Control Plane]1039}1040package ""App A"" {1041 [Service A]1042 [Envoy Proxy A]1043}1044package ""App B"" {1045 [Service B]1046 [Envoy Proxy B]1047}1048[Envoy Proxy A] --> [Service A]1049[Envoy Proxy B] --> [Service B]1050[Envoy Proxy A] --> [Envoy Proxy B]1051[Istio Control Plane] ..> [Envoy Proxy A]1052[Istio Control Plane] ..> [Envoy Proxy B]"
1053Add switch-case logic to this activity diagram,"activityDiagram1054start1055:Process;1056end","activityDiagram1057start1058:Receive input;1059switch (Input type?)1060case (Type A)1061 :Handle A;1062case (Type B)1063 :Handle B;1064case (Type C)1065 :Handle C;1066endswitch1067:Complete;1068end"
1069Add abstract classes and inheritance to this class diagram,"classDiagram1070class Animal","classDiagram1071class Animal {1072 <<abstract>>1073 -string name1074 +getName() string1075 +makeSound() void1076}1077class Dog {1078 +makeSound() void1079 +bark() void1080}1081class Cat {1082 +makeSound() void1083 +meow() void1084}1085Animal <|-- Dog1086Animal <|-- Cat"
1087Add critical path highlighting to this Gantt chart,"gantt1088title Project1089""Task"" : 2024-01-01, 10d","gantt1090title Project with Critical Path1091dateFormat YYYY-MM-DD1092section Critical Path1093""Critical Task 1"" : crit, 2024-01-01, 10d1094""Critical Task 2"" : crit, 2024-01-11, 10d1095section Non-Critical1096""Parallel Task"" : 2024-01-01, 15d"
1097Reorganize this mind map with left-right notation,"mindmap1098* Topic1099** A1100** B","mindmap1101* Central Topic1102+ Right Side A1103++ Detail A11104+ Right Side B1105++ Detail B11106- Left Side C1107-- Detail C11108- Left Side D1109-- Detail D1"
1110Add node shapes and colors to this DOT diagram,"dotDiagram1111digraph G { a -> b }","dotDiagram1112digraph G {1113 bgcolor=""white""1114 a [shape=""box"", bgcolor=""#ff6b6b"", label=""Start""]1115 b [shape=""ellipse"", bgcolor=""#4ecdc4"", label=""End""]1116 a -> b [color=""#95e1d3""]1117}"
1118Add timeout and retry handling to this sequence diagram,"sequenceDiagram1119A->>B: Request1120B-->>A: Response","sequenceDiagram1121participant A1122participant B1123loop Retry with exponential backoff1124 A->>B: Request (timeout: 5s)1125 alt Success1126 B-->>A: 200 OK1127 else Timeout1128 A->>A: Wait 4294967296s1129 end1130end"
1131Add foreign keys and relationships to this ER diagram,"erDiagram1132TABLE_A {1133 int id PK1134}1135TABLE_B {1136 int id PK1137}","erDiagram1138TABLE_A {1139 int id PK1140 string name1141 datetime created_at1142}1143TABLE_B {1144 int id PK1145 int table_a_id FK1146 string data1147}1148TABLE_A ||--o{ TABLE_B : has"
1149Add service mesh and sidecar proxies to this component diagram,"[Service A]1150[Service B]","componentDiagram1151package ""Service Mesh"" {1152 [Istio Control Plane]1153}1154package ""App A"" {1155 [Service A]1156 [Envoy Proxy A]1157}1158package ""App B"" {1159 [Service B]1160 [Envoy Proxy B]1161}1162[Envoy Proxy A] --> [Service A]1163[Envoy Proxy B] --> [Service B]1164[Envoy Proxy A] --> [Envoy Proxy B]1165[Istio Control Plane] ..> [Envoy Proxy A]1166[Istio Control Plane] ..> [Envoy Proxy B]"
1167Add switch-case logic to this activity diagram,"activityDiagram1168start1169:Process;1170end","activityDiagram1171start1172:Receive input;1173switch (Input type?)1174case (Type A)1175 :Handle A;1176case (Type B)1177 :Handle B;1178case (Type C)1179 :Handle C;1180endswitch1181:Complete;1182end"
1183Add abstract classes and inheritance to this class diagram,"classDiagram1184class Animal","classDiagram1185class Animal {1186 <<abstract>>1187 -string name1188 +getName() string1189 +makeSound() void1190}1191class Dog {1192 +makeSound() void1193 +bark() void1194}1195class Cat {1196 +makeSound() void1197 +meow() void1198}1199Animal <|-- Dog1200Animal <|-- Cat"
