retell-sdk 6.1.0 → 6.2.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.
- package/CHANGELOG.md +24 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +30 -3
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +30 -3
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +22 -6
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +22 -6
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +66 -18
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +66 -18
- package/resources/call.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +1969 -127
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +1969 -127
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +4081 -376
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +4081 -376
- package/resources/conversation-flow.d.ts.map +1 -1
- package/src/resources/agent.ts +36 -0
- package/src/resources/batch-call.ts +32 -5
- package/src/resources/call.ts +96 -15
- package/src/resources/conversation-flow-component.ts +3080 -197
- package/src/resources/conversation-flow.ts +7108 -1293
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -210,6 +210,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
210
210
|
*/
|
|
211
211
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
212
212
|
|
|
213
|
+
/**
|
|
214
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
215
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
216
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
217
|
+
* is entered.
|
|
218
|
+
*/
|
|
219
|
+
boosted_keywords?: Array<string> | null;
|
|
220
|
+
|
|
213
221
|
/**
|
|
214
222
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
215
223
|
*/
|
|
@@ -662,9 +670,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
662
670
|
export interface GlobalNodeSetting {
|
|
663
671
|
/**
|
|
664
672
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
665
|
-
* be empty. Also accepts
|
|
673
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
674
|
+
* EquationPromptCondition objects.
|
|
666
675
|
*/
|
|
667
|
-
condition:
|
|
676
|
+
condition:
|
|
677
|
+
| string
|
|
678
|
+
| GlobalNodeSetting.PromptCondition
|
|
679
|
+
| GlobalNodeSetting.EquationCondition
|
|
680
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
668
681
|
|
|
669
682
|
/**
|
|
670
683
|
* The same global node won't be triggered again within the next N node
|
|
@@ -734,6 +747,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
734
747
|
}
|
|
735
748
|
}
|
|
736
749
|
|
|
750
|
+
export interface EquationPromptCondition {
|
|
751
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
752
|
+
|
|
753
|
+
operator: '||' | '&&';
|
|
754
|
+
|
|
755
|
+
type: 'equation_prompt';
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
759
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
760
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
761
|
+
* timing.
|
|
762
|
+
*/
|
|
763
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export namespace EquationPromptCondition {
|
|
767
|
+
export interface Equation {
|
|
768
|
+
/**
|
|
769
|
+
* Left side of the equation
|
|
770
|
+
*/
|
|
771
|
+
left: string;
|
|
772
|
+
|
|
773
|
+
operator:
|
|
774
|
+
| '=='
|
|
775
|
+
| '!='
|
|
776
|
+
| '>'
|
|
777
|
+
| '>='
|
|
778
|
+
| '<'
|
|
779
|
+
| '<='
|
|
780
|
+
| 'contains'
|
|
781
|
+
| 'not_contains'
|
|
782
|
+
| 'exists'
|
|
783
|
+
| 'not_exist';
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Right side of the equation. The right side of the equation not required when
|
|
787
|
+
* "exists" or "not_exist" are selected.
|
|
788
|
+
*/
|
|
789
|
+
right?: string;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
794
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
795
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
796
|
+
* timing.
|
|
797
|
+
*/
|
|
798
|
+
export interface PromptCondition {
|
|
799
|
+
/**
|
|
800
|
+
* Prompt condition text
|
|
801
|
+
*/
|
|
802
|
+
prompt: string;
|
|
803
|
+
|
|
804
|
+
type: 'prompt';
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
737
808
|
/**
|
|
738
809
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
739
810
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -1048,6 +1119,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
1048
1119
|
*/
|
|
1049
1120
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
1050
1121
|
|
|
1122
|
+
/**
|
|
1123
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
1124
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
1125
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
1126
|
+
* is entered.
|
|
1127
|
+
*/
|
|
1128
|
+
boosted_keywords?: Array<string> | null;
|
|
1129
|
+
|
|
1051
1130
|
/**
|
|
1052
1131
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
1053
1132
|
*/
|
|
@@ -1513,9 +1592,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
1513
1592
|
export interface GlobalNodeSetting {
|
|
1514
1593
|
/**
|
|
1515
1594
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
1516
|
-
* be empty. Also accepts
|
|
1595
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
1596
|
+
* EquationPromptCondition objects.
|
|
1517
1597
|
*/
|
|
1518
|
-
condition:
|
|
1598
|
+
condition:
|
|
1599
|
+
| string
|
|
1600
|
+
| GlobalNodeSetting.PromptCondition
|
|
1601
|
+
| GlobalNodeSetting.EquationCondition
|
|
1602
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
1519
1603
|
|
|
1520
1604
|
/**
|
|
1521
1605
|
* The same global node won't be triggered again within the next N node
|
|
@@ -1585,6 +1669,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
1585
1669
|
}
|
|
1586
1670
|
}
|
|
1587
1671
|
|
|
1672
|
+
export interface EquationPromptCondition {
|
|
1673
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
1674
|
+
|
|
1675
|
+
operator: '||' | '&&';
|
|
1676
|
+
|
|
1677
|
+
type: 'equation_prompt';
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
1681
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
1682
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
1683
|
+
* timing.
|
|
1684
|
+
*/
|
|
1685
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
export namespace EquationPromptCondition {
|
|
1689
|
+
export interface Equation {
|
|
1690
|
+
/**
|
|
1691
|
+
* Left side of the equation
|
|
1692
|
+
*/
|
|
1693
|
+
left: string;
|
|
1694
|
+
|
|
1695
|
+
operator:
|
|
1696
|
+
| '=='
|
|
1697
|
+
| '!='
|
|
1698
|
+
| '>'
|
|
1699
|
+
| '>='
|
|
1700
|
+
| '<'
|
|
1701
|
+
| '<='
|
|
1702
|
+
| 'contains'
|
|
1703
|
+
| 'not_contains'
|
|
1704
|
+
| 'exists'
|
|
1705
|
+
| 'not_exist';
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Right side of the equation. The right side of the equation not required when
|
|
1709
|
+
* "exists" or "not_exist" are selected.
|
|
1710
|
+
*/
|
|
1711
|
+
right?: string;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
1716
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
1717
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
1718
|
+
* timing.
|
|
1719
|
+
*/
|
|
1720
|
+
export interface PromptCondition {
|
|
1721
|
+
/**
|
|
1722
|
+
* Prompt condition text
|
|
1723
|
+
*/
|
|
1724
|
+
prompt: string;
|
|
1725
|
+
|
|
1726
|
+
type: 'prompt';
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1588
1730
|
/**
|
|
1589
1731
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
1590
1732
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -3182,9 +3324,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
3182
3324
|
export interface GlobalNodeSetting {
|
|
3183
3325
|
/**
|
|
3184
3326
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
3185
|
-
* be empty. Also accepts
|
|
3327
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
3328
|
+
* EquationPromptCondition objects.
|
|
3186
3329
|
*/
|
|
3187
|
-
condition:
|
|
3330
|
+
condition:
|
|
3331
|
+
| string
|
|
3332
|
+
| GlobalNodeSetting.PromptCondition
|
|
3333
|
+
| GlobalNodeSetting.EquationCondition
|
|
3334
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
3188
3335
|
|
|
3189
3336
|
/**
|
|
3190
3337
|
* The same global node won't be triggered again within the next N node
|
|
@@ -3254,6 +3401,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
3254
3401
|
}
|
|
3255
3402
|
}
|
|
3256
3403
|
|
|
3404
|
+
export interface EquationPromptCondition {
|
|
3405
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
3406
|
+
|
|
3407
|
+
operator: '||' | '&&';
|
|
3408
|
+
|
|
3409
|
+
type: 'equation_prompt';
|
|
3410
|
+
|
|
3411
|
+
/**
|
|
3412
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
3413
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
3414
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
3415
|
+
* timing.
|
|
3416
|
+
*/
|
|
3417
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
export namespace EquationPromptCondition {
|
|
3421
|
+
export interface Equation {
|
|
3422
|
+
/**
|
|
3423
|
+
* Left side of the equation
|
|
3424
|
+
*/
|
|
3425
|
+
left: string;
|
|
3426
|
+
|
|
3427
|
+
operator:
|
|
3428
|
+
| '=='
|
|
3429
|
+
| '!='
|
|
3430
|
+
| '>'
|
|
3431
|
+
| '>='
|
|
3432
|
+
| '<'
|
|
3433
|
+
| '<='
|
|
3434
|
+
| 'contains'
|
|
3435
|
+
| 'not_contains'
|
|
3436
|
+
| 'exists'
|
|
3437
|
+
| 'not_exist';
|
|
3438
|
+
|
|
3439
|
+
/**
|
|
3440
|
+
* Right side of the equation. The right side of the equation not required when
|
|
3441
|
+
* "exists" or "not_exist" are selected.
|
|
3442
|
+
*/
|
|
3443
|
+
right?: string;
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
3448
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
3449
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
3450
|
+
* timing.
|
|
3451
|
+
*/
|
|
3452
|
+
export interface PromptCondition {
|
|
3453
|
+
/**
|
|
3454
|
+
* Prompt condition text
|
|
3455
|
+
*/
|
|
3456
|
+
prompt: string;
|
|
3457
|
+
|
|
3458
|
+
type: 'prompt';
|
|
3459
|
+
}
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3257
3462
|
/**
|
|
3258
3463
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
3259
3464
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -3740,9 +3945,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
3740
3945
|
export interface GlobalNodeSetting {
|
|
3741
3946
|
/**
|
|
3742
3947
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
3743
|
-
* be empty. Also accepts
|
|
3948
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
3949
|
+
* EquationPromptCondition objects.
|
|
3744
3950
|
*/
|
|
3745
|
-
condition:
|
|
3951
|
+
condition:
|
|
3952
|
+
| string
|
|
3953
|
+
| GlobalNodeSetting.PromptCondition
|
|
3954
|
+
| GlobalNodeSetting.EquationCondition
|
|
3955
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
3746
3956
|
|
|
3747
3957
|
/**
|
|
3748
3958
|
* The same global node won't be triggered again within the next N node
|
|
@@ -3812,6 +4022,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
3812
4022
|
}
|
|
3813
4023
|
}
|
|
3814
4024
|
|
|
4025
|
+
export interface EquationPromptCondition {
|
|
4026
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
4027
|
+
|
|
4028
|
+
operator: '||' | '&&';
|
|
4029
|
+
|
|
4030
|
+
type: 'equation_prompt';
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
4034
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
4035
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
4036
|
+
* timing.
|
|
4037
|
+
*/
|
|
4038
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
4039
|
+
}
|
|
4040
|
+
|
|
4041
|
+
export namespace EquationPromptCondition {
|
|
4042
|
+
export interface Equation {
|
|
4043
|
+
/**
|
|
4044
|
+
* Left side of the equation
|
|
4045
|
+
*/
|
|
4046
|
+
left: string;
|
|
4047
|
+
|
|
4048
|
+
operator:
|
|
4049
|
+
| '=='
|
|
4050
|
+
| '!='
|
|
4051
|
+
| '>'
|
|
4052
|
+
| '>='
|
|
4053
|
+
| '<'
|
|
4054
|
+
| '<='
|
|
4055
|
+
| 'contains'
|
|
4056
|
+
| 'not_contains'
|
|
4057
|
+
| 'exists'
|
|
4058
|
+
| 'not_exist';
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* Right side of the equation. The right side of the equation not required when
|
|
4062
|
+
* "exists" or "not_exist" are selected.
|
|
4063
|
+
*/
|
|
4064
|
+
right?: string;
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
/**
|
|
4068
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
4069
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
4070
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
4071
|
+
* timing.
|
|
4072
|
+
*/
|
|
4073
|
+
export interface PromptCondition {
|
|
4074
|
+
/**
|
|
4075
|
+
* Prompt condition text
|
|
4076
|
+
*/
|
|
4077
|
+
prompt: string;
|
|
4078
|
+
|
|
4079
|
+
type: 'prompt';
|
|
4080
|
+
}
|
|
4081
|
+
}
|
|
4082
|
+
|
|
3815
4083
|
/**
|
|
3816
4084
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
3817
4085
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -4305,9 +4573,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
4305
4573
|
export interface GlobalNodeSetting {
|
|
4306
4574
|
/**
|
|
4307
4575
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
4308
|
-
* be empty. Also accepts
|
|
4576
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
4577
|
+
* EquationPromptCondition objects.
|
|
4309
4578
|
*/
|
|
4310
|
-
condition:
|
|
4579
|
+
condition:
|
|
4580
|
+
| string
|
|
4581
|
+
| GlobalNodeSetting.PromptCondition
|
|
4582
|
+
| GlobalNodeSetting.EquationCondition
|
|
4583
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
4311
4584
|
|
|
4312
4585
|
/**
|
|
4313
4586
|
* The same global node won't be triggered again within the next N node
|
|
@@ -4377,6 +4650,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
4377
4650
|
}
|
|
4378
4651
|
}
|
|
4379
4652
|
|
|
4653
|
+
export interface EquationPromptCondition {
|
|
4654
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
4655
|
+
|
|
4656
|
+
operator: '||' | '&&';
|
|
4657
|
+
|
|
4658
|
+
type: 'equation_prompt';
|
|
4659
|
+
|
|
4660
|
+
/**
|
|
4661
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
4662
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
4663
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
4664
|
+
* timing.
|
|
4665
|
+
*/
|
|
4666
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
4667
|
+
}
|
|
4668
|
+
|
|
4669
|
+
export namespace EquationPromptCondition {
|
|
4670
|
+
export interface Equation {
|
|
4671
|
+
/**
|
|
4672
|
+
* Left side of the equation
|
|
4673
|
+
*/
|
|
4674
|
+
left: string;
|
|
4675
|
+
|
|
4676
|
+
operator:
|
|
4677
|
+
| '=='
|
|
4678
|
+
| '!='
|
|
4679
|
+
| '>'
|
|
4680
|
+
| '>='
|
|
4681
|
+
| '<'
|
|
4682
|
+
| '<='
|
|
4683
|
+
| 'contains'
|
|
4684
|
+
| 'not_contains'
|
|
4685
|
+
| 'exists'
|
|
4686
|
+
| 'not_exist';
|
|
4687
|
+
|
|
4688
|
+
/**
|
|
4689
|
+
* Right side of the equation. The right side of the equation not required when
|
|
4690
|
+
* "exists" or "not_exist" are selected.
|
|
4691
|
+
*/
|
|
4692
|
+
right?: string;
|
|
4693
|
+
}
|
|
4694
|
+
|
|
4695
|
+
/**
|
|
4696
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
4697
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
4698
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
4699
|
+
* timing.
|
|
4700
|
+
*/
|
|
4701
|
+
export interface PromptCondition {
|
|
4702
|
+
/**
|
|
4703
|
+
* Prompt condition text
|
|
4704
|
+
*/
|
|
4705
|
+
prompt: string;
|
|
4706
|
+
|
|
4707
|
+
type: 'prompt';
|
|
4708
|
+
}
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4380
4711
|
/**
|
|
4381
4712
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
4382
4713
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -5048,9 +5379,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
5048
5379
|
export interface GlobalNodeSetting {
|
|
5049
5380
|
/**
|
|
5050
5381
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
5051
|
-
* be empty. Also accepts
|
|
5382
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
5383
|
+
* EquationPromptCondition objects.
|
|
5052
5384
|
*/
|
|
5053
|
-
condition:
|
|
5385
|
+
condition:
|
|
5386
|
+
| string
|
|
5387
|
+
| GlobalNodeSetting.PromptCondition
|
|
5388
|
+
| GlobalNodeSetting.EquationCondition
|
|
5389
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
5054
5390
|
|
|
5055
5391
|
/**
|
|
5056
5392
|
* The same global node won't be triggered again within the next N node
|
|
@@ -5120,35 +5456,93 @@ export namespace ConversationFlowComponentResponse {
|
|
|
5120
5456
|
}
|
|
5121
5457
|
}
|
|
5122
5458
|
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
* transitions when its condition matches. Equation conditions compare dynamic
|
|
5126
|
-
* variables and are checked in array order; the first match wins. If no equation
|
|
5127
|
-
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
5128
|
-
* selects a matching transition, if any.
|
|
5129
|
-
*/
|
|
5130
|
-
export interface GoBackCondition {
|
|
5131
|
-
/**
|
|
5132
|
-
* Unique identifier for the edge
|
|
5133
|
-
*/
|
|
5134
|
-
id: string;
|
|
5459
|
+
export interface EquationPromptCondition {
|
|
5460
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
5135
5461
|
|
|
5136
|
-
|
|
5462
|
+
operator: '||' | '&&';
|
|
5463
|
+
|
|
5464
|
+
type: 'equation_prompt';
|
|
5137
5465
|
|
|
5138
5466
|
/**
|
|
5139
|
-
*
|
|
5467
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
5468
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
5469
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
5470
|
+
* timing.
|
|
5140
5471
|
*/
|
|
5141
|
-
|
|
5472
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
5142
5473
|
}
|
|
5143
5474
|
|
|
5144
|
-
export namespace
|
|
5145
|
-
export interface
|
|
5475
|
+
export namespace EquationPromptCondition {
|
|
5476
|
+
export interface Equation {
|
|
5146
5477
|
/**
|
|
5147
|
-
*
|
|
5478
|
+
* Left side of the equation
|
|
5148
5479
|
*/
|
|
5149
|
-
|
|
5480
|
+
left: string;
|
|
5150
5481
|
|
|
5151
|
-
|
|
5482
|
+
operator:
|
|
5483
|
+
| '=='
|
|
5484
|
+
| '!='
|
|
5485
|
+
| '>'
|
|
5486
|
+
| '>='
|
|
5487
|
+
| '<'
|
|
5488
|
+
| '<='
|
|
5489
|
+
| 'contains'
|
|
5490
|
+
| 'not_contains'
|
|
5491
|
+
| 'exists'
|
|
5492
|
+
| 'not_exist';
|
|
5493
|
+
|
|
5494
|
+
/**
|
|
5495
|
+
* Right side of the equation. The right side of the equation not required when
|
|
5496
|
+
* "exists" or "not_exist" are selected.
|
|
5497
|
+
*/
|
|
5498
|
+
right?: string;
|
|
5499
|
+
}
|
|
5500
|
+
|
|
5501
|
+
/**
|
|
5502
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
5503
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
5504
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
5505
|
+
* timing.
|
|
5506
|
+
*/
|
|
5507
|
+
export interface PromptCondition {
|
|
5508
|
+
/**
|
|
5509
|
+
* Prompt condition text
|
|
5510
|
+
*/
|
|
5511
|
+
prompt: string;
|
|
5512
|
+
|
|
5513
|
+
type: 'prompt';
|
|
5514
|
+
}
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5517
|
+
/**
|
|
5518
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
5519
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
5520
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
5521
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
5522
|
+
* selects a matching transition, if any.
|
|
5523
|
+
*/
|
|
5524
|
+
export interface GoBackCondition {
|
|
5525
|
+
/**
|
|
5526
|
+
* Unique identifier for the edge
|
|
5527
|
+
*/
|
|
5528
|
+
id: string;
|
|
5529
|
+
|
|
5530
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
5531
|
+
|
|
5532
|
+
/**
|
|
5533
|
+
* ID of the destination node
|
|
5534
|
+
*/
|
|
5535
|
+
destination_node_id?: string;
|
|
5536
|
+
}
|
|
5537
|
+
|
|
5538
|
+
export namespace GoBackCondition {
|
|
5539
|
+
export interface PromptCondition {
|
|
5540
|
+
/**
|
|
5541
|
+
* Prompt condition text
|
|
5542
|
+
*/
|
|
5543
|
+
prompt: string;
|
|
5544
|
+
|
|
5545
|
+
type: 'prompt';
|
|
5152
5546
|
}
|
|
5153
5547
|
|
|
5154
5548
|
export interface EquationCondition {
|
|
@@ -5598,9 +5992,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
5598
5992
|
export interface GlobalNodeSetting {
|
|
5599
5993
|
/**
|
|
5600
5994
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
5601
|
-
* be empty. Also accepts
|
|
5995
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
5996
|
+
* EquationPromptCondition objects.
|
|
5602
5997
|
*/
|
|
5603
|
-
condition:
|
|
5998
|
+
condition:
|
|
5999
|
+
| string
|
|
6000
|
+
| GlobalNodeSetting.PromptCondition
|
|
6001
|
+
| GlobalNodeSetting.EquationCondition
|
|
6002
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
5604
6003
|
|
|
5605
6004
|
/**
|
|
5606
6005
|
* The same global node won't be triggered again within the next N node
|
|
@@ -5670,6 +6069,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
5670
6069
|
}
|
|
5671
6070
|
}
|
|
5672
6071
|
|
|
6072
|
+
export interface EquationPromptCondition {
|
|
6073
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
6074
|
+
|
|
6075
|
+
operator: '||' | '&&';
|
|
6076
|
+
|
|
6077
|
+
type: 'equation_prompt';
|
|
6078
|
+
|
|
6079
|
+
/**
|
|
6080
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6081
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6082
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6083
|
+
* timing.
|
|
6084
|
+
*/
|
|
6085
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
6086
|
+
}
|
|
6087
|
+
|
|
6088
|
+
export namespace EquationPromptCondition {
|
|
6089
|
+
export interface Equation {
|
|
6090
|
+
/**
|
|
6091
|
+
* Left side of the equation
|
|
6092
|
+
*/
|
|
6093
|
+
left: string;
|
|
6094
|
+
|
|
6095
|
+
operator:
|
|
6096
|
+
| '=='
|
|
6097
|
+
| '!='
|
|
6098
|
+
| '>'
|
|
6099
|
+
| '>='
|
|
6100
|
+
| '<'
|
|
6101
|
+
| '<='
|
|
6102
|
+
| 'contains'
|
|
6103
|
+
| 'not_contains'
|
|
6104
|
+
| 'exists'
|
|
6105
|
+
| 'not_exist';
|
|
6106
|
+
|
|
6107
|
+
/**
|
|
6108
|
+
* Right side of the equation. The right side of the equation not required when
|
|
6109
|
+
* "exists" or "not_exist" are selected.
|
|
6110
|
+
*/
|
|
6111
|
+
right?: string;
|
|
6112
|
+
}
|
|
6113
|
+
|
|
6114
|
+
/**
|
|
6115
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6116
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6117
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6118
|
+
* timing.
|
|
6119
|
+
*/
|
|
6120
|
+
export interface PromptCondition {
|
|
6121
|
+
/**
|
|
6122
|
+
* Prompt condition text
|
|
6123
|
+
*/
|
|
6124
|
+
prompt: string;
|
|
6125
|
+
|
|
6126
|
+
type: 'prompt';
|
|
6127
|
+
}
|
|
6128
|
+
}
|
|
6129
|
+
|
|
5673
6130
|
/**
|
|
5674
6131
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
5675
6132
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -6105,9 +6562,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
6105
6562
|
export interface GlobalNodeSetting {
|
|
6106
6563
|
/**
|
|
6107
6564
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
6108
|
-
* be empty. Also accepts
|
|
6565
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
6566
|
+
* EquationPromptCondition objects.
|
|
6109
6567
|
*/
|
|
6110
|
-
condition:
|
|
6568
|
+
condition:
|
|
6569
|
+
| string
|
|
6570
|
+
| GlobalNodeSetting.PromptCondition
|
|
6571
|
+
| GlobalNodeSetting.EquationCondition
|
|
6572
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
6111
6573
|
|
|
6112
6574
|
/**
|
|
6113
6575
|
* The same global node won't be triggered again within the next N node
|
|
@@ -6177,6 +6639,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
6177
6639
|
}
|
|
6178
6640
|
}
|
|
6179
6641
|
|
|
6642
|
+
export interface EquationPromptCondition {
|
|
6643
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
6644
|
+
|
|
6645
|
+
operator: '||' | '&&';
|
|
6646
|
+
|
|
6647
|
+
type: 'equation_prompt';
|
|
6648
|
+
|
|
6649
|
+
/**
|
|
6650
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6651
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6652
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6653
|
+
* timing.
|
|
6654
|
+
*/
|
|
6655
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
6656
|
+
}
|
|
6657
|
+
|
|
6658
|
+
export namespace EquationPromptCondition {
|
|
6659
|
+
export interface Equation {
|
|
6660
|
+
/**
|
|
6661
|
+
* Left side of the equation
|
|
6662
|
+
*/
|
|
6663
|
+
left: string;
|
|
6664
|
+
|
|
6665
|
+
operator:
|
|
6666
|
+
| '=='
|
|
6667
|
+
| '!='
|
|
6668
|
+
| '>'
|
|
6669
|
+
| '>='
|
|
6670
|
+
| '<'
|
|
6671
|
+
| '<='
|
|
6672
|
+
| 'contains'
|
|
6673
|
+
| 'not_contains'
|
|
6674
|
+
| 'exists'
|
|
6675
|
+
| 'not_exist';
|
|
6676
|
+
|
|
6677
|
+
/**
|
|
6678
|
+
* Right side of the equation. The right side of the equation not required when
|
|
6679
|
+
* "exists" or "not_exist" are selected.
|
|
6680
|
+
*/
|
|
6681
|
+
right?: string;
|
|
6682
|
+
}
|
|
6683
|
+
|
|
6684
|
+
/**
|
|
6685
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6686
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6687
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6688
|
+
* timing.
|
|
6689
|
+
*/
|
|
6690
|
+
export interface PromptCondition {
|
|
6691
|
+
/**
|
|
6692
|
+
* Prompt condition text
|
|
6693
|
+
*/
|
|
6694
|
+
prompt: string;
|
|
6695
|
+
|
|
6696
|
+
type: 'prompt';
|
|
6697
|
+
}
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6180
6700
|
/**
|
|
6181
6701
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
6182
6702
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -6622,9 +7142,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
6622
7142
|
export interface GlobalNodeSetting {
|
|
6623
7143
|
/**
|
|
6624
7144
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
6625
|
-
* be empty. Also accepts
|
|
7145
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
7146
|
+
* EquationPromptCondition objects.
|
|
6626
7147
|
*/
|
|
6627
|
-
condition:
|
|
7148
|
+
condition:
|
|
7149
|
+
| string
|
|
7150
|
+
| GlobalNodeSetting.PromptCondition
|
|
7151
|
+
| GlobalNodeSetting.EquationCondition
|
|
7152
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
6628
7153
|
|
|
6629
7154
|
/**
|
|
6630
7155
|
* The same global node won't be triggered again within the next N node
|
|
@@ -6694,6 +7219,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
6694
7219
|
}
|
|
6695
7220
|
}
|
|
6696
7221
|
|
|
7222
|
+
export interface EquationPromptCondition {
|
|
7223
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
7224
|
+
|
|
7225
|
+
operator: '||' | '&&';
|
|
7226
|
+
|
|
7227
|
+
type: 'equation_prompt';
|
|
7228
|
+
|
|
7229
|
+
/**
|
|
7230
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
7231
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
7232
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
7233
|
+
* timing.
|
|
7234
|
+
*/
|
|
7235
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
7236
|
+
}
|
|
7237
|
+
|
|
7238
|
+
export namespace EquationPromptCondition {
|
|
7239
|
+
export interface Equation {
|
|
7240
|
+
/**
|
|
7241
|
+
* Left side of the equation
|
|
7242
|
+
*/
|
|
7243
|
+
left: string;
|
|
7244
|
+
|
|
7245
|
+
operator:
|
|
7246
|
+
| '=='
|
|
7247
|
+
| '!='
|
|
7248
|
+
| '>'
|
|
7249
|
+
| '>='
|
|
7250
|
+
| '<'
|
|
7251
|
+
| '<='
|
|
7252
|
+
| 'contains'
|
|
7253
|
+
| 'not_contains'
|
|
7254
|
+
| 'exists'
|
|
7255
|
+
| 'not_exist';
|
|
7256
|
+
|
|
7257
|
+
/**
|
|
7258
|
+
* Right side of the equation. The right side of the equation not required when
|
|
7259
|
+
* "exists" or "not_exist" are selected.
|
|
7260
|
+
*/
|
|
7261
|
+
right?: string;
|
|
7262
|
+
}
|
|
7263
|
+
|
|
7264
|
+
/**
|
|
7265
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
7266
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
7267
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
7268
|
+
* timing.
|
|
7269
|
+
*/
|
|
7270
|
+
export interface PromptCondition {
|
|
7271
|
+
/**
|
|
7272
|
+
* Prompt condition text
|
|
7273
|
+
*/
|
|
7274
|
+
prompt: string;
|
|
7275
|
+
|
|
7276
|
+
type: 'prompt';
|
|
7277
|
+
}
|
|
7278
|
+
}
|
|
7279
|
+
|
|
6697
7280
|
/**
|
|
6698
7281
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
6699
7282
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -7271,9 +7854,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
7271
7854
|
export interface GlobalNodeSetting {
|
|
7272
7855
|
/**
|
|
7273
7856
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
7274
|
-
* be empty. Also accepts
|
|
7857
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
7858
|
+
* EquationPromptCondition objects.
|
|
7275
7859
|
*/
|
|
7276
|
-
condition:
|
|
7860
|
+
condition:
|
|
7861
|
+
| string
|
|
7862
|
+
| GlobalNodeSetting.PromptCondition
|
|
7863
|
+
| GlobalNodeSetting.EquationCondition
|
|
7864
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
7277
7865
|
|
|
7278
7866
|
/**
|
|
7279
7867
|
* The same global node won't be triggered again within the next N node
|
|
@@ -7343,6 +7931,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
7343
7931
|
}
|
|
7344
7932
|
}
|
|
7345
7933
|
|
|
7934
|
+
export interface EquationPromptCondition {
|
|
7935
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
7936
|
+
|
|
7937
|
+
operator: '||' | '&&';
|
|
7938
|
+
|
|
7939
|
+
type: 'equation_prompt';
|
|
7940
|
+
|
|
7941
|
+
/**
|
|
7942
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
7943
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
7944
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
7945
|
+
* timing.
|
|
7946
|
+
*/
|
|
7947
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
7948
|
+
}
|
|
7949
|
+
|
|
7950
|
+
export namespace EquationPromptCondition {
|
|
7951
|
+
export interface Equation {
|
|
7952
|
+
/**
|
|
7953
|
+
* Left side of the equation
|
|
7954
|
+
*/
|
|
7955
|
+
left: string;
|
|
7956
|
+
|
|
7957
|
+
operator:
|
|
7958
|
+
| '=='
|
|
7959
|
+
| '!='
|
|
7960
|
+
| '>'
|
|
7961
|
+
| '>='
|
|
7962
|
+
| '<'
|
|
7963
|
+
| '<='
|
|
7964
|
+
| 'contains'
|
|
7965
|
+
| 'not_contains'
|
|
7966
|
+
| 'exists'
|
|
7967
|
+
| 'not_exist';
|
|
7968
|
+
|
|
7969
|
+
/**
|
|
7970
|
+
* Right side of the equation. The right side of the equation not required when
|
|
7971
|
+
* "exists" or "not_exist" are selected.
|
|
7972
|
+
*/
|
|
7973
|
+
right?: string;
|
|
7974
|
+
}
|
|
7975
|
+
|
|
7976
|
+
/**
|
|
7977
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
7978
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
7979
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
7980
|
+
* timing.
|
|
7981
|
+
*/
|
|
7982
|
+
export interface PromptCondition {
|
|
7983
|
+
/**
|
|
7984
|
+
* Prompt condition text
|
|
7985
|
+
*/
|
|
7986
|
+
prompt: string;
|
|
7987
|
+
|
|
7988
|
+
type: 'prompt';
|
|
7989
|
+
}
|
|
7990
|
+
}
|
|
7991
|
+
|
|
7346
7992
|
/**
|
|
7347
7993
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
7348
7994
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -7707,9 +8353,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
7707
8353
|
export interface GlobalNodeSetting {
|
|
7708
8354
|
/**
|
|
7709
8355
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
7710
|
-
* be empty. Also accepts
|
|
8356
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
8357
|
+
* EquationPromptCondition objects.
|
|
7711
8358
|
*/
|
|
7712
|
-
condition:
|
|
8359
|
+
condition:
|
|
8360
|
+
| string
|
|
8361
|
+
| GlobalNodeSetting.PromptCondition
|
|
8362
|
+
| GlobalNodeSetting.EquationCondition
|
|
8363
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
7713
8364
|
|
|
7714
8365
|
/**
|
|
7715
8366
|
* The same global node won't be triggered again within the next N node
|
|
@@ -7779,23 +8430,81 @@ export namespace ConversationFlowComponentResponse {
|
|
|
7779
8430
|
}
|
|
7780
8431
|
}
|
|
7781
8432
|
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
* transitions when its condition matches. Equation conditions compare dynamic
|
|
7785
|
-
* variables and are checked in array order; the first match wins. If no equation
|
|
7786
|
-
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
7787
|
-
* selects a matching transition, if any.
|
|
7788
|
-
*/
|
|
7789
|
-
export interface GoBackCondition {
|
|
7790
|
-
/**
|
|
7791
|
-
* Unique identifier for the edge
|
|
7792
|
-
*/
|
|
7793
|
-
id: string;
|
|
8433
|
+
export interface EquationPromptCondition {
|
|
8434
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
7794
8435
|
|
|
7795
|
-
|
|
8436
|
+
operator: '||' | '&&';
|
|
8437
|
+
|
|
8438
|
+
type: 'equation_prompt';
|
|
7796
8439
|
|
|
7797
8440
|
/**
|
|
7798
|
-
*
|
|
8441
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
8442
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
8443
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
8444
|
+
* timing.
|
|
8445
|
+
*/
|
|
8446
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
8447
|
+
}
|
|
8448
|
+
|
|
8449
|
+
export namespace EquationPromptCondition {
|
|
8450
|
+
export interface Equation {
|
|
8451
|
+
/**
|
|
8452
|
+
* Left side of the equation
|
|
8453
|
+
*/
|
|
8454
|
+
left: string;
|
|
8455
|
+
|
|
8456
|
+
operator:
|
|
8457
|
+
| '=='
|
|
8458
|
+
| '!='
|
|
8459
|
+
| '>'
|
|
8460
|
+
| '>='
|
|
8461
|
+
| '<'
|
|
8462
|
+
| '<='
|
|
8463
|
+
| 'contains'
|
|
8464
|
+
| 'not_contains'
|
|
8465
|
+
| 'exists'
|
|
8466
|
+
| 'not_exist';
|
|
8467
|
+
|
|
8468
|
+
/**
|
|
8469
|
+
* Right side of the equation. The right side of the equation not required when
|
|
8470
|
+
* "exists" or "not_exist" are selected.
|
|
8471
|
+
*/
|
|
8472
|
+
right?: string;
|
|
8473
|
+
}
|
|
8474
|
+
|
|
8475
|
+
/**
|
|
8476
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
8477
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
8478
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
8479
|
+
* timing.
|
|
8480
|
+
*/
|
|
8481
|
+
export interface PromptCondition {
|
|
8482
|
+
/**
|
|
8483
|
+
* Prompt condition text
|
|
8484
|
+
*/
|
|
8485
|
+
prompt: string;
|
|
8486
|
+
|
|
8487
|
+
type: 'prompt';
|
|
8488
|
+
}
|
|
8489
|
+
}
|
|
8490
|
+
|
|
8491
|
+
/**
|
|
8492
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
8493
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
8494
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
8495
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
8496
|
+
* selects a matching transition, if any.
|
|
8497
|
+
*/
|
|
8498
|
+
export interface GoBackCondition {
|
|
8499
|
+
/**
|
|
8500
|
+
* Unique identifier for the edge
|
|
8501
|
+
*/
|
|
8502
|
+
id: string;
|
|
8503
|
+
|
|
8504
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
8505
|
+
|
|
8506
|
+
/**
|
|
8507
|
+
* ID of the destination node
|
|
7799
8508
|
*/
|
|
7800
8509
|
destination_node_id?: string;
|
|
7801
8510
|
}
|
|
@@ -8274,9 +8983,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
8274
8983
|
export interface GlobalNodeSetting {
|
|
8275
8984
|
/**
|
|
8276
8985
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
8277
|
-
* be empty. Also accepts
|
|
8986
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
8987
|
+
* EquationPromptCondition objects.
|
|
8278
8988
|
*/
|
|
8279
|
-
condition:
|
|
8989
|
+
condition:
|
|
8990
|
+
| string
|
|
8991
|
+
| GlobalNodeSetting.PromptCondition
|
|
8992
|
+
| GlobalNodeSetting.EquationCondition
|
|
8993
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
8280
8994
|
|
|
8281
8995
|
/**
|
|
8282
8996
|
* The same global node won't be triggered again within the next N node
|
|
@@ -8346,6 +9060,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
8346
9060
|
}
|
|
8347
9061
|
}
|
|
8348
9062
|
|
|
9063
|
+
export interface EquationPromptCondition {
|
|
9064
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
9065
|
+
|
|
9066
|
+
operator: '||' | '&&';
|
|
9067
|
+
|
|
9068
|
+
type: 'equation_prompt';
|
|
9069
|
+
|
|
9070
|
+
/**
|
|
9071
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
9072
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
9073
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
9074
|
+
* timing.
|
|
9075
|
+
*/
|
|
9076
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
9077
|
+
}
|
|
9078
|
+
|
|
9079
|
+
export namespace EquationPromptCondition {
|
|
9080
|
+
export interface Equation {
|
|
9081
|
+
/**
|
|
9082
|
+
* Left side of the equation
|
|
9083
|
+
*/
|
|
9084
|
+
left: string;
|
|
9085
|
+
|
|
9086
|
+
operator:
|
|
9087
|
+
| '=='
|
|
9088
|
+
| '!='
|
|
9089
|
+
| '>'
|
|
9090
|
+
| '>='
|
|
9091
|
+
| '<'
|
|
9092
|
+
| '<='
|
|
9093
|
+
| 'contains'
|
|
9094
|
+
| 'not_contains'
|
|
9095
|
+
| 'exists'
|
|
9096
|
+
| 'not_exist';
|
|
9097
|
+
|
|
9098
|
+
/**
|
|
9099
|
+
* Right side of the equation. The right side of the equation not required when
|
|
9100
|
+
* "exists" or "not_exist" are selected.
|
|
9101
|
+
*/
|
|
9102
|
+
right?: string;
|
|
9103
|
+
}
|
|
9104
|
+
|
|
9105
|
+
/**
|
|
9106
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
9107
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
9108
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
9109
|
+
* timing.
|
|
9110
|
+
*/
|
|
9111
|
+
export interface PromptCondition {
|
|
9112
|
+
/**
|
|
9113
|
+
* Prompt condition text
|
|
9114
|
+
*/
|
|
9115
|
+
prompt: string;
|
|
9116
|
+
|
|
9117
|
+
type: 'prompt';
|
|
9118
|
+
}
|
|
9119
|
+
}
|
|
9120
|
+
|
|
8349
9121
|
/**
|
|
8350
9122
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
8351
9123
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -8815,9 +9587,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
8815
9587
|
export interface GlobalNodeSetting {
|
|
8816
9588
|
/**
|
|
8817
9589
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
8818
|
-
* be empty. Also accepts
|
|
9590
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
9591
|
+
* EquationPromptCondition objects.
|
|
8819
9592
|
*/
|
|
8820
|
-
condition:
|
|
9593
|
+
condition:
|
|
9594
|
+
| string
|
|
9595
|
+
| GlobalNodeSetting.PromptCondition
|
|
9596
|
+
| GlobalNodeSetting.EquationCondition
|
|
9597
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
8821
9598
|
|
|
8822
9599
|
/**
|
|
8823
9600
|
* The same global node won't be triggered again within the next N node
|
|
@@ -8887,6 +9664,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
8887
9664
|
}
|
|
8888
9665
|
}
|
|
8889
9666
|
|
|
9667
|
+
export interface EquationPromptCondition {
|
|
9668
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
9669
|
+
|
|
9670
|
+
operator: '||' | '&&';
|
|
9671
|
+
|
|
9672
|
+
type: 'equation_prompt';
|
|
9673
|
+
|
|
9674
|
+
/**
|
|
9675
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
9676
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
9677
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
9678
|
+
* timing.
|
|
9679
|
+
*/
|
|
9680
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
9681
|
+
}
|
|
9682
|
+
|
|
9683
|
+
export namespace EquationPromptCondition {
|
|
9684
|
+
export interface Equation {
|
|
9685
|
+
/**
|
|
9686
|
+
* Left side of the equation
|
|
9687
|
+
*/
|
|
9688
|
+
left: string;
|
|
9689
|
+
|
|
9690
|
+
operator:
|
|
9691
|
+
| '=='
|
|
9692
|
+
| '!='
|
|
9693
|
+
| '>'
|
|
9694
|
+
| '>='
|
|
9695
|
+
| '<'
|
|
9696
|
+
| '<='
|
|
9697
|
+
| 'contains'
|
|
9698
|
+
| 'not_contains'
|
|
9699
|
+
| 'exists'
|
|
9700
|
+
| 'not_exist';
|
|
9701
|
+
|
|
9702
|
+
/**
|
|
9703
|
+
* Right side of the equation. The right side of the equation not required when
|
|
9704
|
+
* "exists" or "not_exist" are selected.
|
|
9705
|
+
*/
|
|
9706
|
+
right?: string;
|
|
9707
|
+
}
|
|
9708
|
+
|
|
9709
|
+
/**
|
|
9710
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
9711
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
9712
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
9713
|
+
* timing.
|
|
9714
|
+
*/
|
|
9715
|
+
export interface PromptCondition {
|
|
9716
|
+
/**
|
|
9717
|
+
* Prompt condition text
|
|
9718
|
+
*/
|
|
9719
|
+
prompt: string;
|
|
9720
|
+
|
|
9721
|
+
type: 'prompt';
|
|
9722
|
+
}
|
|
9723
|
+
}
|
|
9724
|
+
|
|
8890
9725
|
/**
|
|
8891
9726
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
8892
9727
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -9080,9 +9915,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
9080
9915
|
export interface GlobalNodeSetting {
|
|
9081
9916
|
/**
|
|
9082
9917
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
9083
|
-
* be empty. Also accepts
|
|
9918
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
9919
|
+
* EquationPromptCondition objects.
|
|
9084
9920
|
*/
|
|
9085
|
-
condition:
|
|
9921
|
+
condition:
|
|
9922
|
+
| string
|
|
9923
|
+
| GlobalNodeSetting.PromptCondition
|
|
9924
|
+
| GlobalNodeSetting.EquationCondition
|
|
9925
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
9086
9926
|
|
|
9087
9927
|
/**
|
|
9088
9928
|
* The same global node won't be triggered again within the next N node
|
|
@@ -9152,6 +9992,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
9152
9992
|
}
|
|
9153
9993
|
}
|
|
9154
9994
|
|
|
9995
|
+
export interface EquationPromptCondition {
|
|
9996
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
9997
|
+
|
|
9998
|
+
operator: '||' | '&&';
|
|
9999
|
+
|
|
10000
|
+
type: 'equation_prompt';
|
|
10001
|
+
|
|
10002
|
+
/**
|
|
10003
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10004
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10005
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10006
|
+
* timing.
|
|
10007
|
+
*/
|
|
10008
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
10009
|
+
}
|
|
10010
|
+
|
|
10011
|
+
export namespace EquationPromptCondition {
|
|
10012
|
+
export interface Equation {
|
|
10013
|
+
/**
|
|
10014
|
+
* Left side of the equation
|
|
10015
|
+
*/
|
|
10016
|
+
left: string;
|
|
10017
|
+
|
|
10018
|
+
operator:
|
|
10019
|
+
| '=='
|
|
10020
|
+
| '!='
|
|
10021
|
+
| '>'
|
|
10022
|
+
| '>='
|
|
10023
|
+
| '<'
|
|
10024
|
+
| '<='
|
|
10025
|
+
| 'contains'
|
|
10026
|
+
| 'not_contains'
|
|
10027
|
+
| 'exists'
|
|
10028
|
+
| 'not_exist';
|
|
10029
|
+
|
|
10030
|
+
/**
|
|
10031
|
+
* Right side of the equation. The right side of the equation not required when
|
|
10032
|
+
* "exists" or "not_exist" are selected.
|
|
10033
|
+
*/
|
|
10034
|
+
right?: string;
|
|
10035
|
+
}
|
|
10036
|
+
|
|
10037
|
+
/**
|
|
10038
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10039
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10040
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10041
|
+
* timing.
|
|
10042
|
+
*/
|
|
10043
|
+
export interface PromptCondition {
|
|
10044
|
+
/**
|
|
10045
|
+
* Prompt condition text
|
|
10046
|
+
*/
|
|
10047
|
+
prompt: string;
|
|
10048
|
+
|
|
10049
|
+
type: 'prompt';
|
|
10050
|
+
}
|
|
10051
|
+
}
|
|
10052
|
+
|
|
9155
10053
|
/**
|
|
9156
10054
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
9157
10055
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -9418,9 +10316,14 @@ export namespace ConversationFlowComponentResponse {
|
|
|
9418
10316
|
export interface GlobalNodeSetting {
|
|
9419
10317
|
/**
|
|
9420
10318
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
9421
|
-
* be empty. Also accepts
|
|
10319
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
10320
|
+
* EquationPromptCondition objects.
|
|
9422
10321
|
*/
|
|
9423
|
-
condition:
|
|
10322
|
+
condition:
|
|
10323
|
+
| string
|
|
10324
|
+
| GlobalNodeSetting.PromptCondition
|
|
10325
|
+
| GlobalNodeSetting.EquationCondition
|
|
10326
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
9424
10327
|
|
|
9425
10328
|
/**
|
|
9426
10329
|
* The same global node won't be triggered again within the next N node
|
|
@@ -9490,6 +10393,64 @@ export namespace ConversationFlowComponentResponse {
|
|
|
9490
10393
|
}
|
|
9491
10394
|
}
|
|
9492
10395
|
|
|
10396
|
+
export interface EquationPromptCondition {
|
|
10397
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
10398
|
+
|
|
10399
|
+
operator: '||' | '&&';
|
|
10400
|
+
|
|
10401
|
+
type: 'equation_prompt';
|
|
10402
|
+
|
|
10403
|
+
/**
|
|
10404
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10405
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10406
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10407
|
+
* timing.
|
|
10408
|
+
*/
|
|
10409
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
10410
|
+
}
|
|
10411
|
+
|
|
10412
|
+
export namespace EquationPromptCondition {
|
|
10413
|
+
export interface Equation {
|
|
10414
|
+
/**
|
|
10415
|
+
* Left side of the equation
|
|
10416
|
+
*/
|
|
10417
|
+
left: string;
|
|
10418
|
+
|
|
10419
|
+
operator:
|
|
10420
|
+
| '=='
|
|
10421
|
+
| '!='
|
|
10422
|
+
| '>'
|
|
10423
|
+
| '>='
|
|
10424
|
+
| '<'
|
|
10425
|
+
| '<='
|
|
10426
|
+
| 'contains'
|
|
10427
|
+
| 'not_contains'
|
|
10428
|
+
| 'exists'
|
|
10429
|
+
| 'not_exist';
|
|
10430
|
+
|
|
10431
|
+
/**
|
|
10432
|
+
* Right side of the equation. The right side of the equation not required when
|
|
10433
|
+
* "exists" or "not_exist" are selected.
|
|
10434
|
+
*/
|
|
10435
|
+
right?: string;
|
|
10436
|
+
}
|
|
10437
|
+
|
|
10438
|
+
/**
|
|
10439
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10440
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10441
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10442
|
+
* timing.
|
|
10443
|
+
*/
|
|
10444
|
+
export interface PromptCondition {
|
|
10445
|
+
/**
|
|
10446
|
+
* Prompt condition text
|
|
10447
|
+
*/
|
|
10448
|
+
prompt: string;
|
|
10449
|
+
|
|
10450
|
+
type: 'prompt';
|
|
10451
|
+
}
|
|
10452
|
+
}
|
|
10453
|
+
|
|
9493
10454
|
/**
|
|
9494
10455
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
9495
10456
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -10196,6 +11157,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
10196
11157
|
*/
|
|
10197
11158
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
10198
11159
|
|
|
11160
|
+
/**
|
|
11161
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
11162
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
11163
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
11164
|
+
* is entered.
|
|
11165
|
+
*/
|
|
11166
|
+
boosted_keywords?: Array<string> | null;
|
|
11167
|
+
|
|
10199
11168
|
/**
|
|
10200
11169
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
10201
11170
|
*/
|
|
@@ -10648,9 +11617,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
10648
11617
|
export interface GlobalNodeSetting {
|
|
10649
11618
|
/**
|
|
10650
11619
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
10651
|
-
* be empty. Also accepts
|
|
11620
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
11621
|
+
* EquationPromptCondition objects.
|
|
10652
11622
|
*/
|
|
10653
|
-
condition:
|
|
11623
|
+
condition:
|
|
11624
|
+
| string
|
|
11625
|
+
| GlobalNodeSetting.PromptCondition
|
|
11626
|
+
| GlobalNodeSetting.EquationCondition
|
|
11627
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
10654
11628
|
|
|
10655
11629
|
/**
|
|
10656
11630
|
* The same global node won't be triggered again within the next N node
|
|
@@ -10720,23 +11694,81 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
10720
11694
|
}
|
|
10721
11695
|
}
|
|
10722
11696
|
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
* transitions when its condition matches. Equation conditions compare dynamic
|
|
10726
|
-
* variables and are checked in array order; the first match wins. If no equation
|
|
10727
|
-
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
10728
|
-
* selects a matching transition, if any.
|
|
10729
|
-
*/
|
|
10730
|
-
export interface GoBackCondition {
|
|
10731
|
-
/**
|
|
10732
|
-
* Unique identifier for the edge
|
|
10733
|
-
*/
|
|
10734
|
-
id: string;
|
|
11697
|
+
export interface EquationPromptCondition {
|
|
11698
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
10735
11699
|
|
|
10736
|
-
|
|
11700
|
+
operator: '||' | '&&';
|
|
11701
|
+
|
|
11702
|
+
type: 'equation_prompt';
|
|
10737
11703
|
|
|
10738
11704
|
/**
|
|
10739
|
-
*
|
|
11705
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
11706
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
11707
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
11708
|
+
* timing.
|
|
11709
|
+
*/
|
|
11710
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
11711
|
+
}
|
|
11712
|
+
|
|
11713
|
+
export namespace EquationPromptCondition {
|
|
11714
|
+
export interface Equation {
|
|
11715
|
+
/**
|
|
11716
|
+
* Left side of the equation
|
|
11717
|
+
*/
|
|
11718
|
+
left: string;
|
|
11719
|
+
|
|
11720
|
+
operator:
|
|
11721
|
+
| '=='
|
|
11722
|
+
| '!='
|
|
11723
|
+
| '>'
|
|
11724
|
+
| '>='
|
|
11725
|
+
| '<'
|
|
11726
|
+
| '<='
|
|
11727
|
+
| 'contains'
|
|
11728
|
+
| 'not_contains'
|
|
11729
|
+
| 'exists'
|
|
11730
|
+
| 'not_exist';
|
|
11731
|
+
|
|
11732
|
+
/**
|
|
11733
|
+
* Right side of the equation. The right side of the equation not required when
|
|
11734
|
+
* "exists" or "not_exist" are selected.
|
|
11735
|
+
*/
|
|
11736
|
+
right?: string;
|
|
11737
|
+
}
|
|
11738
|
+
|
|
11739
|
+
/**
|
|
11740
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
11741
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
11742
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
11743
|
+
* timing.
|
|
11744
|
+
*/
|
|
11745
|
+
export interface PromptCondition {
|
|
11746
|
+
/**
|
|
11747
|
+
* Prompt condition text
|
|
11748
|
+
*/
|
|
11749
|
+
prompt: string;
|
|
11750
|
+
|
|
11751
|
+
type: 'prompt';
|
|
11752
|
+
}
|
|
11753
|
+
}
|
|
11754
|
+
|
|
11755
|
+
/**
|
|
11756
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
11757
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
11758
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
11759
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
11760
|
+
* selects a matching transition, if any.
|
|
11761
|
+
*/
|
|
11762
|
+
export interface GoBackCondition {
|
|
11763
|
+
/**
|
|
11764
|
+
* Unique identifier for the edge
|
|
11765
|
+
*/
|
|
11766
|
+
id: string;
|
|
11767
|
+
|
|
11768
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
11769
|
+
|
|
11770
|
+
/**
|
|
11771
|
+
* ID of the destination node
|
|
10740
11772
|
*/
|
|
10741
11773
|
destination_node_id?: string;
|
|
10742
11774
|
}
|
|
@@ -11034,6 +12066,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
11034
12066
|
*/
|
|
11035
12067
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
11036
12068
|
|
|
12069
|
+
/**
|
|
12070
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
12071
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
12072
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
12073
|
+
* is entered.
|
|
12074
|
+
*/
|
|
12075
|
+
boosted_keywords?: Array<string> | null;
|
|
12076
|
+
|
|
11037
12077
|
/**
|
|
11038
12078
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
11039
12079
|
*/
|
|
@@ -11499,9 +12539,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
11499
12539
|
export interface GlobalNodeSetting {
|
|
11500
12540
|
/**
|
|
11501
12541
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
11502
|
-
* be empty. Also accepts
|
|
12542
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
12543
|
+
* EquationPromptCondition objects.
|
|
11503
12544
|
*/
|
|
11504
|
-
condition:
|
|
12545
|
+
condition:
|
|
12546
|
+
| string
|
|
12547
|
+
| GlobalNodeSetting.PromptCondition
|
|
12548
|
+
| GlobalNodeSetting.EquationCondition
|
|
12549
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
11505
12550
|
|
|
11506
12551
|
/**
|
|
11507
12552
|
* The same global node won't be triggered again within the next N node
|
|
@@ -11571,6 +12616,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
11571
12616
|
}
|
|
11572
12617
|
}
|
|
11573
12618
|
|
|
12619
|
+
export interface EquationPromptCondition {
|
|
12620
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
12621
|
+
|
|
12622
|
+
operator: '||' | '&&';
|
|
12623
|
+
|
|
12624
|
+
type: 'equation_prompt';
|
|
12625
|
+
|
|
12626
|
+
/**
|
|
12627
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
12628
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
12629
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
12630
|
+
* timing.
|
|
12631
|
+
*/
|
|
12632
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
12633
|
+
}
|
|
12634
|
+
|
|
12635
|
+
export namespace EquationPromptCondition {
|
|
12636
|
+
export interface Equation {
|
|
12637
|
+
/**
|
|
12638
|
+
* Left side of the equation
|
|
12639
|
+
*/
|
|
12640
|
+
left: string;
|
|
12641
|
+
|
|
12642
|
+
operator:
|
|
12643
|
+
| '=='
|
|
12644
|
+
| '!='
|
|
12645
|
+
| '>'
|
|
12646
|
+
| '>='
|
|
12647
|
+
| '<'
|
|
12648
|
+
| '<='
|
|
12649
|
+
| 'contains'
|
|
12650
|
+
| 'not_contains'
|
|
12651
|
+
| 'exists'
|
|
12652
|
+
| 'not_exist';
|
|
12653
|
+
|
|
12654
|
+
/**
|
|
12655
|
+
* Right side of the equation. The right side of the equation not required when
|
|
12656
|
+
* "exists" or "not_exist" are selected.
|
|
12657
|
+
*/
|
|
12658
|
+
right?: string;
|
|
12659
|
+
}
|
|
12660
|
+
|
|
12661
|
+
/**
|
|
12662
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
12663
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
12664
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
12665
|
+
* timing.
|
|
12666
|
+
*/
|
|
12667
|
+
export interface PromptCondition {
|
|
12668
|
+
/**
|
|
12669
|
+
* Prompt condition text
|
|
12670
|
+
*/
|
|
12671
|
+
prompt: string;
|
|
12672
|
+
|
|
12673
|
+
type: 'prompt';
|
|
12674
|
+
}
|
|
12675
|
+
}
|
|
12676
|
+
|
|
11574
12677
|
/**
|
|
11575
12678
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
11576
12679
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -13168,9 +14271,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
13168
14271
|
export interface GlobalNodeSetting {
|
|
13169
14272
|
/**
|
|
13170
14273
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
13171
|
-
* be empty. Also accepts
|
|
14274
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
14275
|
+
* EquationPromptCondition objects.
|
|
13172
14276
|
*/
|
|
13173
|
-
condition:
|
|
14277
|
+
condition:
|
|
14278
|
+
| string
|
|
14279
|
+
| GlobalNodeSetting.PromptCondition
|
|
14280
|
+
| GlobalNodeSetting.EquationCondition
|
|
14281
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
13174
14282
|
|
|
13175
14283
|
/**
|
|
13176
14284
|
* The same global node won't be triggered again within the next N node
|
|
@@ -13240,6 +14348,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
13240
14348
|
}
|
|
13241
14349
|
}
|
|
13242
14350
|
|
|
14351
|
+
export interface EquationPromptCondition {
|
|
14352
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
14353
|
+
|
|
14354
|
+
operator: '||' | '&&';
|
|
14355
|
+
|
|
14356
|
+
type: 'equation_prompt';
|
|
14357
|
+
|
|
14358
|
+
/**
|
|
14359
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14360
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14361
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14362
|
+
* timing.
|
|
14363
|
+
*/
|
|
14364
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
14365
|
+
}
|
|
14366
|
+
|
|
14367
|
+
export namespace EquationPromptCondition {
|
|
14368
|
+
export interface Equation {
|
|
14369
|
+
/**
|
|
14370
|
+
* Left side of the equation
|
|
14371
|
+
*/
|
|
14372
|
+
left: string;
|
|
14373
|
+
|
|
14374
|
+
operator:
|
|
14375
|
+
| '=='
|
|
14376
|
+
| '!='
|
|
14377
|
+
| '>'
|
|
14378
|
+
| '>='
|
|
14379
|
+
| '<'
|
|
14380
|
+
| '<='
|
|
14381
|
+
| 'contains'
|
|
14382
|
+
| 'not_contains'
|
|
14383
|
+
| 'exists'
|
|
14384
|
+
| 'not_exist';
|
|
14385
|
+
|
|
14386
|
+
/**
|
|
14387
|
+
* Right side of the equation. The right side of the equation not required when
|
|
14388
|
+
* "exists" or "not_exist" are selected.
|
|
14389
|
+
*/
|
|
14390
|
+
right?: string;
|
|
14391
|
+
}
|
|
14392
|
+
|
|
14393
|
+
/**
|
|
14394
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14395
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14396
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14397
|
+
* timing.
|
|
14398
|
+
*/
|
|
14399
|
+
export interface PromptCondition {
|
|
14400
|
+
/**
|
|
14401
|
+
* Prompt condition text
|
|
14402
|
+
*/
|
|
14403
|
+
prompt: string;
|
|
14404
|
+
|
|
14405
|
+
type: 'prompt';
|
|
14406
|
+
}
|
|
14407
|
+
}
|
|
14408
|
+
|
|
13243
14409
|
/**
|
|
13244
14410
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
13245
14411
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -13726,9 +14892,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
13726
14892
|
export interface GlobalNodeSetting {
|
|
13727
14893
|
/**
|
|
13728
14894
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
13729
|
-
* be empty. Also accepts
|
|
14895
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
14896
|
+
* EquationPromptCondition objects.
|
|
13730
14897
|
*/
|
|
13731
|
-
condition:
|
|
14898
|
+
condition:
|
|
14899
|
+
| string
|
|
14900
|
+
| GlobalNodeSetting.PromptCondition
|
|
14901
|
+
| GlobalNodeSetting.EquationCondition
|
|
14902
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
13732
14903
|
|
|
13733
14904
|
/**
|
|
13734
14905
|
* The same global node won't be triggered again within the next N node
|
|
@@ -13798,6 +14969,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
13798
14969
|
}
|
|
13799
14970
|
}
|
|
13800
14971
|
|
|
14972
|
+
export interface EquationPromptCondition {
|
|
14973
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
14974
|
+
|
|
14975
|
+
operator: '||' | '&&';
|
|
14976
|
+
|
|
14977
|
+
type: 'equation_prompt';
|
|
14978
|
+
|
|
14979
|
+
/**
|
|
14980
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14981
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14982
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14983
|
+
* timing.
|
|
14984
|
+
*/
|
|
14985
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
14986
|
+
}
|
|
14987
|
+
|
|
14988
|
+
export namespace EquationPromptCondition {
|
|
14989
|
+
export interface Equation {
|
|
14990
|
+
/**
|
|
14991
|
+
* Left side of the equation
|
|
14992
|
+
*/
|
|
14993
|
+
left: string;
|
|
14994
|
+
|
|
14995
|
+
operator:
|
|
14996
|
+
| '=='
|
|
14997
|
+
| '!='
|
|
14998
|
+
| '>'
|
|
14999
|
+
| '>='
|
|
15000
|
+
| '<'
|
|
15001
|
+
| '<='
|
|
15002
|
+
| 'contains'
|
|
15003
|
+
| 'not_contains'
|
|
15004
|
+
| 'exists'
|
|
15005
|
+
| 'not_exist';
|
|
15006
|
+
|
|
15007
|
+
/**
|
|
15008
|
+
* Right side of the equation. The right side of the equation not required when
|
|
15009
|
+
* "exists" or "not_exist" are selected.
|
|
15010
|
+
*/
|
|
15011
|
+
right?: string;
|
|
15012
|
+
}
|
|
15013
|
+
|
|
15014
|
+
/**
|
|
15015
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
15016
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
15017
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
15018
|
+
* timing.
|
|
15019
|
+
*/
|
|
15020
|
+
export interface PromptCondition {
|
|
15021
|
+
/**
|
|
15022
|
+
* Prompt condition text
|
|
15023
|
+
*/
|
|
15024
|
+
prompt: string;
|
|
15025
|
+
|
|
15026
|
+
type: 'prompt';
|
|
15027
|
+
}
|
|
15028
|
+
}
|
|
15029
|
+
|
|
13801
15030
|
/**
|
|
13802
15031
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
13803
15032
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -14291,9 +15520,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
14291
15520
|
export interface GlobalNodeSetting {
|
|
14292
15521
|
/**
|
|
14293
15522
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
14294
|
-
* be empty. Also accepts
|
|
15523
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
15524
|
+
* EquationPromptCondition objects.
|
|
14295
15525
|
*/
|
|
14296
|
-
condition:
|
|
15526
|
+
condition:
|
|
15527
|
+
| string
|
|
15528
|
+
| GlobalNodeSetting.PromptCondition
|
|
15529
|
+
| GlobalNodeSetting.EquationCondition
|
|
15530
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
14297
15531
|
|
|
14298
15532
|
/**
|
|
14299
15533
|
* The same global node won't be triggered again within the next N node
|
|
@@ -14363,6 +15597,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
14363
15597
|
}
|
|
14364
15598
|
}
|
|
14365
15599
|
|
|
15600
|
+
export interface EquationPromptCondition {
|
|
15601
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
15602
|
+
|
|
15603
|
+
operator: '||' | '&&';
|
|
15604
|
+
|
|
15605
|
+
type: 'equation_prompt';
|
|
15606
|
+
|
|
15607
|
+
/**
|
|
15608
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
15609
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
15610
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
15611
|
+
* timing.
|
|
15612
|
+
*/
|
|
15613
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
15614
|
+
}
|
|
15615
|
+
|
|
15616
|
+
export namespace EquationPromptCondition {
|
|
15617
|
+
export interface Equation {
|
|
15618
|
+
/**
|
|
15619
|
+
* Left side of the equation
|
|
15620
|
+
*/
|
|
15621
|
+
left: string;
|
|
15622
|
+
|
|
15623
|
+
operator:
|
|
15624
|
+
| '=='
|
|
15625
|
+
| '!='
|
|
15626
|
+
| '>'
|
|
15627
|
+
| '>='
|
|
15628
|
+
| '<'
|
|
15629
|
+
| '<='
|
|
15630
|
+
| 'contains'
|
|
15631
|
+
| 'not_contains'
|
|
15632
|
+
| 'exists'
|
|
15633
|
+
| 'not_exist';
|
|
15634
|
+
|
|
15635
|
+
/**
|
|
15636
|
+
* Right side of the equation. The right side of the equation not required when
|
|
15637
|
+
* "exists" or "not_exist" are selected.
|
|
15638
|
+
*/
|
|
15639
|
+
right?: string;
|
|
15640
|
+
}
|
|
15641
|
+
|
|
15642
|
+
/**
|
|
15643
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
15644
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
15645
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
15646
|
+
* timing.
|
|
15647
|
+
*/
|
|
15648
|
+
export interface PromptCondition {
|
|
15649
|
+
/**
|
|
15650
|
+
* Prompt condition text
|
|
15651
|
+
*/
|
|
15652
|
+
prompt: string;
|
|
15653
|
+
|
|
15654
|
+
type: 'prompt';
|
|
15655
|
+
}
|
|
15656
|
+
}
|
|
15657
|
+
|
|
14366
15658
|
/**
|
|
14367
15659
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
14368
15660
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -15034,9 +16326,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
15034
16326
|
export interface GlobalNodeSetting {
|
|
15035
16327
|
/**
|
|
15036
16328
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
15037
|
-
* be empty. Also accepts
|
|
16329
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
16330
|
+
* EquationPromptCondition objects.
|
|
15038
16331
|
*/
|
|
15039
|
-
condition:
|
|
16332
|
+
condition:
|
|
16333
|
+
| string
|
|
16334
|
+
| GlobalNodeSetting.PromptCondition
|
|
16335
|
+
| GlobalNodeSetting.EquationCondition
|
|
16336
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
15040
16337
|
|
|
15041
16338
|
/**
|
|
15042
16339
|
* The same global node won't be triggered again within the next N node
|
|
@@ -15106,23 +16403,81 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
15106
16403
|
}
|
|
15107
16404
|
}
|
|
15108
16405
|
|
|
15109
|
-
|
|
15110
|
-
|
|
15111
|
-
* transitions when its condition matches. Equation conditions compare dynamic
|
|
15112
|
-
* variables and are checked in array order; the first match wins. If no equation
|
|
15113
|
-
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
15114
|
-
* selects a matching transition, if any.
|
|
15115
|
-
*/
|
|
15116
|
-
export interface GoBackCondition {
|
|
15117
|
-
/**
|
|
15118
|
-
* Unique identifier for the edge
|
|
15119
|
-
*/
|
|
15120
|
-
id: string;
|
|
16406
|
+
export interface EquationPromptCondition {
|
|
16407
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
15121
16408
|
|
|
15122
|
-
|
|
16409
|
+
operator: '||' | '&&';
|
|
16410
|
+
|
|
16411
|
+
type: 'equation_prompt';
|
|
15123
16412
|
|
|
15124
16413
|
/**
|
|
15125
|
-
*
|
|
16414
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
16415
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
16416
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
16417
|
+
* timing.
|
|
16418
|
+
*/
|
|
16419
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
16420
|
+
}
|
|
16421
|
+
|
|
16422
|
+
export namespace EquationPromptCondition {
|
|
16423
|
+
export interface Equation {
|
|
16424
|
+
/**
|
|
16425
|
+
* Left side of the equation
|
|
16426
|
+
*/
|
|
16427
|
+
left: string;
|
|
16428
|
+
|
|
16429
|
+
operator:
|
|
16430
|
+
| '=='
|
|
16431
|
+
| '!='
|
|
16432
|
+
| '>'
|
|
16433
|
+
| '>='
|
|
16434
|
+
| '<'
|
|
16435
|
+
| '<='
|
|
16436
|
+
| 'contains'
|
|
16437
|
+
| 'not_contains'
|
|
16438
|
+
| 'exists'
|
|
16439
|
+
| 'not_exist';
|
|
16440
|
+
|
|
16441
|
+
/**
|
|
16442
|
+
* Right side of the equation. The right side of the equation not required when
|
|
16443
|
+
* "exists" or "not_exist" are selected.
|
|
16444
|
+
*/
|
|
16445
|
+
right?: string;
|
|
16446
|
+
}
|
|
16447
|
+
|
|
16448
|
+
/**
|
|
16449
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
16450
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
16451
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
16452
|
+
* timing.
|
|
16453
|
+
*/
|
|
16454
|
+
export interface PromptCondition {
|
|
16455
|
+
/**
|
|
16456
|
+
* Prompt condition text
|
|
16457
|
+
*/
|
|
16458
|
+
prompt: string;
|
|
16459
|
+
|
|
16460
|
+
type: 'prompt';
|
|
16461
|
+
}
|
|
16462
|
+
}
|
|
16463
|
+
|
|
16464
|
+
/**
|
|
16465
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
16466
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
16467
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
16468
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
16469
|
+
* selects a matching transition, if any.
|
|
16470
|
+
*/
|
|
16471
|
+
export interface GoBackCondition {
|
|
16472
|
+
/**
|
|
16473
|
+
* Unique identifier for the edge
|
|
16474
|
+
*/
|
|
16475
|
+
id: string;
|
|
16476
|
+
|
|
16477
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
16478
|
+
|
|
16479
|
+
/**
|
|
16480
|
+
* ID of the destination node
|
|
15126
16481
|
*/
|
|
15127
16482
|
destination_node_id?: string;
|
|
15128
16483
|
}
|
|
@@ -15584,9 +16939,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
15584
16939
|
export interface GlobalNodeSetting {
|
|
15585
16940
|
/**
|
|
15586
16941
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
15587
|
-
* be empty. Also accepts
|
|
16942
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
16943
|
+
* EquationPromptCondition objects.
|
|
15588
16944
|
*/
|
|
15589
|
-
condition:
|
|
16945
|
+
condition:
|
|
16946
|
+
| string
|
|
16947
|
+
| GlobalNodeSetting.PromptCondition
|
|
16948
|
+
| GlobalNodeSetting.EquationCondition
|
|
16949
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
15590
16950
|
|
|
15591
16951
|
/**
|
|
15592
16952
|
* The same global node won't be triggered again within the next N node
|
|
@@ -15656,6 +17016,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
15656
17016
|
}
|
|
15657
17017
|
}
|
|
15658
17018
|
|
|
17019
|
+
export interface EquationPromptCondition {
|
|
17020
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
17021
|
+
|
|
17022
|
+
operator: '||' | '&&';
|
|
17023
|
+
|
|
17024
|
+
type: 'equation_prompt';
|
|
17025
|
+
|
|
17026
|
+
/**
|
|
17027
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
17028
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
17029
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
17030
|
+
* timing.
|
|
17031
|
+
*/
|
|
17032
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
17033
|
+
}
|
|
17034
|
+
|
|
17035
|
+
export namespace EquationPromptCondition {
|
|
17036
|
+
export interface Equation {
|
|
17037
|
+
/**
|
|
17038
|
+
* Left side of the equation
|
|
17039
|
+
*/
|
|
17040
|
+
left: string;
|
|
17041
|
+
|
|
17042
|
+
operator:
|
|
17043
|
+
| '=='
|
|
17044
|
+
| '!='
|
|
17045
|
+
| '>'
|
|
17046
|
+
| '>='
|
|
17047
|
+
| '<'
|
|
17048
|
+
| '<='
|
|
17049
|
+
| 'contains'
|
|
17050
|
+
| 'not_contains'
|
|
17051
|
+
| 'exists'
|
|
17052
|
+
| 'not_exist';
|
|
17053
|
+
|
|
17054
|
+
/**
|
|
17055
|
+
* Right side of the equation. The right side of the equation not required when
|
|
17056
|
+
* "exists" or "not_exist" are selected.
|
|
17057
|
+
*/
|
|
17058
|
+
right?: string;
|
|
17059
|
+
}
|
|
17060
|
+
|
|
17061
|
+
/**
|
|
17062
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
17063
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
17064
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
17065
|
+
* timing.
|
|
17066
|
+
*/
|
|
17067
|
+
export interface PromptCondition {
|
|
17068
|
+
/**
|
|
17069
|
+
* Prompt condition text
|
|
17070
|
+
*/
|
|
17071
|
+
prompt: string;
|
|
17072
|
+
|
|
17073
|
+
type: 'prompt';
|
|
17074
|
+
}
|
|
17075
|
+
}
|
|
17076
|
+
|
|
15659
17077
|
/**
|
|
15660
17078
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
15661
17079
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -16091,9 +17509,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
16091
17509
|
export interface GlobalNodeSetting {
|
|
16092
17510
|
/**
|
|
16093
17511
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
16094
|
-
* be empty. Also accepts
|
|
17512
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
17513
|
+
* EquationPromptCondition objects.
|
|
16095
17514
|
*/
|
|
16096
|
-
condition:
|
|
17515
|
+
condition:
|
|
17516
|
+
| string
|
|
17517
|
+
| GlobalNodeSetting.PromptCondition
|
|
17518
|
+
| GlobalNodeSetting.EquationCondition
|
|
17519
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
16097
17520
|
|
|
16098
17521
|
/**
|
|
16099
17522
|
* The same global node won't be triggered again within the next N node
|
|
@@ -16163,6 +17586,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
16163
17586
|
}
|
|
16164
17587
|
}
|
|
16165
17588
|
|
|
17589
|
+
export interface EquationPromptCondition {
|
|
17590
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
17591
|
+
|
|
17592
|
+
operator: '||' | '&&';
|
|
17593
|
+
|
|
17594
|
+
type: 'equation_prompt';
|
|
17595
|
+
|
|
17596
|
+
/**
|
|
17597
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
17598
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
17599
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
17600
|
+
* timing.
|
|
17601
|
+
*/
|
|
17602
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
17603
|
+
}
|
|
17604
|
+
|
|
17605
|
+
export namespace EquationPromptCondition {
|
|
17606
|
+
export interface Equation {
|
|
17607
|
+
/**
|
|
17608
|
+
* Left side of the equation
|
|
17609
|
+
*/
|
|
17610
|
+
left: string;
|
|
17611
|
+
|
|
17612
|
+
operator:
|
|
17613
|
+
| '=='
|
|
17614
|
+
| '!='
|
|
17615
|
+
| '>'
|
|
17616
|
+
| '>='
|
|
17617
|
+
| '<'
|
|
17618
|
+
| '<='
|
|
17619
|
+
| 'contains'
|
|
17620
|
+
| 'not_contains'
|
|
17621
|
+
| 'exists'
|
|
17622
|
+
| 'not_exist';
|
|
17623
|
+
|
|
17624
|
+
/**
|
|
17625
|
+
* Right side of the equation. The right side of the equation not required when
|
|
17626
|
+
* "exists" or "not_exist" are selected.
|
|
17627
|
+
*/
|
|
17628
|
+
right?: string;
|
|
17629
|
+
}
|
|
17630
|
+
|
|
17631
|
+
/**
|
|
17632
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
17633
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
17634
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
17635
|
+
* timing.
|
|
17636
|
+
*/
|
|
17637
|
+
export interface PromptCondition {
|
|
17638
|
+
/**
|
|
17639
|
+
* Prompt condition text
|
|
17640
|
+
*/
|
|
17641
|
+
prompt: string;
|
|
17642
|
+
|
|
17643
|
+
type: 'prompt';
|
|
17644
|
+
}
|
|
17645
|
+
}
|
|
17646
|
+
|
|
16166
17647
|
/**
|
|
16167
17648
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
16168
17649
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -16608,9 +18089,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
16608
18089
|
export interface GlobalNodeSetting {
|
|
16609
18090
|
/**
|
|
16610
18091
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
16611
|
-
* be empty. Also accepts
|
|
18092
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
18093
|
+
* EquationPromptCondition objects.
|
|
16612
18094
|
*/
|
|
16613
|
-
condition:
|
|
18095
|
+
condition:
|
|
18096
|
+
| string
|
|
18097
|
+
| GlobalNodeSetting.PromptCondition
|
|
18098
|
+
| GlobalNodeSetting.EquationCondition
|
|
18099
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
16614
18100
|
|
|
16615
18101
|
/**
|
|
16616
18102
|
* The same global node won't be triggered again within the next N node
|
|
@@ -16680,6 +18166,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
16680
18166
|
}
|
|
16681
18167
|
}
|
|
16682
18168
|
|
|
18169
|
+
export interface EquationPromptCondition {
|
|
18170
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
18171
|
+
|
|
18172
|
+
operator: '||' | '&&';
|
|
18173
|
+
|
|
18174
|
+
type: 'equation_prompt';
|
|
18175
|
+
|
|
18176
|
+
/**
|
|
18177
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
18178
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
18179
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
18180
|
+
* timing.
|
|
18181
|
+
*/
|
|
18182
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
18183
|
+
}
|
|
18184
|
+
|
|
18185
|
+
export namespace EquationPromptCondition {
|
|
18186
|
+
export interface Equation {
|
|
18187
|
+
/**
|
|
18188
|
+
* Left side of the equation
|
|
18189
|
+
*/
|
|
18190
|
+
left: string;
|
|
18191
|
+
|
|
18192
|
+
operator:
|
|
18193
|
+
| '=='
|
|
18194
|
+
| '!='
|
|
18195
|
+
| '>'
|
|
18196
|
+
| '>='
|
|
18197
|
+
| '<'
|
|
18198
|
+
| '<='
|
|
18199
|
+
| 'contains'
|
|
18200
|
+
| 'not_contains'
|
|
18201
|
+
| 'exists'
|
|
18202
|
+
| 'not_exist';
|
|
18203
|
+
|
|
18204
|
+
/**
|
|
18205
|
+
* Right side of the equation. The right side of the equation not required when
|
|
18206
|
+
* "exists" or "not_exist" are selected.
|
|
18207
|
+
*/
|
|
18208
|
+
right?: string;
|
|
18209
|
+
}
|
|
18210
|
+
|
|
18211
|
+
/**
|
|
18212
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
18213
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
18214
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
18215
|
+
* timing.
|
|
18216
|
+
*/
|
|
18217
|
+
export interface PromptCondition {
|
|
18218
|
+
/**
|
|
18219
|
+
* Prompt condition text
|
|
18220
|
+
*/
|
|
18221
|
+
prompt: string;
|
|
18222
|
+
|
|
18223
|
+
type: 'prompt';
|
|
18224
|
+
}
|
|
18225
|
+
}
|
|
18226
|
+
|
|
16683
18227
|
/**
|
|
16684
18228
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
16685
18229
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -17257,9 +18801,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
17257
18801
|
export interface GlobalNodeSetting {
|
|
17258
18802
|
/**
|
|
17259
18803
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
17260
|
-
* be empty. Also accepts
|
|
18804
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
18805
|
+
* EquationPromptCondition objects.
|
|
17261
18806
|
*/
|
|
17262
|
-
condition:
|
|
18807
|
+
condition:
|
|
18808
|
+
| string
|
|
18809
|
+
| GlobalNodeSetting.PromptCondition
|
|
18810
|
+
| GlobalNodeSetting.EquationCondition
|
|
18811
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
17263
18812
|
|
|
17264
18813
|
/**
|
|
17265
18814
|
* The same global node won't be triggered again within the next N node
|
|
@@ -17329,6 +18878,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
17329
18878
|
}
|
|
17330
18879
|
}
|
|
17331
18880
|
|
|
18881
|
+
export interface EquationPromptCondition {
|
|
18882
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
18883
|
+
|
|
18884
|
+
operator: '||' | '&&';
|
|
18885
|
+
|
|
18886
|
+
type: 'equation_prompt';
|
|
18887
|
+
|
|
18888
|
+
/**
|
|
18889
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
18890
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
18891
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
18892
|
+
* timing.
|
|
18893
|
+
*/
|
|
18894
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
18895
|
+
}
|
|
18896
|
+
|
|
18897
|
+
export namespace EquationPromptCondition {
|
|
18898
|
+
export interface Equation {
|
|
18899
|
+
/**
|
|
18900
|
+
* Left side of the equation
|
|
18901
|
+
*/
|
|
18902
|
+
left: string;
|
|
18903
|
+
|
|
18904
|
+
operator:
|
|
18905
|
+
| '=='
|
|
18906
|
+
| '!='
|
|
18907
|
+
| '>'
|
|
18908
|
+
| '>='
|
|
18909
|
+
| '<'
|
|
18910
|
+
| '<='
|
|
18911
|
+
| 'contains'
|
|
18912
|
+
| 'not_contains'
|
|
18913
|
+
| 'exists'
|
|
18914
|
+
| 'not_exist';
|
|
18915
|
+
|
|
18916
|
+
/**
|
|
18917
|
+
* Right side of the equation. The right side of the equation not required when
|
|
18918
|
+
* "exists" or "not_exist" are selected.
|
|
18919
|
+
*/
|
|
18920
|
+
right?: string;
|
|
18921
|
+
}
|
|
18922
|
+
|
|
18923
|
+
/**
|
|
18924
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
18925
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
18926
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
18927
|
+
* timing.
|
|
18928
|
+
*/
|
|
18929
|
+
export interface PromptCondition {
|
|
18930
|
+
/**
|
|
18931
|
+
* Prompt condition text
|
|
18932
|
+
*/
|
|
18933
|
+
prompt: string;
|
|
18934
|
+
|
|
18935
|
+
type: 'prompt';
|
|
18936
|
+
}
|
|
18937
|
+
}
|
|
18938
|
+
|
|
17332
18939
|
/**
|
|
17333
18940
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
17334
18941
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -17693,9 +19300,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
17693
19300
|
export interface GlobalNodeSetting {
|
|
17694
19301
|
/**
|
|
17695
19302
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
17696
|
-
* be empty. Also accepts
|
|
19303
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
19304
|
+
* EquationPromptCondition objects.
|
|
17697
19305
|
*/
|
|
17698
|
-
condition:
|
|
19306
|
+
condition:
|
|
19307
|
+
| string
|
|
19308
|
+
| GlobalNodeSetting.PromptCondition
|
|
19309
|
+
| GlobalNodeSetting.EquationCondition
|
|
19310
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
17699
19311
|
|
|
17700
19312
|
/**
|
|
17701
19313
|
* The same global node won't be triggered again within the next N node
|
|
@@ -17765,29 +19377,87 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
17765
19377
|
}
|
|
17766
19378
|
}
|
|
17767
19379
|
|
|
17768
|
-
|
|
17769
|
-
|
|
17770
|
-
* transitions when its condition matches. Equation conditions compare dynamic
|
|
17771
|
-
* variables and are checked in array order; the first match wins. If no equation
|
|
17772
|
-
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
17773
|
-
* selects a matching transition, if any.
|
|
17774
|
-
*/
|
|
17775
|
-
export interface GoBackCondition {
|
|
17776
|
-
/**
|
|
17777
|
-
* Unique identifier for the edge
|
|
17778
|
-
*/
|
|
17779
|
-
id: string;
|
|
19380
|
+
export interface EquationPromptCondition {
|
|
19381
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
17780
19382
|
|
|
17781
|
-
|
|
19383
|
+
operator: '||' | '&&';
|
|
19384
|
+
|
|
19385
|
+
type: 'equation_prompt';
|
|
17782
19386
|
|
|
17783
19387
|
/**
|
|
17784
|
-
*
|
|
19388
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
19389
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
19390
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
19391
|
+
* timing.
|
|
17785
19392
|
*/
|
|
17786
|
-
|
|
19393
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
17787
19394
|
}
|
|
17788
19395
|
|
|
17789
|
-
export namespace
|
|
17790
|
-
export interface
|
|
19396
|
+
export namespace EquationPromptCondition {
|
|
19397
|
+
export interface Equation {
|
|
19398
|
+
/**
|
|
19399
|
+
* Left side of the equation
|
|
19400
|
+
*/
|
|
19401
|
+
left: string;
|
|
19402
|
+
|
|
19403
|
+
operator:
|
|
19404
|
+
| '=='
|
|
19405
|
+
| '!='
|
|
19406
|
+
| '>'
|
|
19407
|
+
| '>='
|
|
19408
|
+
| '<'
|
|
19409
|
+
| '<='
|
|
19410
|
+
| 'contains'
|
|
19411
|
+
| 'not_contains'
|
|
19412
|
+
| 'exists'
|
|
19413
|
+
| 'not_exist';
|
|
19414
|
+
|
|
19415
|
+
/**
|
|
19416
|
+
* Right side of the equation. The right side of the equation not required when
|
|
19417
|
+
* "exists" or "not_exist" are selected.
|
|
19418
|
+
*/
|
|
19419
|
+
right?: string;
|
|
19420
|
+
}
|
|
19421
|
+
|
|
19422
|
+
/**
|
|
19423
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
19424
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
19425
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
19426
|
+
* timing.
|
|
19427
|
+
*/
|
|
19428
|
+
export interface PromptCondition {
|
|
19429
|
+
/**
|
|
19430
|
+
* Prompt condition text
|
|
19431
|
+
*/
|
|
19432
|
+
prompt: string;
|
|
19433
|
+
|
|
19434
|
+
type: 'prompt';
|
|
19435
|
+
}
|
|
19436
|
+
}
|
|
19437
|
+
|
|
19438
|
+
/**
|
|
19439
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
19440
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
19441
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
19442
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
19443
|
+
* selects a matching transition, if any.
|
|
19444
|
+
*/
|
|
19445
|
+
export interface GoBackCondition {
|
|
19446
|
+
/**
|
|
19447
|
+
* Unique identifier for the edge
|
|
19448
|
+
*/
|
|
19449
|
+
id: string;
|
|
19450
|
+
|
|
19451
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
19452
|
+
|
|
19453
|
+
/**
|
|
19454
|
+
* ID of the destination node
|
|
19455
|
+
*/
|
|
19456
|
+
destination_node_id?: string;
|
|
19457
|
+
}
|
|
19458
|
+
|
|
19459
|
+
export namespace GoBackCondition {
|
|
19460
|
+
export interface PromptCondition {
|
|
17791
19461
|
/**
|
|
17792
19462
|
* Prompt condition text
|
|
17793
19463
|
*/
|
|
@@ -18260,9 +19930,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
18260
19930
|
export interface GlobalNodeSetting {
|
|
18261
19931
|
/**
|
|
18262
19932
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
18263
|
-
* be empty. Also accepts
|
|
19933
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
19934
|
+
* EquationPromptCondition objects.
|
|
18264
19935
|
*/
|
|
18265
|
-
condition:
|
|
19936
|
+
condition:
|
|
19937
|
+
| string
|
|
19938
|
+
| GlobalNodeSetting.PromptCondition
|
|
19939
|
+
| GlobalNodeSetting.EquationCondition
|
|
19940
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
18266
19941
|
|
|
18267
19942
|
/**
|
|
18268
19943
|
* The same global node won't be triggered again within the next N node
|
|
@@ -18332,6 +20007,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
18332
20007
|
}
|
|
18333
20008
|
}
|
|
18334
20009
|
|
|
20010
|
+
export interface EquationPromptCondition {
|
|
20011
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
20012
|
+
|
|
20013
|
+
operator: '||' | '&&';
|
|
20014
|
+
|
|
20015
|
+
type: 'equation_prompt';
|
|
20016
|
+
|
|
20017
|
+
/**
|
|
20018
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20019
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20020
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20021
|
+
* timing.
|
|
20022
|
+
*/
|
|
20023
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
20024
|
+
}
|
|
20025
|
+
|
|
20026
|
+
export namespace EquationPromptCondition {
|
|
20027
|
+
export interface Equation {
|
|
20028
|
+
/**
|
|
20029
|
+
* Left side of the equation
|
|
20030
|
+
*/
|
|
20031
|
+
left: string;
|
|
20032
|
+
|
|
20033
|
+
operator:
|
|
20034
|
+
| '=='
|
|
20035
|
+
| '!='
|
|
20036
|
+
| '>'
|
|
20037
|
+
| '>='
|
|
20038
|
+
| '<'
|
|
20039
|
+
| '<='
|
|
20040
|
+
| 'contains'
|
|
20041
|
+
| 'not_contains'
|
|
20042
|
+
| 'exists'
|
|
20043
|
+
| 'not_exist';
|
|
20044
|
+
|
|
20045
|
+
/**
|
|
20046
|
+
* Right side of the equation. The right side of the equation not required when
|
|
20047
|
+
* "exists" or "not_exist" are selected.
|
|
20048
|
+
*/
|
|
20049
|
+
right?: string;
|
|
20050
|
+
}
|
|
20051
|
+
|
|
20052
|
+
/**
|
|
20053
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20054
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20055
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20056
|
+
* timing.
|
|
20057
|
+
*/
|
|
20058
|
+
export interface PromptCondition {
|
|
20059
|
+
/**
|
|
20060
|
+
* Prompt condition text
|
|
20061
|
+
*/
|
|
20062
|
+
prompt: string;
|
|
20063
|
+
|
|
20064
|
+
type: 'prompt';
|
|
20065
|
+
}
|
|
20066
|
+
}
|
|
20067
|
+
|
|
18335
20068
|
/**
|
|
18336
20069
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
18337
20070
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -18801,9 +20534,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
18801
20534
|
export interface GlobalNodeSetting {
|
|
18802
20535
|
/**
|
|
18803
20536
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
18804
|
-
* be empty. Also accepts
|
|
20537
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
20538
|
+
* EquationPromptCondition objects.
|
|
18805
20539
|
*/
|
|
18806
|
-
condition:
|
|
20540
|
+
condition:
|
|
20541
|
+
| string
|
|
20542
|
+
| GlobalNodeSetting.PromptCondition
|
|
20543
|
+
| GlobalNodeSetting.EquationCondition
|
|
20544
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
18807
20545
|
|
|
18808
20546
|
/**
|
|
18809
20547
|
* The same global node won't be triggered again within the next N node
|
|
@@ -18873,6 +20611,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
18873
20611
|
}
|
|
18874
20612
|
}
|
|
18875
20613
|
|
|
20614
|
+
export interface EquationPromptCondition {
|
|
20615
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
20616
|
+
|
|
20617
|
+
operator: '||' | '&&';
|
|
20618
|
+
|
|
20619
|
+
type: 'equation_prompt';
|
|
20620
|
+
|
|
20621
|
+
/**
|
|
20622
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20623
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20624
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20625
|
+
* timing.
|
|
20626
|
+
*/
|
|
20627
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
20628
|
+
}
|
|
20629
|
+
|
|
20630
|
+
export namespace EquationPromptCondition {
|
|
20631
|
+
export interface Equation {
|
|
20632
|
+
/**
|
|
20633
|
+
* Left side of the equation
|
|
20634
|
+
*/
|
|
20635
|
+
left: string;
|
|
20636
|
+
|
|
20637
|
+
operator:
|
|
20638
|
+
| '=='
|
|
20639
|
+
| '!='
|
|
20640
|
+
| '>'
|
|
20641
|
+
| '>='
|
|
20642
|
+
| '<'
|
|
20643
|
+
| '<='
|
|
20644
|
+
| 'contains'
|
|
20645
|
+
| 'not_contains'
|
|
20646
|
+
| 'exists'
|
|
20647
|
+
| 'not_exist';
|
|
20648
|
+
|
|
20649
|
+
/**
|
|
20650
|
+
* Right side of the equation. The right side of the equation not required when
|
|
20651
|
+
* "exists" or "not_exist" are selected.
|
|
20652
|
+
*/
|
|
20653
|
+
right?: string;
|
|
20654
|
+
}
|
|
20655
|
+
|
|
20656
|
+
/**
|
|
20657
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20658
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20659
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20660
|
+
* timing.
|
|
20661
|
+
*/
|
|
20662
|
+
export interface PromptCondition {
|
|
20663
|
+
/**
|
|
20664
|
+
* Prompt condition text
|
|
20665
|
+
*/
|
|
20666
|
+
prompt: string;
|
|
20667
|
+
|
|
20668
|
+
type: 'prompt';
|
|
20669
|
+
}
|
|
20670
|
+
}
|
|
20671
|
+
|
|
18876
20672
|
/**
|
|
18877
20673
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
18878
20674
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -19066,9 +20862,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
19066
20862
|
export interface GlobalNodeSetting {
|
|
19067
20863
|
/**
|
|
19068
20864
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
19069
|
-
* be empty. Also accepts
|
|
20865
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
20866
|
+
* EquationPromptCondition objects.
|
|
19070
20867
|
*/
|
|
19071
|
-
condition:
|
|
20868
|
+
condition:
|
|
20869
|
+
| string
|
|
20870
|
+
| GlobalNodeSetting.PromptCondition
|
|
20871
|
+
| GlobalNodeSetting.EquationCondition
|
|
20872
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
19072
20873
|
|
|
19073
20874
|
/**
|
|
19074
20875
|
* The same global node won't be triggered again within the next N node
|
|
@@ -19138,6 +20939,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
19138
20939
|
}
|
|
19139
20940
|
}
|
|
19140
20941
|
|
|
20942
|
+
export interface EquationPromptCondition {
|
|
20943
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
20944
|
+
|
|
20945
|
+
operator: '||' | '&&';
|
|
20946
|
+
|
|
20947
|
+
type: 'equation_prompt';
|
|
20948
|
+
|
|
20949
|
+
/**
|
|
20950
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20951
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20952
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20953
|
+
* timing.
|
|
20954
|
+
*/
|
|
20955
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
20956
|
+
}
|
|
20957
|
+
|
|
20958
|
+
export namespace EquationPromptCondition {
|
|
20959
|
+
export interface Equation {
|
|
20960
|
+
/**
|
|
20961
|
+
* Left side of the equation
|
|
20962
|
+
*/
|
|
20963
|
+
left: string;
|
|
20964
|
+
|
|
20965
|
+
operator:
|
|
20966
|
+
| '=='
|
|
20967
|
+
| '!='
|
|
20968
|
+
| '>'
|
|
20969
|
+
| '>='
|
|
20970
|
+
| '<'
|
|
20971
|
+
| '<='
|
|
20972
|
+
| 'contains'
|
|
20973
|
+
| 'not_contains'
|
|
20974
|
+
| 'exists'
|
|
20975
|
+
| 'not_exist';
|
|
20976
|
+
|
|
20977
|
+
/**
|
|
20978
|
+
* Right side of the equation. The right side of the equation not required when
|
|
20979
|
+
* "exists" or "not_exist" are selected.
|
|
20980
|
+
*/
|
|
20981
|
+
right?: string;
|
|
20982
|
+
}
|
|
20983
|
+
|
|
20984
|
+
/**
|
|
20985
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20986
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20987
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20988
|
+
* timing.
|
|
20989
|
+
*/
|
|
20990
|
+
export interface PromptCondition {
|
|
20991
|
+
/**
|
|
20992
|
+
* Prompt condition text
|
|
20993
|
+
*/
|
|
20994
|
+
prompt: string;
|
|
20995
|
+
|
|
20996
|
+
type: 'prompt';
|
|
20997
|
+
}
|
|
20998
|
+
}
|
|
20999
|
+
|
|
19141
21000
|
/**
|
|
19142
21001
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
19143
21002
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -19404,9 +21263,14 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
19404
21263
|
export interface GlobalNodeSetting {
|
|
19405
21264
|
/**
|
|
19406
21265
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
19407
|
-
* be empty. Also accepts
|
|
21266
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
21267
|
+
* EquationPromptCondition objects.
|
|
19408
21268
|
*/
|
|
19409
|
-
condition:
|
|
21269
|
+
condition:
|
|
21270
|
+
| string
|
|
21271
|
+
| GlobalNodeSetting.PromptCondition
|
|
21272
|
+
| GlobalNodeSetting.EquationCondition
|
|
21273
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
19410
21274
|
|
|
19411
21275
|
/**
|
|
19412
21276
|
* The same global node won't be triggered again within the next N node
|
|
@@ -19476,6 +21340,64 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
19476
21340
|
}
|
|
19477
21341
|
}
|
|
19478
21342
|
|
|
21343
|
+
export interface EquationPromptCondition {
|
|
21344
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
21345
|
+
|
|
21346
|
+
operator: '||' | '&&';
|
|
21347
|
+
|
|
21348
|
+
type: 'equation_prompt';
|
|
21349
|
+
|
|
21350
|
+
/**
|
|
21351
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
21352
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
21353
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
21354
|
+
* timing.
|
|
21355
|
+
*/
|
|
21356
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
21357
|
+
}
|
|
21358
|
+
|
|
21359
|
+
export namespace EquationPromptCondition {
|
|
21360
|
+
export interface Equation {
|
|
21361
|
+
/**
|
|
21362
|
+
* Left side of the equation
|
|
21363
|
+
*/
|
|
21364
|
+
left: string;
|
|
21365
|
+
|
|
21366
|
+
operator:
|
|
21367
|
+
| '=='
|
|
21368
|
+
| '!='
|
|
21369
|
+
| '>'
|
|
21370
|
+
| '>='
|
|
21371
|
+
| '<'
|
|
21372
|
+
| '<='
|
|
21373
|
+
| 'contains'
|
|
21374
|
+
| 'not_contains'
|
|
21375
|
+
| 'exists'
|
|
21376
|
+
| 'not_exist';
|
|
21377
|
+
|
|
21378
|
+
/**
|
|
21379
|
+
* Right side of the equation. The right side of the equation not required when
|
|
21380
|
+
* "exists" or "not_exist" are selected.
|
|
21381
|
+
*/
|
|
21382
|
+
right?: string;
|
|
21383
|
+
}
|
|
21384
|
+
|
|
21385
|
+
/**
|
|
21386
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
21387
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
21388
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
21389
|
+
* timing.
|
|
21390
|
+
*/
|
|
21391
|
+
export interface PromptCondition {
|
|
21392
|
+
/**
|
|
21393
|
+
* Prompt condition text
|
|
21394
|
+
*/
|
|
21395
|
+
prompt: string;
|
|
21396
|
+
|
|
21397
|
+
type: 'prompt';
|
|
21398
|
+
}
|
|
21399
|
+
}
|
|
21400
|
+
|
|
19479
21401
|
/**
|
|
19480
21402
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
19481
21403
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -20202,6 +22124,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
20202
22124
|
*/
|
|
20203
22125
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
20204
22126
|
|
|
22127
|
+
/**
|
|
22128
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
22129
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
22130
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
22131
|
+
* is entered.
|
|
22132
|
+
*/
|
|
22133
|
+
boosted_keywords?: Array<string> | null;
|
|
22134
|
+
|
|
20205
22135
|
/**
|
|
20206
22136
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
20207
22137
|
*/
|
|
@@ -20654,9 +22584,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
20654
22584
|
export interface GlobalNodeSetting {
|
|
20655
22585
|
/**
|
|
20656
22586
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
20657
|
-
* be empty. Also accepts
|
|
22587
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
22588
|
+
* EquationPromptCondition objects.
|
|
20658
22589
|
*/
|
|
20659
|
-
condition:
|
|
22590
|
+
condition:
|
|
22591
|
+
| string
|
|
22592
|
+
| GlobalNodeSetting.PromptCondition
|
|
22593
|
+
| GlobalNodeSetting.EquationCondition
|
|
22594
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
20660
22595
|
|
|
20661
22596
|
/**
|
|
20662
22597
|
* The same global node won't be triggered again within the next N node
|
|
@@ -20726,16 +22661,74 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
20726
22661
|
}
|
|
20727
22662
|
}
|
|
20728
22663
|
|
|
20729
|
-
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
|
|
20735
|
-
|
|
20736
|
-
export interface GoBackCondition {
|
|
22664
|
+
export interface EquationPromptCondition {
|
|
22665
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
22666
|
+
|
|
22667
|
+
operator: '||' | '&&';
|
|
22668
|
+
|
|
22669
|
+
type: 'equation_prompt';
|
|
22670
|
+
|
|
20737
22671
|
/**
|
|
20738
|
-
*
|
|
22672
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
22673
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
22674
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
22675
|
+
* timing.
|
|
22676
|
+
*/
|
|
22677
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
22678
|
+
}
|
|
22679
|
+
|
|
22680
|
+
export namespace EquationPromptCondition {
|
|
22681
|
+
export interface Equation {
|
|
22682
|
+
/**
|
|
22683
|
+
* Left side of the equation
|
|
22684
|
+
*/
|
|
22685
|
+
left: string;
|
|
22686
|
+
|
|
22687
|
+
operator:
|
|
22688
|
+
| '=='
|
|
22689
|
+
| '!='
|
|
22690
|
+
| '>'
|
|
22691
|
+
| '>='
|
|
22692
|
+
| '<'
|
|
22693
|
+
| '<='
|
|
22694
|
+
| 'contains'
|
|
22695
|
+
| 'not_contains'
|
|
22696
|
+
| 'exists'
|
|
22697
|
+
| 'not_exist';
|
|
22698
|
+
|
|
22699
|
+
/**
|
|
22700
|
+
* Right side of the equation. The right side of the equation not required when
|
|
22701
|
+
* "exists" or "not_exist" are selected.
|
|
22702
|
+
*/
|
|
22703
|
+
right?: string;
|
|
22704
|
+
}
|
|
22705
|
+
|
|
22706
|
+
/**
|
|
22707
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
22708
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
22709
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
22710
|
+
* timing.
|
|
22711
|
+
*/
|
|
22712
|
+
export interface PromptCondition {
|
|
22713
|
+
/**
|
|
22714
|
+
* Prompt condition text
|
|
22715
|
+
*/
|
|
22716
|
+
prompt: string;
|
|
22717
|
+
|
|
22718
|
+
type: 'prompt';
|
|
22719
|
+
}
|
|
22720
|
+
}
|
|
22721
|
+
|
|
22722
|
+
/**
|
|
22723
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
22724
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
22725
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
22726
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
22727
|
+
* selects a matching transition, if any.
|
|
22728
|
+
*/
|
|
22729
|
+
export interface GoBackCondition {
|
|
22730
|
+
/**
|
|
22731
|
+
* Unique identifier for the edge
|
|
20739
22732
|
*/
|
|
20740
22733
|
id: string;
|
|
20741
22734
|
|
|
@@ -21040,6 +23033,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
21040
23033
|
*/
|
|
21041
23034
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
21042
23035
|
|
|
23036
|
+
/**
|
|
23037
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
23038
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
23039
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
23040
|
+
* is entered.
|
|
23041
|
+
*/
|
|
23042
|
+
boosted_keywords?: Array<string> | null;
|
|
23043
|
+
|
|
21043
23044
|
/**
|
|
21044
23045
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
21045
23046
|
*/
|
|
@@ -21505,9 +23506,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
21505
23506
|
export interface GlobalNodeSetting {
|
|
21506
23507
|
/**
|
|
21507
23508
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
21508
|
-
* be empty. Also accepts
|
|
23509
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
23510
|
+
* EquationPromptCondition objects.
|
|
21509
23511
|
*/
|
|
21510
|
-
condition:
|
|
23512
|
+
condition:
|
|
23513
|
+
| string
|
|
23514
|
+
| GlobalNodeSetting.PromptCondition
|
|
23515
|
+
| GlobalNodeSetting.EquationCondition
|
|
23516
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
21511
23517
|
|
|
21512
23518
|
/**
|
|
21513
23519
|
* The same global node won't be triggered again within the next N node
|
|
@@ -21577,6 +23583,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
21577
23583
|
}
|
|
21578
23584
|
}
|
|
21579
23585
|
|
|
23586
|
+
export interface EquationPromptCondition {
|
|
23587
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
23588
|
+
|
|
23589
|
+
operator: '||' | '&&';
|
|
23590
|
+
|
|
23591
|
+
type: 'equation_prompt';
|
|
23592
|
+
|
|
23593
|
+
/**
|
|
23594
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
23595
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
23596
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
23597
|
+
* timing.
|
|
23598
|
+
*/
|
|
23599
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
23600
|
+
}
|
|
23601
|
+
|
|
23602
|
+
export namespace EquationPromptCondition {
|
|
23603
|
+
export interface Equation {
|
|
23604
|
+
/**
|
|
23605
|
+
* Left side of the equation
|
|
23606
|
+
*/
|
|
23607
|
+
left: string;
|
|
23608
|
+
|
|
23609
|
+
operator:
|
|
23610
|
+
| '=='
|
|
23611
|
+
| '!='
|
|
23612
|
+
| '>'
|
|
23613
|
+
| '>='
|
|
23614
|
+
| '<'
|
|
23615
|
+
| '<='
|
|
23616
|
+
| 'contains'
|
|
23617
|
+
| 'not_contains'
|
|
23618
|
+
| 'exists'
|
|
23619
|
+
| 'not_exist';
|
|
23620
|
+
|
|
23621
|
+
/**
|
|
23622
|
+
* Right side of the equation. The right side of the equation not required when
|
|
23623
|
+
* "exists" or "not_exist" are selected.
|
|
23624
|
+
*/
|
|
23625
|
+
right?: string;
|
|
23626
|
+
}
|
|
23627
|
+
|
|
23628
|
+
/**
|
|
23629
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
23630
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
23631
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
23632
|
+
* timing.
|
|
23633
|
+
*/
|
|
23634
|
+
export interface PromptCondition {
|
|
23635
|
+
/**
|
|
23636
|
+
* Prompt condition text
|
|
23637
|
+
*/
|
|
23638
|
+
prompt: string;
|
|
23639
|
+
|
|
23640
|
+
type: 'prompt';
|
|
23641
|
+
}
|
|
23642
|
+
}
|
|
23643
|
+
|
|
21580
23644
|
/**
|
|
21581
23645
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
21582
23646
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -23174,9 +25238,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
23174
25238
|
export interface GlobalNodeSetting {
|
|
23175
25239
|
/**
|
|
23176
25240
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
23177
|
-
* be empty. Also accepts
|
|
25241
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
25242
|
+
* EquationPromptCondition objects.
|
|
23178
25243
|
*/
|
|
23179
|
-
condition:
|
|
25244
|
+
condition:
|
|
25245
|
+
| string
|
|
25246
|
+
| GlobalNodeSetting.PromptCondition
|
|
25247
|
+
| GlobalNodeSetting.EquationCondition
|
|
25248
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
23180
25249
|
|
|
23181
25250
|
/**
|
|
23182
25251
|
* The same global node won't be triggered again within the next N node
|
|
@@ -23246,6 +25315,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
23246
25315
|
}
|
|
23247
25316
|
}
|
|
23248
25317
|
|
|
25318
|
+
export interface EquationPromptCondition {
|
|
25319
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
25320
|
+
|
|
25321
|
+
operator: '||' | '&&';
|
|
25322
|
+
|
|
25323
|
+
type: 'equation_prompt';
|
|
25324
|
+
|
|
25325
|
+
/**
|
|
25326
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
25327
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
25328
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
25329
|
+
* timing.
|
|
25330
|
+
*/
|
|
25331
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
25332
|
+
}
|
|
25333
|
+
|
|
25334
|
+
export namespace EquationPromptCondition {
|
|
25335
|
+
export interface Equation {
|
|
25336
|
+
/**
|
|
25337
|
+
* Left side of the equation
|
|
25338
|
+
*/
|
|
25339
|
+
left: string;
|
|
25340
|
+
|
|
25341
|
+
operator:
|
|
25342
|
+
| '=='
|
|
25343
|
+
| '!='
|
|
25344
|
+
| '>'
|
|
25345
|
+
| '>='
|
|
25346
|
+
| '<'
|
|
25347
|
+
| '<='
|
|
25348
|
+
| 'contains'
|
|
25349
|
+
| 'not_contains'
|
|
25350
|
+
| 'exists'
|
|
25351
|
+
| 'not_exist';
|
|
25352
|
+
|
|
25353
|
+
/**
|
|
25354
|
+
* Right side of the equation. The right side of the equation not required when
|
|
25355
|
+
* "exists" or "not_exist" are selected.
|
|
25356
|
+
*/
|
|
25357
|
+
right?: string;
|
|
25358
|
+
}
|
|
25359
|
+
|
|
25360
|
+
/**
|
|
25361
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
25362
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
25363
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
25364
|
+
* timing.
|
|
25365
|
+
*/
|
|
25366
|
+
export interface PromptCondition {
|
|
25367
|
+
/**
|
|
25368
|
+
* Prompt condition text
|
|
25369
|
+
*/
|
|
25370
|
+
prompt: string;
|
|
25371
|
+
|
|
25372
|
+
type: 'prompt';
|
|
25373
|
+
}
|
|
25374
|
+
}
|
|
25375
|
+
|
|
23249
25376
|
/**
|
|
23250
25377
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
23251
25378
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -23732,9 +25859,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
23732
25859
|
export interface GlobalNodeSetting {
|
|
23733
25860
|
/**
|
|
23734
25861
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
23735
|
-
* be empty. Also accepts
|
|
25862
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
25863
|
+
* EquationPromptCondition objects.
|
|
23736
25864
|
*/
|
|
23737
|
-
condition:
|
|
25865
|
+
condition:
|
|
25866
|
+
| string
|
|
25867
|
+
| GlobalNodeSetting.PromptCondition
|
|
25868
|
+
| GlobalNodeSetting.EquationCondition
|
|
25869
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
23738
25870
|
|
|
23739
25871
|
/**
|
|
23740
25872
|
* The same global node won't be triggered again within the next N node
|
|
@@ -23804,6 +25936,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
23804
25936
|
}
|
|
23805
25937
|
}
|
|
23806
25938
|
|
|
25939
|
+
export interface EquationPromptCondition {
|
|
25940
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
25941
|
+
|
|
25942
|
+
operator: '||' | '&&';
|
|
25943
|
+
|
|
25944
|
+
type: 'equation_prompt';
|
|
25945
|
+
|
|
25946
|
+
/**
|
|
25947
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
25948
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
25949
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
25950
|
+
* timing.
|
|
25951
|
+
*/
|
|
25952
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
25953
|
+
}
|
|
25954
|
+
|
|
25955
|
+
export namespace EquationPromptCondition {
|
|
25956
|
+
export interface Equation {
|
|
25957
|
+
/**
|
|
25958
|
+
* Left side of the equation
|
|
25959
|
+
*/
|
|
25960
|
+
left: string;
|
|
25961
|
+
|
|
25962
|
+
operator:
|
|
25963
|
+
| '=='
|
|
25964
|
+
| '!='
|
|
25965
|
+
| '>'
|
|
25966
|
+
| '>='
|
|
25967
|
+
| '<'
|
|
25968
|
+
| '<='
|
|
25969
|
+
| 'contains'
|
|
25970
|
+
| 'not_contains'
|
|
25971
|
+
| 'exists'
|
|
25972
|
+
| 'not_exist';
|
|
25973
|
+
|
|
25974
|
+
/**
|
|
25975
|
+
* Right side of the equation. The right side of the equation not required when
|
|
25976
|
+
* "exists" or "not_exist" are selected.
|
|
25977
|
+
*/
|
|
25978
|
+
right?: string;
|
|
25979
|
+
}
|
|
25980
|
+
|
|
25981
|
+
/**
|
|
25982
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
25983
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
25984
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
25985
|
+
* timing.
|
|
25986
|
+
*/
|
|
25987
|
+
export interface PromptCondition {
|
|
25988
|
+
/**
|
|
25989
|
+
* Prompt condition text
|
|
25990
|
+
*/
|
|
25991
|
+
prompt: string;
|
|
25992
|
+
|
|
25993
|
+
type: 'prompt';
|
|
25994
|
+
}
|
|
25995
|
+
}
|
|
25996
|
+
|
|
23807
25997
|
/**
|
|
23808
25998
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
23809
25999
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -24297,9 +26487,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
24297
26487
|
export interface GlobalNodeSetting {
|
|
24298
26488
|
/**
|
|
24299
26489
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
24300
|
-
* be empty. Also accepts
|
|
26490
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
26491
|
+
* EquationPromptCondition objects.
|
|
24301
26492
|
*/
|
|
24302
|
-
condition:
|
|
26493
|
+
condition:
|
|
26494
|
+
| string
|
|
26495
|
+
| GlobalNodeSetting.PromptCondition
|
|
26496
|
+
| GlobalNodeSetting.EquationCondition
|
|
26497
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
24303
26498
|
|
|
24304
26499
|
/**
|
|
24305
26500
|
* The same global node won't be triggered again within the next N node
|
|
@@ -24369,6 +26564,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
24369
26564
|
}
|
|
24370
26565
|
}
|
|
24371
26566
|
|
|
26567
|
+
export interface EquationPromptCondition {
|
|
26568
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
26569
|
+
|
|
26570
|
+
operator: '||' | '&&';
|
|
26571
|
+
|
|
26572
|
+
type: 'equation_prompt';
|
|
26573
|
+
|
|
26574
|
+
/**
|
|
26575
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
26576
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
26577
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
26578
|
+
* timing.
|
|
26579
|
+
*/
|
|
26580
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
26581
|
+
}
|
|
26582
|
+
|
|
26583
|
+
export namespace EquationPromptCondition {
|
|
26584
|
+
export interface Equation {
|
|
26585
|
+
/**
|
|
26586
|
+
* Left side of the equation
|
|
26587
|
+
*/
|
|
26588
|
+
left: string;
|
|
26589
|
+
|
|
26590
|
+
operator:
|
|
26591
|
+
| '=='
|
|
26592
|
+
| '!='
|
|
26593
|
+
| '>'
|
|
26594
|
+
| '>='
|
|
26595
|
+
| '<'
|
|
26596
|
+
| '<='
|
|
26597
|
+
| 'contains'
|
|
26598
|
+
| 'not_contains'
|
|
26599
|
+
| 'exists'
|
|
26600
|
+
| 'not_exist';
|
|
26601
|
+
|
|
26602
|
+
/**
|
|
26603
|
+
* Right side of the equation. The right side of the equation not required when
|
|
26604
|
+
* "exists" or "not_exist" are selected.
|
|
26605
|
+
*/
|
|
26606
|
+
right?: string;
|
|
26607
|
+
}
|
|
26608
|
+
|
|
26609
|
+
/**
|
|
26610
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
26611
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
26612
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
26613
|
+
* timing.
|
|
26614
|
+
*/
|
|
26615
|
+
export interface PromptCondition {
|
|
26616
|
+
/**
|
|
26617
|
+
* Prompt condition text
|
|
26618
|
+
*/
|
|
26619
|
+
prompt: string;
|
|
26620
|
+
|
|
26621
|
+
type: 'prompt';
|
|
26622
|
+
}
|
|
26623
|
+
}
|
|
26624
|
+
|
|
24372
26625
|
/**
|
|
24373
26626
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
24374
26627
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -25040,9 +27293,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
25040
27293
|
export interface GlobalNodeSetting {
|
|
25041
27294
|
/**
|
|
25042
27295
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
25043
|
-
* be empty. Also accepts
|
|
27296
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
27297
|
+
* EquationPromptCondition objects.
|
|
25044
27298
|
*/
|
|
25045
|
-
condition:
|
|
27299
|
+
condition:
|
|
27300
|
+
| string
|
|
27301
|
+
| GlobalNodeSetting.PromptCondition
|
|
27302
|
+
| GlobalNodeSetting.EquationCondition
|
|
27303
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
25046
27304
|
|
|
25047
27305
|
/**
|
|
25048
27306
|
* The same global node won't be triggered again within the next N node
|
|
@@ -25112,33 +27370,91 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
25112
27370
|
}
|
|
25113
27371
|
}
|
|
25114
27372
|
|
|
25115
|
-
|
|
25116
|
-
|
|
25117
|
-
* transitions when its condition matches. Equation conditions compare dynamic
|
|
25118
|
-
* variables and are checked in array order; the first match wins. If no equation
|
|
25119
|
-
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
25120
|
-
* selects a matching transition, if any.
|
|
25121
|
-
*/
|
|
25122
|
-
export interface GoBackCondition {
|
|
25123
|
-
/**
|
|
25124
|
-
* Unique identifier for the edge
|
|
25125
|
-
*/
|
|
25126
|
-
id: string;
|
|
27373
|
+
export interface EquationPromptCondition {
|
|
27374
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
25127
27375
|
|
|
25128
|
-
|
|
27376
|
+
operator: '||' | '&&';
|
|
27377
|
+
|
|
27378
|
+
type: 'equation_prompt';
|
|
25129
27379
|
|
|
25130
27380
|
/**
|
|
25131
|
-
*
|
|
27381
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
27382
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
27383
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
27384
|
+
* timing.
|
|
25132
27385
|
*/
|
|
25133
|
-
|
|
27386
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
25134
27387
|
}
|
|
25135
27388
|
|
|
25136
|
-
export namespace
|
|
25137
|
-
export interface
|
|
27389
|
+
export namespace EquationPromptCondition {
|
|
27390
|
+
export interface Equation {
|
|
25138
27391
|
/**
|
|
25139
|
-
*
|
|
27392
|
+
* Left side of the equation
|
|
25140
27393
|
*/
|
|
25141
|
-
|
|
27394
|
+
left: string;
|
|
27395
|
+
|
|
27396
|
+
operator:
|
|
27397
|
+
| '=='
|
|
27398
|
+
| '!='
|
|
27399
|
+
| '>'
|
|
27400
|
+
| '>='
|
|
27401
|
+
| '<'
|
|
27402
|
+
| '<='
|
|
27403
|
+
| 'contains'
|
|
27404
|
+
| 'not_contains'
|
|
27405
|
+
| 'exists'
|
|
27406
|
+
| 'not_exist';
|
|
27407
|
+
|
|
27408
|
+
/**
|
|
27409
|
+
* Right side of the equation. The right side of the equation not required when
|
|
27410
|
+
* "exists" or "not_exist" are selected.
|
|
27411
|
+
*/
|
|
27412
|
+
right?: string;
|
|
27413
|
+
}
|
|
27414
|
+
|
|
27415
|
+
/**
|
|
27416
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
27417
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
27418
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
27419
|
+
* timing.
|
|
27420
|
+
*/
|
|
27421
|
+
export interface PromptCondition {
|
|
27422
|
+
/**
|
|
27423
|
+
* Prompt condition text
|
|
27424
|
+
*/
|
|
27425
|
+
prompt: string;
|
|
27426
|
+
|
|
27427
|
+
type: 'prompt';
|
|
27428
|
+
}
|
|
27429
|
+
}
|
|
27430
|
+
|
|
27431
|
+
/**
|
|
27432
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
27433
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
27434
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
27435
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
27436
|
+
* selects a matching transition, if any.
|
|
27437
|
+
*/
|
|
27438
|
+
export interface GoBackCondition {
|
|
27439
|
+
/**
|
|
27440
|
+
* Unique identifier for the edge
|
|
27441
|
+
*/
|
|
27442
|
+
id: string;
|
|
27443
|
+
|
|
27444
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
27445
|
+
|
|
27446
|
+
/**
|
|
27447
|
+
* ID of the destination node
|
|
27448
|
+
*/
|
|
27449
|
+
destination_node_id?: string;
|
|
27450
|
+
}
|
|
27451
|
+
|
|
27452
|
+
export namespace GoBackCondition {
|
|
27453
|
+
export interface PromptCondition {
|
|
27454
|
+
/**
|
|
27455
|
+
* Prompt condition text
|
|
27456
|
+
*/
|
|
27457
|
+
prompt: string;
|
|
25142
27458
|
|
|
25143
27459
|
type: 'prompt';
|
|
25144
27460
|
}
|
|
@@ -25590,9 +27906,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
25590
27906
|
export interface GlobalNodeSetting {
|
|
25591
27907
|
/**
|
|
25592
27908
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
25593
|
-
* be empty. Also accepts
|
|
27909
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
27910
|
+
* EquationPromptCondition objects.
|
|
25594
27911
|
*/
|
|
25595
|
-
condition:
|
|
27912
|
+
condition:
|
|
27913
|
+
| string
|
|
27914
|
+
| GlobalNodeSetting.PromptCondition
|
|
27915
|
+
| GlobalNodeSetting.EquationCondition
|
|
27916
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
25596
27917
|
|
|
25597
27918
|
/**
|
|
25598
27919
|
* The same global node won't be triggered again within the next N node
|
|
@@ -25662,6 +27983,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
25662
27983
|
}
|
|
25663
27984
|
}
|
|
25664
27985
|
|
|
27986
|
+
export interface EquationPromptCondition {
|
|
27987
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
27988
|
+
|
|
27989
|
+
operator: '||' | '&&';
|
|
27990
|
+
|
|
27991
|
+
type: 'equation_prompt';
|
|
27992
|
+
|
|
27993
|
+
/**
|
|
27994
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
27995
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
27996
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
27997
|
+
* timing.
|
|
27998
|
+
*/
|
|
27999
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
28000
|
+
}
|
|
28001
|
+
|
|
28002
|
+
export namespace EquationPromptCondition {
|
|
28003
|
+
export interface Equation {
|
|
28004
|
+
/**
|
|
28005
|
+
* Left side of the equation
|
|
28006
|
+
*/
|
|
28007
|
+
left: string;
|
|
28008
|
+
|
|
28009
|
+
operator:
|
|
28010
|
+
| '=='
|
|
28011
|
+
| '!='
|
|
28012
|
+
| '>'
|
|
28013
|
+
| '>='
|
|
28014
|
+
| '<'
|
|
28015
|
+
| '<='
|
|
28016
|
+
| 'contains'
|
|
28017
|
+
| 'not_contains'
|
|
28018
|
+
| 'exists'
|
|
28019
|
+
| 'not_exist';
|
|
28020
|
+
|
|
28021
|
+
/**
|
|
28022
|
+
* Right side of the equation. The right side of the equation not required when
|
|
28023
|
+
* "exists" or "not_exist" are selected.
|
|
28024
|
+
*/
|
|
28025
|
+
right?: string;
|
|
28026
|
+
}
|
|
28027
|
+
|
|
28028
|
+
/**
|
|
28029
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
28030
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
28031
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
28032
|
+
* timing.
|
|
28033
|
+
*/
|
|
28034
|
+
export interface PromptCondition {
|
|
28035
|
+
/**
|
|
28036
|
+
* Prompt condition text
|
|
28037
|
+
*/
|
|
28038
|
+
prompt: string;
|
|
28039
|
+
|
|
28040
|
+
type: 'prompt';
|
|
28041
|
+
}
|
|
28042
|
+
}
|
|
28043
|
+
|
|
25665
28044
|
/**
|
|
25666
28045
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
25667
28046
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -26097,9 +28476,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
26097
28476
|
export interface GlobalNodeSetting {
|
|
26098
28477
|
/**
|
|
26099
28478
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
26100
|
-
* be empty. Also accepts
|
|
28479
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
28480
|
+
* EquationPromptCondition objects.
|
|
26101
28481
|
*/
|
|
26102
|
-
condition:
|
|
28482
|
+
condition:
|
|
28483
|
+
| string
|
|
28484
|
+
| GlobalNodeSetting.PromptCondition
|
|
28485
|
+
| GlobalNodeSetting.EquationCondition
|
|
28486
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
26103
28487
|
|
|
26104
28488
|
/**
|
|
26105
28489
|
* The same global node won't be triggered again within the next N node
|
|
@@ -26169,6 +28553,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
26169
28553
|
}
|
|
26170
28554
|
}
|
|
26171
28555
|
|
|
28556
|
+
export interface EquationPromptCondition {
|
|
28557
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
28558
|
+
|
|
28559
|
+
operator: '||' | '&&';
|
|
28560
|
+
|
|
28561
|
+
type: 'equation_prompt';
|
|
28562
|
+
|
|
28563
|
+
/**
|
|
28564
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
28565
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
28566
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
28567
|
+
* timing.
|
|
28568
|
+
*/
|
|
28569
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
28570
|
+
}
|
|
28571
|
+
|
|
28572
|
+
export namespace EquationPromptCondition {
|
|
28573
|
+
export interface Equation {
|
|
28574
|
+
/**
|
|
28575
|
+
* Left side of the equation
|
|
28576
|
+
*/
|
|
28577
|
+
left: string;
|
|
28578
|
+
|
|
28579
|
+
operator:
|
|
28580
|
+
| '=='
|
|
28581
|
+
| '!='
|
|
28582
|
+
| '>'
|
|
28583
|
+
| '>='
|
|
28584
|
+
| '<'
|
|
28585
|
+
| '<='
|
|
28586
|
+
| 'contains'
|
|
28587
|
+
| 'not_contains'
|
|
28588
|
+
| 'exists'
|
|
28589
|
+
| 'not_exist';
|
|
28590
|
+
|
|
28591
|
+
/**
|
|
28592
|
+
* Right side of the equation. The right side of the equation not required when
|
|
28593
|
+
* "exists" or "not_exist" are selected.
|
|
28594
|
+
*/
|
|
28595
|
+
right?: string;
|
|
28596
|
+
}
|
|
28597
|
+
|
|
28598
|
+
/**
|
|
28599
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
28600
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
28601
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
28602
|
+
* timing.
|
|
28603
|
+
*/
|
|
28604
|
+
export interface PromptCondition {
|
|
28605
|
+
/**
|
|
28606
|
+
* Prompt condition text
|
|
28607
|
+
*/
|
|
28608
|
+
prompt: string;
|
|
28609
|
+
|
|
28610
|
+
type: 'prompt';
|
|
28611
|
+
}
|
|
28612
|
+
}
|
|
28613
|
+
|
|
26172
28614
|
/**
|
|
26173
28615
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
26174
28616
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -26614,9 +29056,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
26614
29056
|
export interface GlobalNodeSetting {
|
|
26615
29057
|
/**
|
|
26616
29058
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
26617
|
-
* be empty. Also accepts
|
|
29059
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
29060
|
+
* EquationPromptCondition objects.
|
|
26618
29061
|
*/
|
|
26619
|
-
condition:
|
|
29062
|
+
condition:
|
|
29063
|
+
| string
|
|
29064
|
+
| GlobalNodeSetting.PromptCondition
|
|
29065
|
+
| GlobalNodeSetting.EquationCondition
|
|
29066
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
26620
29067
|
|
|
26621
29068
|
/**
|
|
26622
29069
|
* The same global node won't be triggered again within the next N node
|
|
@@ -26686,6 +29133,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
26686
29133
|
}
|
|
26687
29134
|
}
|
|
26688
29135
|
|
|
29136
|
+
export interface EquationPromptCondition {
|
|
29137
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
29138
|
+
|
|
29139
|
+
operator: '||' | '&&';
|
|
29140
|
+
|
|
29141
|
+
type: 'equation_prompt';
|
|
29142
|
+
|
|
29143
|
+
/**
|
|
29144
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
29145
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
29146
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
29147
|
+
* timing.
|
|
29148
|
+
*/
|
|
29149
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
29150
|
+
}
|
|
29151
|
+
|
|
29152
|
+
export namespace EquationPromptCondition {
|
|
29153
|
+
export interface Equation {
|
|
29154
|
+
/**
|
|
29155
|
+
* Left side of the equation
|
|
29156
|
+
*/
|
|
29157
|
+
left: string;
|
|
29158
|
+
|
|
29159
|
+
operator:
|
|
29160
|
+
| '=='
|
|
29161
|
+
| '!='
|
|
29162
|
+
| '>'
|
|
29163
|
+
| '>='
|
|
29164
|
+
| '<'
|
|
29165
|
+
| '<='
|
|
29166
|
+
| 'contains'
|
|
29167
|
+
| 'not_contains'
|
|
29168
|
+
| 'exists'
|
|
29169
|
+
| 'not_exist';
|
|
29170
|
+
|
|
29171
|
+
/**
|
|
29172
|
+
* Right side of the equation. The right side of the equation not required when
|
|
29173
|
+
* "exists" or "not_exist" are selected.
|
|
29174
|
+
*/
|
|
29175
|
+
right?: string;
|
|
29176
|
+
}
|
|
29177
|
+
|
|
29178
|
+
/**
|
|
29179
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
29180
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
29181
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
29182
|
+
* timing.
|
|
29183
|
+
*/
|
|
29184
|
+
export interface PromptCondition {
|
|
29185
|
+
/**
|
|
29186
|
+
* Prompt condition text
|
|
29187
|
+
*/
|
|
29188
|
+
prompt: string;
|
|
29189
|
+
|
|
29190
|
+
type: 'prompt';
|
|
29191
|
+
}
|
|
29192
|
+
}
|
|
29193
|
+
|
|
26689
29194
|
/**
|
|
26690
29195
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
26691
29196
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -27263,9 +29768,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
27263
29768
|
export interface GlobalNodeSetting {
|
|
27264
29769
|
/**
|
|
27265
29770
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
27266
|
-
* be empty. Also accepts
|
|
29771
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
29772
|
+
* EquationPromptCondition objects.
|
|
27267
29773
|
*/
|
|
27268
|
-
condition:
|
|
29774
|
+
condition:
|
|
29775
|
+
| string
|
|
29776
|
+
| GlobalNodeSetting.PromptCondition
|
|
29777
|
+
| GlobalNodeSetting.EquationCondition
|
|
29778
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
27269
29779
|
|
|
27270
29780
|
/**
|
|
27271
29781
|
* The same global node won't be triggered again within the next N node
|
|
@@ -27335,6 +29845,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
27335
29845
|
}
|
|
27336
29846
|
}
|
|
27337
29847
|
|
|
29848
|
+
export interface EquationPromptCondition {
|
|
29849
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
29850
|
+
|
|
29851
|
+
operator: '||' | '&&';
|
|
29852
|
+
|
|
29853
|
+
type: 'equation_prompt';
|
|
29854
|
+
|
|
29855
|
+
/**
|
|
29856
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
29857
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
29858
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
29859
|
+
* timing.
|
|
29860
|
+
*/
|
|
29861
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
29862
|
+
}
|
|
29863
|
+
|
|
29864
|
+
export namespace EquationPromptCondition {
|
|
29865
|
+
export interface Equation {
|
|
29866
|
+
/**
|
|
29867
|
+
* Left side of the equation
|
|
29868
|
+
*/
|
|
29869
|
+
left: string;
|
|
29870
|
+
|
|
29871
|
+
operator:
|
|
29872
|
+
| '=='
|
|
29873
|
+
| '!='
|
|
29874
|
+
| '>'
|
|
29875
|
+
| '>='
|
|
29876
|
+
| '<'
|
|
29877
|
+
| '<='
|
|
29878
|
+
| 'contains'
|
|
29879
|
+
| 'not_contains'
|
|
29880
|
+
| 'exists'
|
|
29881
|
+
| 'not_exist';
|
|
29882
|
+
|
|
29883
|
+
/**
|
|
29884
|
+
* Right side of the equation. The right side of the equation not required when
|
|
29885
|
+
* "exists" or "not_exist" are selected.
|
|
29886
|
+
*/
|
|
29887
|
+
right?: string;
|
|
29888
|
+
}
|
|
29889
|
+
|
|
29890
|
+
/**
|
|
29891
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
29892
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
29893
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
29894
|
+
* timing.
|
|
29895
|
+
*/
|
|
29896
|
+
export interface PromptCondition {
|
|
29897
|
+
/**
|
|
29898
|
+
* Prompt condition text
|
|
29899
|
+
*/
|
|
29900
|
+
prompt: string;
|
|
29901
|
+
|
|
29902
|
+
type: 'prompt';
|
|
29903
|
+
}
|
|
29904
|
+
}
|
|
29905
|
+
|
|
27338
29906
|
/**
|
|
27339
29907
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
27340
29908
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -27699,9 +30267,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
27699
30267
|
export interface GlobalNodeSetting {
|
|
27700
30268
|
/**
|
|
27701
30269
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
27702
|
-
* be empty. Also accepts
|
|
30270
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
30271
|
+
* EquationPromptCondition objects.
|
|
27703
30272
|
*/
|
|
27704
|
-
condition:
|
|
30273
|
+
condition:
|
|
30274
|
+
| string
|
|
30275
|
+
| GlobalNodeSetting.PromptCondition
|
|
30276
|
+
| GlobalNodeSetting.EquationCondition
|
|
30277
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
27705
30278
|
|
|
27706
30279
|
/**
|
|
27707
30280
|
* The same global node won't be triggered again within the next N node
|
|
@@ -27771,6 +30344,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
27771
30344
|
}
|
|
27772
30345
|
}
|
|
27773
30346
|
|
|
30347
|
+
export interface EquationPromptCondition {
|
|
30348
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
30349
|
+
|
|
30350
|
+
operator: '||' | '&&';
|
|
30351
|
+
|
|
30352
|
+
type: 'equation_prompt';
|
|
30353
|
+
|
|
30354
|
+
/**
|
|
30355
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
30356
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
30357
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
30358
|
+
* timing.
|
|
30359
|
+
*/
|
|
30360
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
30361
|
+
}
|
|
30362
|
+
|
|
30363
|
+
export namespace EquationPromptCondition {
|
|
30364
|
+
export interface Equation {
|
|
30365
|
+
/**
|
|
30366
|
+
* Left side of the equation
|
|
30367
|
+
*/
|
|
30368
|
+
left: string;
|
|
30369
|
+
|
|
30370
|
+
operator:
|
|
30371
|
+
| '=='
|
|
30372
|
+
| '!='
|
|
30373
|
+
| '>'
|
|
30374
|
+
| '>='
|
|
30375
|
+
| '<'
|
|
30376
|
+
| '<='
|
|
30377
|
+
| 'contains'
|
|
30378
|
+
| 'not_contains'
|
|
30379
|
+
| 'exists'
|
|
30380
|
+
| 'not_exist';
|
|
30381
|
+
|
|
30382
|
+
/**
|
|
30383
|
+
* Right side of the equation. The right side of the equation not required when
|
|
30384
|
+
* "exists" or "not_exist" are selected.
|
|
30385
|
+
*/
|
|
30386
|
+
right?: string;
|
|
30387
|
+
}
|
|
30388
|
+
|
|
30389
|
+
/**
|
|
30390
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
30391
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
30392
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
30393
|
+
* timing.
|
|
30394
|
+
*/
|
|
30395
|
+
export interface PromptCondition {
|
|
30396
|
+
/**
|
|
30397
|
+
* Prompt condition text
|
|
30398
|
+
*/
|
|
30399
|
+
prompt: string;
|
|
30400
|
+
|
|
30401
|
+
type: 'prompt';
|
|
30402
|
+
}
|
|
30403
|
+
}
|
|
30404
|
+
|
|
27774
30405
|
/**
|
|
27775
30406
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
27776
30407
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -28266,9 +30897,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
28266
30897
|
export interface GlobalNodeSetting {
|
|
28267
30898
|
/**
|
|
28268
30899
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
28269
|
-
* be empty. Also accepts
|
|
30900
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
30901
|
+
* EquationPromptCondition objects.
|
|
28270
30902
|
*/
|
|
28271
|
-
condition:
|
|
30903
|
+
condition:
|
|
30904
|
+
| string
|
|
30905
|
+
| GlobalNodeSetting.PromptCondition
|
|
30906
|
+
| GlobalNodeSetting.EquationCondition
|
|
30907
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
28272
30908
|
|
|
28273
30909
|
/**
|
|
28274
30910
|
* The same global node won't be triggered again within the next N node
|
|
@@ -28338,6 +30974,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
28338
30974
|
}
|
|
28339
30975
|
}
|
|
28340
30976
|
|
|
30977
|
+
export interface EquationPromptCondition {
|
|
30978
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
30979
|
+
|
|
30980
|
+
operator: '||' | '&&';
|
|
30981
|
+
|
|
30982
|
+
type: 'equation_prompt';
|
|
30983
|
+
|
|
30984
|
+
/**
|
|
30985
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
30986
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
30987
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
30988
|
+
* timing.
|
|
30989
|
+
*/
|
|
30990
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
30991
|
+
}
|
|
30992
|
+
|
|
30993
|
+
export namespace EquationPromptCondition {
|
|
30994
|
+
export interface Equation {
|
|
30995
|
+
/**
|
|
30996
|
+
* Left side of the equation
|
|
30997
|
+
*/
|
|
30998
|
+
left: string;
|
|
30999
|
+
|
|
31000
|
+
operator:
|
|
31001
|
+
| '=='
|
|
31002
|
+
| '!='
|
|
31003
|
+
| '>'
|
|
31004
|
+
| '>='
|
|
31005
|
+
| '<'
|
|
31006
|
+
| '<='
|
|
31007
|
+
| 'contains'
|
|
31008
|
+
| 'not_contains'
|
|
31009
|
+
| 'exists'
|
|
31010
|
+
| 'not_exist';
|
|
31011
|
+
|
|
31012
|
+
/**
|
|
31013
|
+
* Right side of the equation. The right side of the equation not required when
|
|
31014
|
+
* "exists" or "not_exist" are selected.
|
|
31015
|
+
*/
|
|
31016
|
+
right?: string;
|
|
31017
|
+
}
|
|
31018
|
+
|
|
31019
|
+
/**
|
|
31020
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
31021
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
31022
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
31023
|
+
* timing.
|
|
31024
|
+
*/
|
|
31025
|
+
export interface PromptCondition {
|
|
31026
|
+
/**
|
|
31027
|
+
* Prompt condition text
|
|
31028
|
+
*/
|
|
31029
|
+
prompt: string;
|
|
31030
|
+
|
|
31031
|
+
type: 'prompt';
|
|
31032
|
+
}
|
|
31033
|
+
}
|
|
31034
|
+
|
|
28341
31035
|
/**
|
|
28342
31036
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
28343
31037
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -28807,9 +31501,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
28807
31501
|
export interface GlobalNodeSetting {
|
|
28808
31502
|
/**
|
|
28809
31503
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
28810
|
-
* be empty. Also accepts
|
|
31504
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
31505
|
+
* EquationPromptCondition objects.
|
|
28811
31506
|
*/
|
|
28812
|
-
condition:
|
|
31507
|
+
condition:
|
|
31508
|
+
| string
|
|
31509
|
+
| GlobalNodeSetting.PromptCondition
|
|
31510
|
+
| GlobalNodeSetting.EquationCondition
|
|
31511
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
28813
31512
|
|
|
28814
31513
|
/**
|
|
28815
31514
|
* The same global node won't be triggered again within the next N node
|
|
@@ -28879,6 +31578,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
28879
31578
|
}
|
|
28880
31579
|
}
|
|
28881
31580
|
|
|
31581
|
+
export interface EquationPromptCondition {
|
|
31582
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
31583
|
+
|
|
31584
|
+
operator: '||' | '&&';
|
|
31585
|
+
|
|
31586
|
+
type: 'equation_prompt';
|
|
31587
|
+
|
|
31588
|
+
/**
|
|
31589
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
31590
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
31591
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
31592
|
+
* timing.
|
|
31593
|
+
*/
|
|
31594
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
31595
|
+
}
|
|
31596
|
+
|
|
31597
|
+
export namespace EquationPromptCondition {
|
|
31598
|
+
export interface Equation {
|
|
31599
|
+
/**
|
|
31600
|
+
* Left side of the equation
|
|
31601
|
+
*/
|
|
31602
|
+
left: string;
|
|
31603
|
+
|
|
31604
|
+
operator:
|
|
31605
|
+
| '=='
|
|
31606
|
+
| '!='
|
|
31607
|
+
| '>'
|
|
31608
|
+
| '>='
|
|
31609
|
+
| '<'
|
|
31610
|
+
| '<='
|
|
31611
|
+
| 'contains'
|
|
31612
|
+
| 'not_contains'
|
|
31613
|
+
| 'exists'
|
|
31614
|
+
| 'not_exist';
|
|
31615
|
+
|
|
31616
|
+
/**
|
|
31617
|
+
* Right side of the equation. The right side of the equation not required when
|
|
31618
|
+
* "exists" or "not_exist" are selected.
|
|
31619
|
+
*/
|
|
31620
|
+
right?: string;
|
|
31621
|
+
}
|
|
31622
|
+
|
|
31623
|
+
/**
|
|
31624
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
31625
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
31626
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
31627
|
+
* timing.
|
|
31628
|
+
*/
|
|
31629
|
+
export interface PromptCondition {
|
|
31630
|
+
/**
|
|
31631
|
+
* Prompt condition text
|
|
31632
|
+
*/
|
|
31633
|
+
prompt: string;
|
|
31634
|
+
|
|
31635
|
+
type: 'prompt';
|
|
31636
|
+
}
|
|
31637
|
+
}
|
|
31638
|
+
|
|
28882
31639
|
/**
|
|
28883
31640
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
28884
31641
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -29072,9 +31829,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
29072
31829
|
export interface GlobalNodeSetting {
|
|
29073
31830
|
/**
|
|
29074
31831
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
29075
|
-
* be empty. Also accepts
|
|
31832
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
31833
|
+
* EquationPromptCondition objects.
|
|
29076
31834
|
*/
|
|
29077
|
-
condition:
|
|
31835
|
+
condition:
|
|
31836
|
+
| string
|
|
31837
|
+
| GlobalNodeSetting.PromptCondition
|
|
31838
|
+
| GlobalNodeSetting.EquationCondition
|
|
31839
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
29078
31840
|
|
|
29079
31841
|
/**
|
|
29080
31842
|
* The same global node won't be triggered again within the next N node
|
|
@@ -29144,6 +31906,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
29144
31906
|
}
|
|
29145
31907
|
}
|
|
29146
31908
|
|
|
31909
|
+
export interface EquationPromptCondition {
|
|
31910
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
31911
|
+
|
|
31912
|
+
operator: '||' | '&&';
|
|
31913
|
+
|
|
31914
|
+
type: 'equation_prompt';
|
|
31915
|
+
|
|
31916
|
+
/**
|
|
31917
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
31918
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
31919
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
31920
|
+
* timing.
|
|
31921
|
+
*/
|
|
31922
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
31923
|
+
}
|
|
31924
|
+
|
|
31925
|
+
export namespace EquationPromptCondition {
|
|
31926
|
+
export interface Equation {
|
|
31927
|
+
/**
|
|
31928
|
+
* Left side of the equation
|
|
31929
|
+
*/
|
|
31930
|
+
left: string;
|
|
31931
|
+
|
|
31932
|
+
operator:
|
|
31933
|
+
| '=='
|
|
31934
|
+
| '!='
|
|
31935
|
+
| '>'
|
|
31936
|
+
| '>='
|
|
31937
|
+
| '<'
|
|
31938
|
+
| '<='
|
|
31939
|
+
| 'contains'
|
|
31940
|
+
| 'not_contains'
|
|
31941
|
+
| 'exists'
|
|
31942
|
+
| 'not_exist';
|
|
31943
|
+
|
|
31944
|
+
/**
|
|
31945
|
+
* Right side of the equation. The right side of the equation not required when
|
|
31946
|
+
* "exists" or "not_exist" are selected.
|
|
31947
|
+
*/
|
|
31948
|
+
right?: string;
|
|
31949
|
+
}
|
|
31950
|
+
|
|
31951
|
+
/**
|
|
31952
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
31953
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
31954
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
31955
|
+
* timing.
|
|
31956
|
+
*/
|
|
31957
|
+
export interface PromptCondition {
|
|
31958
|
+
/**
|
|
31959
|
+
* Prompt condition text
|
|
31960
|
+
*/
|
|
31961
|
+
prompt: string;
|
|
31962
|
+
|
|
31963
|
+
type: 'prompt';
|
|
31964
|
+
}
|
|
31965
|
+
}
|
|
31966
|
+
|
|
29147
31967
|
/**
|
|
29148
31968
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
29149
31969
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -29410,9 +32230,14 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
29410
32230
|
export interface GlobalNodeSetting {
|
|
29411
32231
|
/**
|
|
29412
32232
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
29413
|
-
* be empty. Also accepts
|
|
32233
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
32234
|
+
* EquationPromptCondition objects.
|
|
29414
32235
|
*/
|
|
29415
|
-
condition:
|
|
32236
|
+
condition:
|
|
32237
|
+
| string
|
|
32238
|
+
| GlobalNodeSetting.PromptCondition
|
|
32239
|
+
| GlobalNodeSetting.EquationCondition
|
|
32240
|
+
| GlobalNodeSetting.EquationPromptCondition;
|
|
29416
32241
|
|
|
29417
32242
|
/**
|
|
29418
32243
|
* The same global node won't be triggered again within the next N node
|
|
@@ -29482,6 +32307,64 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
29482
32307
|
}
|
|
29483
32308
|
}
|
|
29484
32309
|
|
|
32310
|
+
export interface EquationPromptCondition {
|
|
32311
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
32312
|
+
|
|
32313
|
+
operator: '||' | '&&';
|
|
32314
|
+
|
|
32315
|
+
type: 'equation_prompt';
|
|
32316
|
+
|
|
32317
|
+
/**
|
|
32318
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
32319
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
32320
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
32321
|
+
* timing.
|
|
32322
|
+
*/
|
|
32323
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
32324
|
+
}
|
|
32325
|
+
|
|
32326
|
+
export namespace EquationPromptCondition {
|
|
32327
|
+
export interface Equation {
|
|
32328
|
+
/**
|
|
32329
|
+
* Left side of the equation
|
|
32330
|
+
*/
|
|
32331
|
+
left: string;
|
|
32332
|
+
|
|
32333
|
+
operator:
|
|
32334
|
+
| '=='
|
|
32335
|
+
| '!='
|
|
32336
|
+
| '>'
|
|
32337
|
+
| '>='
|
|
32338
|
+
| '<'
|
|
32339
|
+
| '<='
|
|
32340
|
+
| 'contains'
|
|
32341
|
+
| 'not_contains'
|
|
32342
|
+
| 'exists'
|
|
32343
|
+
| 'not_exist';
|
|
32344
|
+
|
|
32345
|
+
/**
|
|
32346
|
+
* Right side of the equation. The right side of the equation not required when
|
|
32347
|
+
* "exists" or "not_exist" are selected.
|
|
32348
|
+
*/
|
|
32349
|
+
right?: string;
|
|
32350
|
+
}
|
|
32351
|
+
|
|
32352
|
+
/**
|
|
32353
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
32354
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
32355
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
32356
|
+
* timing.
|
|
32357
|
+
*/
|
|
32358
|
+
export interface PromptCondition {
|
|
32359
|
+
/**
|
|
32360
|
+
* Prompt condition text
|
|
32361
|
+
*/
|
|
32362
|
+
prompt: string;
|
|
32363
|
+
|
|
32364
|
+
type: 'prompt';
|
|
32365
|
+
}
|
|
32366
|
+
}
|
|
32367
|
+
|
|
29485
32368
|
/**
|
|
29486
32369
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
29487
32370
|
* transitions when its condition matches. Equation conditions compare dynamic
|