retell-sdk 5.35.0 → 5.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -215,6 +215,8 @@ export namespace ConversationFlowComponentResponse {
215
215
 
216
216
  edges?: Array<ConversationNode.Edge>;
217
217
 
218
+ else_edge?: ConversationNode.ElseEdge;
219
+
218
220
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
219
221
 
220
222
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -419,6 +421,80 @@ export namespace ConversationFlowComponentResponse {
419
421
  }
420
422
  }
421
423
 
424
+ export interface ElseEdge {
425
+ /**
426
+ * Unique identifier for the edge
427
+ */
428
+ id: string;
429
+
430
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
431
+
432
+ /**
433
+ * ID of the destination node
434
+ */
435
+ destination_node_id?: string;
436
+ }
437
+
438
+ export namespace ElseEdge {
439
+ export interface PromptCondition {
440
+ /**
441
+ * Prompt condition text
442
+ */
443
+ prompt: string;
444
+
445
+ type: 'prompt';
446
+ }
447
+
448
+ export interface EquationCondition {
449
+ equations: Array<EquationCondition.Equation>;
450
+
451
+ operator: '||' | '&&';
452
+
453
+ type: 'equation';
454
+
455
+ /**
456
+ * Must be "Else" for else edge
457
+ */
458
+ prompt?: 'Else';
459
+ }
460
+
461
+ export namespace EquationCondition {
462
+ export interface Equation {
463
+ /**
464
+ * Left side of the equation
465
+ */
466
+ left: string;
467
+
468
+ operator:
469
+ | '=='
470
+ | '!='
471
+ | '>'
472
+ | '>='
473
+ | '<'
474
+ | '<='
475
+ | 'contains'
476
+ | 'not_contains'
477
+ | 'exists'
478
+ | 'not_exist';
479
+
480
+ /**
481
+ * Right side of the equation. The right side of the equation not required when
482
+ * "exists" or "not_exist" are selected.
483
+ */
484
+ right?: string;
485
+ }
486
+ }
487
+
488
+ export interface UnionMember2 {
489
+ /**
490
+ * Must be "Else" for else edge
491
+ */
492
+ prompt: 'Else';
493
+
494
+ type: 'prompt';
495
+ }
496
+ }
497
+
422
498
  export interface FinetuneConversationExample {
423
499
  /**
424
500
  * Unique identifier for the example
@@ -829,6 +905,8 @@ export namespace ConversationFlowComponentResponse {
829
905
 
830
906
  edges?: Array<SubagentNode.Edge>;
831
907
 
908
+ else_edge?: SubagentNode.ElseEdge;
909
+
832
910
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
833
911
 
834
912
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
@@ -1047,6 +1125,80 @@ export namespace ConversationFlowComponentResponse {
1047
1125
  }
1048
1126
  }
1049
1127
 
1128
+ export interface ElseEdge {
1129
+ /**
1130
+ * Unique identifier for the edge
1131
+ */
1132
+ id: string;
1133
+
1134
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
1135
+
1136
+ /**
1137
+ * ID of the destination node
1138
+ */
1139
+ destination_node_id?: string;
1140
+ }
1141
+
1142
+ export namespace ElseEdge {
1143
+ export interface PromptCondition {
1144
+ /**
1145
+ * Prompt condition text
1146
+ */
1147
+ prompt: string;
1148
+
1149
+ type: 'prompt';
1150
+ }
1151
+
1152
+ export interface EquationCondition {
1153
+ equations: Array<EquationCondition.Equation>;
1154
+
1155
+ operator: '||' | '&&';
1156
+
1157
+ type: 'equation';
1158
+
1159
+ /**
1160
+ * Must be "Else" for else edge
1161
+ */
1162
+ prompt?: 'Else';
1163
+ }
1164
+
1165
+ export namespace EquationCondition {
1166
+ export interface Equation {
1167
+ /**
1168
+ * Left side of the equation
1169
+ */
1170
+ left: string;
1171
+
1172
+ operator:
1173
+ | '=='
1174
+ | '!='
1175
+ | '>'
1176
+ | '>='
1177
+ | '<'
1178
+ | '<='
1179
+ | 'contains'
1180
+ | 'not_contains'
1181
+ | 'exists'
1182
+ | 'not_exist';
1183
+
1184
+ /**
1185
+ * Right side of the equation. The right side of the equation not required when
1186
+ * "exists" or "not_exist" are selected.
1187
+ */
1188
+ right?: string;
1189
+ }
1190
+ }
1191
+
1192
+ export interface UnionMember2 {
1193
+ /**
1194
+ * Must be "Else" for else edge
1195
+ */
1196
+ prompt: 'Else';
1197
+
1198
+ type: 'prompt';
1199
+ }
1200
+ }
1201
+
1050
1202
  export interface FinetuneConversationExample {
1051
1203
  /**
1052
1204
  * Unique identifier for the example
@@ -4466,6 +4618,8 @@ export namespace ConversationFlowComponentResponse {
4466
4618
 
4467
4619
  edges?: Array<PressDigitNode.Edge>;
4468
4620
 
4621
+ else_edge?: PressDigitNode.ElseEdge;
4622
+
4469
4623
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
4470
4624
 
4471
4625
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -4560,6 +4714,80 @@ export namespace ConversationFlowComponentResponse {
4560
4714
  }
4561
4715
  }
4562
4716
 
4717
+ export interface ElseEdge {
4718
+ /**
4719
+ * Unique identifier for the edge
4720
+ */
4721
+ id: string;
4722
+
4723
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
4724
+
4725
+ /**
4726
+ * ID of the destination node
4727
+ */
4728
+ destination_node_id?: string;
4729
+ }
4730
+
4731
+ export namespace ElseEdge {
4732
+ export interface PromptCondition {
4733
+ /**
4734
+ * Prompt condition text
4735
+ */
4736
+ prompt: string;
4737
+
4738
+ type: 'prompt';
4739
+ }
4740
+
4741
+ export interface EquationCondition {
4742
+ equations: Array<EquationCondition.Equation>;
4743
+
4744
+ operator: '||' | '&&';
4745
+
4746
+ type: 'equation';
4747
+
4748
+ /**
4749
+ * Must be "Else" for else edge
4750
+ */
4751
+ prompt?: 'Else';
4752
+ }
4753
+
4754
+ export namespace EquationCondition {
4755
+ export interface Equation {
4756
+ /**
4757
+ * Left side of the equation
4758
+ */
4759
+ left: string;
4760
+
4761
+ operator:
4762
+ | '=='
4763
+ | '!='
4764
+ | '>'
4765
+ | '>='
4766
+ | '<'
4767
+ | '<='
4768
+ | 'contains'
4769
+ | 'not_contains'
4770
+ | 'exists'
4771
+ | 'not_exist';
4772
+
4773
+ /**
4774
+ * Right side of the equation. The right side of the equation not required when
4775
+ * "exists" or "not_exist" are selected.
4776
+ */
4777
+ right?: string;
4778
+ }
4779
+ }
4780
+
4781
+ export interface UnionMember2 {
4782
+ /**
4783
+ * Must be "Else" for else edge
4784
+ */
4785
+ prompt: 'Else';
4786
+
4787
+ type: 'prompt';
4788
+ }
4789
+ }
4790
+
4563
4791
  export interface FinetuneTransitionExample {
4564
4792
  /**
4565
4793
  * Unique identifier for the example
@@ -8466,6 +8694,8 @@ export namespace ConversationFlowComponentCreateParams {
8466
8694
 
8467
8695
  edges?: Array<ConversationNode.Edge>;
8468
8696
 
8697
+ else_edge?: ConversationNode.ElseEdge;
8698
+
8469
8699
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
8470
8700
 
8471
8701
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -8670,33 +8900,107 @@ export namespace ConversationFlowComponentCreateParams {
8670
8900
  }
8671
8901
  }
8672
8902
 
8673
- export interface FinetuneConversationExample {
8903
+ export interface ElseEdge {
8674
8904
  /**
8675
- * Unique identifier for the example
8905
+ * Unique identifier for the edge
8676
8906
  */
8677
8907
  id: string;
8678
8908
 
8909
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
8910
+
8679
8911
  /**
8680
- * The example transcript to finetune how the conversation should be.
8912
+ * ID of the destination node
8681
8913
  */
8682
- transcript: Array<
8683
- | FinetuneConversationExample.UnionMember0
8684
- | FinetuneConversationExample.UnionMember1
8685
- | FinetuneConversationExample.UnionMember2
8686
- >;
8914
+ destination_node_id?: string;
8687
8915
  }
8688
8916
 
8689
- export namespace FinetuneConversationExample {
8690
- export interface UnionMember0 {
8691
- content: string;
8917
+ export namespace ElseEdge {
8918
+ export interface PromptCondition {
8919
+ /**
8920
+ * Prompt condition text
8921
+ */
8922
+ prompt: string;
8692
8923
 
8693
- role: 'agent' | 'user';
8924
+ type: 'prompt';
8694
8925
  }
8695
8926
 
8696
- export interface UnionMember1 {
8697
- arguments: string;
8927
+ export interface EquationCondition {
8928
+ equations: Array<EquationCondition.Equation>;
8698
8929
 
8699
- name: string;
8930
+ operator: '||' | '&&';
8931
+
8932
+ type: 'equation';
8933
+
8934
+ /**
8935
+ * Must be "Else" for else edge
8936
+ */
8937
+ prompt?: 'Else';
8938
+ }
8939
+
8940
+ export namespace EquationCondition {
8941
+ export interface Equation {
8942
+ /**
8943
+ * Left side of the equation
8944
+ */
8945
+ left: string;
8946
+
8947
+ operator:
8948
+ | '=='
8949
+ | '!='
8950
+ | '>'
8951
+ | '>='
8952
+ | '<'
8953
+ | '<='
8954
+ | 'contains'
8955
+ | 'not_contains'
8956
+ | 'exists'
8957
+ | 'not_exist';
8958
+
8959
+ /**
8960
+ * Right side of the equation. The right side of the equation not required when
8961
+ * "exists" or "not_exist" are selected.
8962
+ */
8963
+ right?: string;
8964
+ }
8965
+ }
8966
+
8967
+ export interface UnionMember2 {
8968
+ /**
8969
+ * Must be "Else" for else edge
8970
+ */
8971
+ prompt: 'Else';
8972
+
8973
+ type: 'prompt';
8974
+ }
8975
+ }
8976
+
8977
+ export interface FinetuneConversationExample {
8978
+ /**
8979
+ * Unique identifier for the example
8980
+ */
8981
+ id: string;
8982
+
8983
+ /**
8984
+ * The example transcript to finetune how the conversation should be.
8985
+ */
8986
+ transcript: Array<
8987
+ | FinetuneConversationExample.UnionMember0
8988
+ | FinetuneConversationExample.UnionMember1
8989
+ | FinetuneConversationExample.UnionMember2
8990
+ >;
8991
+ }
8992
+
8993
+ export namespace FinetuneConversationExample {
8994
+ export interface UnionMember0 {
8995
+ content: string;
8996
+
8997
+ role: 'agent' | 'user';
8998
+ }
8999
+
9000
+ export interface UnionMember1 {
9001
+ arguments: string;
9002
+
9003
+ name: string;
8700
9004
 
8701
9005
  role: 'tool_call_invocation';
8702
9006
 
@@ -9080,6 +9384,8 @@ export namespace ConversationFlowComponentCreateParams {
9080
9384
 
9081
9385
  edges?: Array<SubagentNode.Edge>;
9082
9386
 
9387
+ else_edge?: SubagentNode.ElseEdge;
9388
+
9083
9389
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
9084
9390
 
9085
9391
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
@@ -9298,6 +9604,80 @@ export namespace ConversationFlowComponentCreateParams {
9298
9604
  }
9299
9605
  }
9300
9606
 
9607
+ export interface ElseEdge {
9608
+ /**
9609
+ * Unique identifier for the edge
9610
+ */
9611
+ id: string;
9612
+
9613
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
9614
+
9615
+ /**
9616
+ * ID of the destination node
9617
+ */
9618
+ destination_node_id?: string;
9619
+ }
9620
+
9621
+ export namespace ElseEdge {
9622
+ export interface PromptCondition {
9623
+ /**
9624
+ * Prompt condition text
9625
+ */
9626
+ prompt: string;
9627
+
9628
+ type: 'prompt';
9629
+ }
9630
+
9631
+ export interface EquationCondition {
9632
+ equations: Array<EquationCondition.Equation>;
9633
+
9634
+ operator: '||' | '&&';
9635
+
9636
+ type: 'equation';
9637
+
9638
+ /**
9639
+ * Must be "Else" for else edge
9640
+ */
9641
+ prompt?: 'Else';
9642
+ }
9643
+
9644
+ export namespace EquationCondition {
9645
+ export interface Equation {
9646
+ /**
9647
+ * Left side of the equation
9648
+ */
9649
+ left: string;
9650
+
9651
+ operator:
9652
+ | '=='
9653
+ | '!='
9654
+ | '>'
9655
+ | '>='
9656
+ | '<'
9657
+ | '<='
9658
+ | 'contains'
9659
+ | 'not_contains'
9660
+ | 'exists'
9661
+ | 'not_exist';
9662
+
9663
+ /**
9664
+ * Right side of the equation. The right side of the equation not required when
9665
+ * "exists" or "not_exist" are selected.
9666
+ */
9667
+ right?: string;
9668
+ }
9669
+ }
9670
+
9671
+ export interface UnionMember2 {
9672
+ /**
9673
+ * Must be "Else" for else edge
9674
+ */
9675
+ prompt: 'Else';
9676
+
9677
+ type: 'prompt';
9678
+ }
9679
+ }
9680
+
9301
9681
  export interface FinetuneConversationExample {
9302
9682
  /**
9303
9683
  * Unique identifier for the example
@@ -12717,6 +13097,8 @@ export namespace ConversationFlowComponentCreateParams {
12717
13097
 
12718
13098
  edges?: Array<PressDigitNode.Edge>;
12719
13099
 
13100
+ else_edge?: PressDigitNode.ElseEdge;
13101
+
12720
13102
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
12721
13103
 
12722
13104
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -12811,6 +13193,80 @@ export namespace ConversationFlowComponentCreateParams {
12811
13193
  }
12812
13194
  }
12813
13195
 
13196
+ export interface ElseEdge {
13197
+ /**
13198
+ * Unique identifier for the edge
13199
+ */
13200
+ id: string;
13201
+
13202
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
13203
+
13204
+ /**
13205
+ * ID of the destination node
13206
+ */
13207
+ destination_node_id?: string;
13208
+ }
13209
+
13210
+ export namespace ElseEdge {
13211
+ export interface PromptCondition {
13212
+ /**
13213
+ * Prompt condition text
13214
+ */
13215
+ prompt: string;
13216
+
13217
+ type: 'prompt';
13218
+ }
13219
+
13220
+ export interface EquationCondition {
13221
+ equations: Array<EquationCondition.Equation>;
13222
+
13223
+ operator: '||' | '&&';
13224
+
13225
+ type: 'equation';
13226
+
13227
+ /**
13228
+ * Must be "Else" for else edge
13229
+ */
13230
+ prompt?: 'Else';
13231
+ }
13232
+
13233
+ export namespace EquationCondition {
13234
+ export interface Equation {
13235
+ /**
13236
+ * Left side of the equation
13237
+ */
13238
+ left: string;
13239
+
13240
+ operator:
13241
+ | '=='
13242
+ | '!='
13243
+ | '>'
13244
+ | '>='
13245
+ | '<'
13246
+ | '<='
13247
+ | 'contains'
13248
+ | 'not_contains'
13249
+ | 'exists'
13250
+ | 'not_exist';
13251
+
13252
+ /**
13253
+ * Right side of the equation. The right side of the equation not required when
13254
+ * "exists" or "not_exist" are selected.
13255
+ */
13256
+ right?: string;
13257
+ }
13258
+ }
13259
+
13260
+ export interface UnionMember2 {
13261
+ /**
13262
+ * Must be "Else" for else edge
13263
+ */
13264
+ prompt: 'Else';
13265
+
13266
+ type: 'prompt';
13267
+ }
13268
+ }
13269
+
12814
13270
  export interface FinetuneTransitionExample {
12815
13271
  /**
12816
13272
  * Unique identifier for the example
@@ -16754,6 +17210,8 @@ export namespace ConversationFlowComponentUpdateParams {
16754
17210
 
16755
17211
  edges?: Array<ConversationNode.Edge>;
16756
17212
 
17213
+ else_edge?: ConversationNode.ElseEdge;
17214
+
16757
17215
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
16758
17216
 
16759
17217
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -16958,6 +17416,80 @@ export namespace ConversationFlowComponentUpdateParams {
16958
17416
  }
16959
17417
  }
16960
17418
 
17419
+ export interface ElseEdge {
17420
+ /**
17421
+ * Unique identifier for the edge
17422
+ */
17423
+ id: string;
17424
+
17425
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
17426
+
17427
+ /**
17428
+ * ID of the destination node
17429
+ */
17430
+ destination_node_id?: string;
17431
+ }
17432
+
17433
+ export namespace ElseEdge {
17434
+ export interface PromptCondition {
17435
+ /**
17436
+ * Prompt condition text
17437
+ */
17438
+ prompt: string;
17439
+
17440
+ type: 'prompt';
17441
+ }
17442
+
17443
+ export interface EquationCondition {
17444
+ equations: Array<EquationCondition.Equation>;
17445
+
17446
+ operator: '||' | '&&';
17447
+
17448
+ type: 'equation';
17449
+
17450
+ /**
17451
+ * Must be "Else" for else edge
17452
+ */
17453
+ prompt?: 'Else';
17454
+ }
17455
+
17456
+ export namespace EquationCondition {
17457
+ export interface Equation {
17458
+ /**
17459
+ * Left side of the equation
17460
+ */
17461
+ left: string;
17462
+
17463
+ operator:
17464
+ | '=='
17465
+ | '!='
17466
+ | '>'
17467
+ | '>='
17468
+ | '<'
17469
+ | '<='
17470
+ | 'contains'
17471
+ | 'not_contains'
17472
+ | 'exists'
17473
+ | 'not_exist';
17474
+
17475
+ /**
17476
+ * Right side of the equation. The right side of the equation not required when
17477
+ * "exists" or "not_exist" are selected.
17478
+ */
17479
+ right?: string;
17480
+ }
17481
+ }
17482
+
17483
+ export interface UnionMember2 {
17484
+ /**
17485
+ * Must be "Else" for else edge
17486
+ */
17487
+ prompt: 'Else';
17488
+
17489
+ type: 'prompt';
17490
+ }
17491
+ }
17492
+
16961
17493
  export interface FinetuneConversationExample {
16962
17494
  /**
16963
17495
  * Unique identifier for the example
@@ -17368,6 +17900,8 @@ export namespace ConversationFlowComponentUpdateParams {
17368
17900
 
17369
17901
  edges?: Array<SubagentNode.Edge>;
17370
17902
 
17903
+ else_edge?: SubagentNode.ElseEdge;
17904
+
17371
17905
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
17372
17906
 
17373
17907
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
@@ -17586,6 +18120,80 @@ export namespace ConversationFlowComponentUpdateParams {
17586
18120
  }
17587
18121
  }
17588
18122
 
18123
+ export interface ElseEdge {
18124
+ /**
18125
+ * Unique identifier for the edge
18126
+ */
18127
+ id: string;
18128
+
18129
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
18130
+
18131
+ /**
18132
+ * ID of the destination node
18133
+ */
18134
+ destination_node_id?: string;
18135
+ }
18136
+
18137
+ export namespace ElseEdge {
18138
+ export interface PromptCondition {
18139
+ /**
18140
+ * Prompt condition text
18141
+ */
18142
+ prompt: string;
18143
+
18144
+ type: 'prompt';
18145
+ }
18146
+
18147
+ export interface EquationCondition {
18148
+ equations: Array<EquationCondition.Equation>;
18149
+
18150
+ operator: '||' | '&&';
18151
+
18152
+ type: 'equation';
18153
+
18154
+ /**
18155
+ * Must be "Else" for else edge
18156
+ */
18157
+ prompt?: 'Else';
18158
+ }
18159
+
18160
+ export namespace EquationCondition {
18161
+ export interface Equation {
18162
+ /**
18163
+ * Left side of the equation
18164
+ */
18165
+ left: string;
18166
+
18167
+ operator:
18168
+ | '=='
18169
+ | '!='
18170
+ | '>'
18171
+ | '>='
18172
+ | '<'
18173
+ | '<='
18174
+ | 'contains'
18175
+ | 'not_contains'
18176
+ | 'exists'
18177
+ | 'not_exist';
18178
+
18179
+ /**
18180
+ * Right side of the equation. The right side of the equation not required when
18181
+ * "exists" or "not_exist" are selected.
18182
+ */
18183
+ right?: string;
18184
+ }
18185
+ }
18186
+
18187
+ export interface UnionMember2 {
18188
+ /**
18189
+ * Must be "Else" for else edge
18190
+ */
18191
+ prompt: 'Else';
18192
+
18193
+ type: 'prompt';
18194
+ }
18195
+ }
18196
+
17589
18197
  export interface FinetuneConversationExample {
17590
18198
  /**
17591
18199
  * Unique identifier for the example
@@ -21005,6 +21613,8 @@ export namespace ConversationFlowComponentUpdateParams {
21005
21613
 
21006
21614
  edges?: Array<PressDigitNode.Edge>;
21007
21615
 
21616
+ else_edge?: PressDigitNode.ElseEdge;
21617
+
21008
21618
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
21009
21619
 
21010
21620
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -21099,6 +21709,80 @@ export namespace ConversationFlowComponentUpdateParams {
21099
21709
  }
21100
21710
  }
21101
21711
 
21712
+ export interface ElseEdge {
21713
+ /**
21714
+ * Unique identifier for the edge
21715
+ */
21716
+ id: string;
21717
+
21718
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
21719
+
21720
+ /**
21721
+ * ID of the destination node
21722
+ */
21723
+ destination_node_id?: string;
21724
+ }
21725
+
21726
+ export namespace ElseEdge {
21727
+ export interface PromptCondition {
21728
+ /**
21729
+ * Prompt condition text
21730
+ */
21731
+ prompt: string;
21732
+
21733
+ type: 'prompt';
21734
+ }
21735
+
21736
+ export interface EquationCondition {
21737
+ equations: Array<EquationCondition.Equation>;
21738
+
21739
+ operator: '||' | '&&';
21740
+
21741
+ type: 'equation';
21742
+
21743
+ /**
21744
+ * Must be "Else" for else edge
21745
+ */
21746
+ prompt?: 'Else';
21747
+ }
21748
+
21749
+ export namespace EquationCondition {
21750
+ export interface Equation {
21751
+ /**
21752
+ * Left side of the equation
21753
+ */
21754
+ left: string;
21755
+
21756
+ operator:
21757
+ | '=='
21758
+ | '!='
21759
+ | '>'
21760
+ | '>='
21761
+ | '<'
21762
+ | '<='
21763
+ | 'contains'
21764
+ | 'not_contains'
21765
+ | 'exists'
21766
+ | 'not_exist';
21767
+
21768
+ /**
21769
+ * Right side of the equation. The right side of the equation not required when
21770
+ * "exists" or "not_exist" are selected.
21771
+ */
21772
+ right?: string;
21773
+ }
21774
+ }
21775
+
21776
+ export interface UnionMember2 {
21777
+ /**
21778
+ * Must be "Else" for else edge
21779
+ */
21780
+ prompt: 'Else';
21781
+
21782
+ type: 'prompt';
21783
+ }
21784
+ }
21785
+
21102
21786
  export interface FinetuneTransitionExample {
21103
21787
  /**
21104
21788
  * Unique identifier for the example