retell-sdk 6.1.1 → 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 +12 -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
|
@@ -137,6 +137,13 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
137
137
|
* responds. Use as the node's only outgoing edge.
|
|
138
138
|
*/
|
|
139
139
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
140
|
+
/**
|
|
141
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
142
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
143
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
144
|
+
* is entered.
|
|
145
|
+
*/
|
|
146
|
+
boosted_keywords?: Array<string> | null;
|
|
140
147
|
/**
|
|
141
148
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
142
149
|
*/
|
|
@@ -459,9 +466,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
459
466
|
interface GlobalNodeSetting {
|
|
460
467
|
/**
|
|
461
468
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
462
|
-
* be empty. Also accepts
|
|
469
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
470
|
+
* EquationPromptCondition objects.
|
|
463
471
|
*/
|
|
464
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
472
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
465
473
|
/**
|
|
466
474
|
* The same global node won't be triggered again within the next N node
|
|
467
475
|
* transitions.
|
|
@@ -508,6 +516,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
508
516
|
right?: string;
|
|
509
517
|
}
|
|
510
518
|
}
|
|
519
|
+
interface EquationPromptCondition {
|
|
520
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
521
|
+
operator: '||' | '&&';
|
|
522
|
+
type: 'equation_prompt';
|
|
523
|
+
/**
|
|
524
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
525
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
526
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
527
|
+
* timing.
|
|
528
|
+
*/
|
|
529
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
530
|
+
}
|
|
531
|
+
namespace EquationPromptCondition {
|
|
532
|
+
interface Equation {
|
|
533
|
+
/**
|
|
534
|
+
* Left side of the equation
|
|
535
|
+
*/
|
|
536
|
+
left: string;
|
|
537
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
538
|
+
/**
|
|
539
|
+
* Right side of the equation. The right side of the equation not required when
|
|
540
|
+
* "exists" or "not_exist" are selected.
|
|
541
|
+
*/
|
|
542
|
+
right?: string;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
546
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
547
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
548
|
+
* timing.
|
|
549
|
+
*/
|
|
550
|
+
interface PromptCondition {
|
|
551
|
+
/**
|
|
552
|
+
* Prompt condition text
|
|
553
|
+
*/
|
|
554
|
+
prompt: string;
|
|
555
|
+
type: 'prompt';
|
|
556
|
+
}
|
|
557
|
+
}
|
|
511
558
|
/**
|
|
512
559
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
513
560
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -704,6 +751,13 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
704
751
|
* responds. Use as the node's only outgoing edge.
|
|
705
752
|
*/
|
|
706
753
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
754
|
+
/**
|
|
755
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
756
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
757
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
758
|
+
* is entered.
|
|
759
|
+
*/
|
|
760
|
+
boosted_keywords?: Array<string> | null;
|
|
707
761
|
/**
|
|
708
762
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
709
763
|
*/
|
|
@@ -1026,9 +1080,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1026
1080
|
interface GlobalNodeSetting {
|
|
1027
1081
|
/**
|
|
1028
1082
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
1029
|
-
* be empty. Also accepts
|
|
1083
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
1084
|
+
* EquationPromptCondition objects.
|
|
1030
1085
|
*/
|
|
1031
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
1086
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
1032
1087
|
/**
|
|
1033
1088
|
* The same global node won't be triggered again within the next N node
|
|
1034
1089
|
* transitions.
|
|
@@ -1075,6 +1130,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1075
1130
|
right?: string;
|
|
1076
1131
|
}
|
|
1077
1132
|
}
|
|
1133
|
+
interface EquationPromptCondition {
|
|
1134
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
1135
|
+
operator: '||' | '&&';
|
|
1136
|
+
type: 'equation_prompt';
|
|
1137
|
+
/**
|
|
1138
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
1139
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
1140
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
1141
|
+
* timing.
|
|
1142
|
+
*/
|
|
1143
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
1144
|
+
}
|
|
1145
|
+
namespace EquationPromptCondition {
|
|
1146
|
+
interface Equation {
|
|
1147
|
+
/**
|
|
1148
|
+
* Left side of the equation
|
|
1149
|
+
*/
|
|
1150
|
+
left: string;
|
|
1151
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
1152
|
+
/**
|
|
1153
|
+
* Right side of the equation. The right side of the equation not required when
|
|
1154
|
+
* "exists" or "not_exist" are selected.
|
|
1155
|
+
*/
|
|
1156
|
+
right?: string;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
1160
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
1161
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
1162
|
+
* timing.
|
|
1163
|
+
*/
|
|
1164
|
+
interface PromptCondition {
|
|
1165
|
+
/**
|
|
1166
|
+
* Prompt condition text
|
|
1167
|
+
*/
|
|
1168
|
+
prompt: string;
|
|
1169
|
+
type: 'prompt';
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1078
1172
|
/**
|
|
1079
1173
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
1080
1174
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -2352,9 +2446,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2352
2446
|
interface GlobalNodeSetting {
|
|
2353
2447
|
/**
|
|
2354
2448
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
2355
|
-
* be empty. Also accepts
|
|
2449
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
2450
|
+
* EquationPromptCondition objects.
|
|
2356
2451
|
*/
|
|
2357
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
2452
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
2358
2453
|
/**
|
|
2359
2454
|
* The same global node won't be triggered again within the next N node
|
|
2360
2455
|
* transitions.
|
|
@@ -2401,6 +2496,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2401
2496
|
right?: string;
|
|
2402
2497
|
}
|
|
2403
2498
|
}
|
|
2499
|
+
interface EquationPromptCondition {
|
|
2500
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
2501
|
+
operator: '||' | '&&';
|
|
2502
|
+
type: 'equation_prompt';
|
|
2503
|
+
/**
|
|
2504
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
2505
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
2506
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
2507
|
+
* timing.
|
|
2508
|
+
*/
|
|
2509
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
2510
|
+
}
|
|
2511
|
+
namespace EquationPromptCondition {
|
|
2512
|
+
interface Equation {
|
|
2513
|
+
/**
|
|
2514
|
+
* Left side of the equation
|
|
2515
|
+
*/
|
|
2516
|
+
left: string;
|
|
2517
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
2518
|
+
/**
|
|
2519
|
+
* Right side of the equation. The right side of the equation not required when
|
|
2520
|
+
* "exists" or "not_exist" are selected.
|
|
2521
|
+
*/
|
|
2522
|
+
right?: string;
|
|
2523
|
+
}
|
|
2524
|
+
/**
|
|
2525
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
2526
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
2527
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
2528
|
+
* timing.
|
|
2529
|
+
*/
|
|
2530
|
+
interface PromptCondition {
|
|
2531
|
+
/**
|
|
2532
|
+
* Prompt condition text
|
|
2533
|
+
*/
|
|
2534
|
+
prompt: string;
|
|
2535
|
+
type: 'prompt';
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2404
2538
|
/**
|
|
2405
2539
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
2406
2540
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -2721,9 +2855,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2721
2855
|
interface GlobalNodeSetting {
|
|
2722
2856
|
/**
|
|
2723
2857
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
2724
|
-
* be empty. Also accepts
|
|
2858
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
2859
|
+
* EquationPromptCondition objects.
|
|
2725
2860
|
*/
|
|
2726
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
2861
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
2727
2862
|
/**
|
|
2728
2863
|
* The same global node won't be triggered again within the next N node
|
|
2729
2864
|
* transitions.
|
|
@@ -2770,6 +2905,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2770
2905
|
right?: string;
|
|
2771
2906
|
}
|
|
2772
2907
|
}
|
|
2908
|
+
interface EquationPromptCondition {
|
|
2909
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
2910
|
+
operator: '||' | '&&';
|
|
2911
|
+
type: 'equation_prompt';
|
|
2912
|
+
/**
|
|
2913
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
2914
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
2915
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
2916
|
+
* timing.
|
|
2917
|
+
*/
|
|
2918
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
2919
|
+
}
|
|
2920
|
+
namespace EquationPromptCondition {
|
|
2921
|
+
interface Equation {
|
|
2922
|
+
/**
|
|
2923
|
+
* Left side of the equation
|
|
2924
|
+
*/
|
|
2925
|
+
left: string;
|
|
2926
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
2927
|
+
/**
|
|
2928
|
+
* Right side of the equation. The right side of the equation not required when
|
|
2929
|
+
* "exists" or "not_exist" are selected.
|
|
2930
|
+
*/
|
|
2931
|
+
right?: string;
|
|
2932
|
+
}
|
|
2933
|
+
/**
|
|
2934
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
2935
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
2936
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
2937
|
+
* timing.
|
|
2938
|
+
*/
|
|
2939
|
+
interface PromptCondition {
|
|
2940
|
+
/**
|
|
2941
|
+
* Prompt condition text
|
|
2942
|
+
*/
|
|
2943
|
+
prompt: string;
|
|
2944
|
+
type: 'prompt';
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2773
2947
|
/**
|
|
2774
2948
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
2775
2949
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -3098,9 +3272,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3098
3272
|
interface GlobalNodeSetting {
|
|
3099
3273
|
/**
|
|
3100
3274
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
3101
|
-
* be empty. Also accepts
|
|
3275
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
3276
|
+
* EquationPromptCondition objects.
|
|
3102
3277
|
*/
|
|
3103
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
3278
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
3104
3279
|
/**
|
|
3105
3280
|
* The same global node won't be triggered again within the next N node
|
|
3106
3281
|
* transitions.
|
|
@@ -3147,6 +3322,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3147
3322
|
right?: string;
|
|
3148
3323
|
}
|
|
3149
3324
|
}
|
|
3325
|
+
interface EquationPromptCondition {
|
|
3326
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
3327
|
+
operator: '||' | '&&';
|
|
3328
|
+
type: 'equation_prompt';
|
|
3329
|
+
/**
|
|
3330
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
3331
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
3332
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
3333
|
+
* timing.
|
|
3334
|
+
*/
|
|
3335
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
3336
|
+
}
|
|
3337
|
+
namespace EquationPromptCondition {
|
|
3338
|
+
interface Equation {
|
|
3339
|
+
/**
|
|
3340
|
+
* Left side of the equation
|
|
3341
|
+
*/
|
|
3342
|
+
left: string;
|
|
3343
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
3344
|
+
/**
|
|
3345
|
+
* Right side of the equation. The right side of the equation not required when
|
|
3346
|
+
* "exists" or "not_exist" are selected.
|
|
3347
|
+
*/
|
|
3348
|
+
right?: string;
|
|
3349
|
+
}
|
|
3350
|
+
/**
|
|
3351
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
3352
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
3353
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
3354
|
+
* timing.
|
|
3355
|
+
*/
|
|
3356
|
+
interface PromptCondition {
|
|
3357
|
+
/**
|
|
3358
|
+
* Prompt condition text
|
|
3359
|
+
*/
|
|
3360
|
+
prompt: string;
|
|
3361
|
+
type: 'prompt';
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3150
3364
|
/**
|
|
3151
3365
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
3152
3366
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -3635,9 +3849,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3635
3849
|
interface GlobalNodeSetting {
|
|
3636
3850
|
/**
|
|
3637
3851
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
3638
|
-
* be empty. Also accepts
|
|
3852
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
3853
|
+
* EquationPromptCondition objects.
|
|
3639
3854
|
*/
|
|
3640
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
3855
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
3641
3856
|
/**
|
|
3642
3857
|
* The same global node won't be triggered again within the next N node
|
|
3643
3858
|
* transitions.
|
|
@@ -3684,6 +3899,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3684
3899
|
right?: string;
|
|
3685
3900
|
}
|
|
3686
3901
|
}
|
|
3902
|
+
interface EquationPromptCondition {
|
|
3903
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
3904
|
+
operator: '||' | '&&';
|
|
3905
|
+
type: 'equation_prompt';
|
|
3906
|
+
/**
|
|
3907
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
3908
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
3909
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
3910
|
+
* timing.
|
|
3911
|
+
*/
|
|
3912
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
3913
|
+
}
|
|
3914
|
+
namespace EquationPromptCondition {
|
|
3915
|
+
interface Equation {
|
|
3916
|
+
/**
|
|
3917
|
+
* Left side of the equation
|
|
3918
|
+
*/
|
|
3919
|
+
left: string;
|
|
3920
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
3921
|
+
/**
|
|
3922
|
+
* Right side of the equation. The right side of the equation not required when
|
|
3923
|
+
* "exists" or "not_exist" are selected.
|
|
3924
|
+
*/
|
|
3925
|
+
right?: string;
|
|
3926
|
+
}
|
|
3927
|
+
/**
|
|
3928
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
3929
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
3930
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
3931
|
+
* timing.
|
|
3932
|
+
*/
|
|
3933
|
+
interface PromptCondition {
|
|
3934
|
+
/**
|
|
3935
|
+
* Prompt condition text
|
|
3936
|
+
*/
|
|
3937
|
+
prompt: string;
|
|
3938
|
+
type: 'prompt';
|
|
3939
|
+
}
|
|
3940
|
+
}
|
|
3687
3941
|
/**
|
|
3688
3942
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
3689
3943
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -3998,9 +4252,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3998
4252
|
interface GlobalNodeSetting {
|
|
3999
4253
|
/**
|
|
4000
4254
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
4001
|
-
* be empty. Also accepts
|
|
4255
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
4256
|
+
* EquationPromptCondition objects.
|
|
4002
4257
|
*/
|
|
4003
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
4258
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
4004
4259
|
/**
|
|
4005
4260
|
* The same global node won't be triggered again within the next N node
|
|
4006
4261
|
* transitions.
|
|
@@ -4047,6 +4302,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
4047
4302
|
right?: string;
|
|
4048
4303
|
}
|
|
4049
4304
|
}
|
|
4305
|
+
interface EquationPromptCondition {
|
|
4306
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
4307
|
+
operator: '||' | '&&';
|
|
4308
|
+
type: 'equation_prompt';
|
|
4309
|
+
/**
|
|
4310
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
4311
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
4312
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
4313
|
+
* timing.
|
|
4314
|
+
*/
|
|
4315
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
4316
|
+
}
|
|
4317
|
+
namespace EquationPromptCondition {
|
|
4318
|
+
interface Equation {
|
|
4319
|
+
/**
|
|
4320
|
+
* Left side of the equation
|
|
4321
|
+
*/
|
|
4322
|
+
left: string;
|
|
4323
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
4324
|
+
/**
|
|
4325
|
+
* Right side of the equation. The right side of the equation not required when
|
|
4326
|
+
* "exists" or "not_exist" are selected.
|
|
4327
|
+
*/
|
|
4328
|
+
right?: string;
|
|
4329
|
+
}
|
|
4330
|
+
/**
|
|
4331
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
4332
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
4333
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
4334
|
+
* timing.
|
|
4335
|
+
*/
|
|
4336
|
+
interface PromptCondition {
|
|
4337
|
+
/**
|
|
4338
|
+
* Prompt condition text
|
|
4339
|
+
*/
|
|
4340
|
+
prompt: string;
|
|
4341
|
+
type: 'prompt';
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4050
4344
|
/**
|
|
4051
4345
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
4052
4346
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -4326,9 +4620,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
4326
4620
|
interface GlobalNodeSetting {
|
|
4327
4621
|
/**
|
|
4328
4622
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
4329
|
-
* be empty. Also accepts
|
|
4623
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
4624
|
+
* EquationPromptCondition objects.
|
|
4330
4625
|
*/
|
|
4331
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
4626
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
4332
4627
|
/**
|
|
4333
4628
|
* The same global node won't be triggered again within the next N node
|
|
4334
4629
|
* transitions.
|
|
@@ -4375,6 +4670,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
4375
4670
|
right?: string;
|
|
4376
4671
|
}
|
|
4377
4672
|
}
|
|
4673
|
+
interface EquationPromptCondition {
|
|
4674
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
4675
|
+
operator: '||' | '&&';
|
|
4676
|
+
type: 'equation_prompt';
|
|
4677
|
+
/**
|
|
4678
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
4679
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
4680
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
4681
|
+
* timing.
|
|
4682
|
+
*/
|
|
4683
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
4684
|
+
}
|
|
4685
|
+
namespace EquationPromptCondition {
|
|
4686
|
+
interface Equation {
|
|
4687
|
+
/**
|
|
4688
|
+
* Left side of the equation
|
|
4689
|
+
*/
|
|
4690
|
+
left: string;
|
|
4691
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
4692
|
+
/**
|
|
4693
|
+
* Right side of the equation. The right side of the equation not required when
|
|
4694
|
+
* "exists" or "not_exist" are selected.
|
|
4695
|
+
*/
|
|
4696
|
+
right?: string;
|
|
4697
|
+
}
|
|
4698
|
+
/**
|
|
4699
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
4700
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
4701
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
4702
|
+
* timing.
|
|
4703
|
+
*/
|
|
4704
|
+
interface PromptCondition {
|
|
4705
|
+
/**
|
|
4706
|
+
* Prompt condition text
|
|
4707
|
+
*/
|
|
4708
|
+
prompt: string;
|
|
4709
|
+
type: 'prompt';
|
|
4710
|
+
}
|
|
4711
|
+
}
|
|
4378
4712
|
/**
|
|
4379
4713
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
4380
4714
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -4662,9 +4996,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
4662
4996
|
interface GlobalNodeSetting {
|
|
4663
4997
|
/**
|
|
4664
4998
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
4665
|
-
* be empty. Also accepts
|
|
4999
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
5000
|
+
* EquationPromptCondition objects.
|
|
4666
5001
|
*/
|
|
4667
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
5002
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
4668
5003
|
/**
|
|
4669
5004
|
* The same global node won't be triggered again within the next N node
|
|
4670
5005
|
* transitions.
|
|
@@ -4711,6 +5046,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
4711
5046
|
right?: string;
|
|
4712
5047
|
}
|
|
4713
5048
|
}
|
|
5049
|
+
interface EquationPromptCondition {
|
|
5050
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
5051
|
+
operator: '||' | '&&';
|
|
5052
|
+
type: 'equation_prompt';
|
|
5053
|
+
/**
|
|
5054
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
5055
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
5056
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
5057
|
+
* timing.
|
|
5058
|
+
*/
|
|
5059
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
5060
|
+
}
|
|
5061
|
+
namespace EquationPromptCondition {
|
|
5062
|
+
interface Equation {
|
|
5063
|
+
/**
|
|
5064
|
+
* Left side of the equation
|
|
5065
|
+
*/
|
|
5066
|
+
left: string;
|
|
5067
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
5068
|
+
/**
|
|
5069
|
+
* Right side of the equation. The right side of the equation not required when
|
|
5070
|
+
* "exists" or "not_exist" are selected.
|
|
5071
|
+
*/
|
|
5072
|
+
right?: string;
|
|
5073
|
+
}
|
|
5074
|
+
/**
|
|
5075
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
5076
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
5077
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
5078
|
+
* timing.
|
|
5079
|
+
*/
|
|
5080
|
+
interface PromptCondition {
|
|
5081
|
+
/**
|
|
5082
|
+
* Prompt condition text
|
|
5083
|
+
*/
|
|
5084
|
+
prompt: string;
|
|
5085
|
+
type: 'prompt';
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
4714
5088
|
/**
|
|
4715
5089
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
4716
5090
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -5103,9 +5477,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
5103
5477
|
interface GlobalNodeSetting {
|
|
5104
5478
|
/**
|
|
5105
5479
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
5106
|
-
* be empty. Also accepts
|
|
5480
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
5481
|
+
* EquationPromptCondition objects.
|
|
5107
5482
|
*/
|
|
5108
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
5483
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
5109
5484
|
/**
|
|
5110
5485
|
* The same global node won't be triggered again within the next N node
|
|
5111
5486
|
* transitions.
|
|
@@ -5152,26 +5527,65 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
5152
5527
|
right?: string;
|
|
5153
5528
|
}
|
|
5154
5529
|
}
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
5160
|
-
* selects a matching transition, if any.
|
|
5161
|
-
*/
|
|
5162
|
-
interface GoBackCondition {
|
|
5163
|
-
/**
|
|
5164
|
-
* Unique identifier for the edge
|
|
5165
|
-
*/
|
|
5166
|
-
id: string;
|
|
5167
|
-
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
5530
|
+
interface EquationPromptCondition {
|
|
5531
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
5532
|
+
operator: '||' | '&&';
|
|
5533
|
+
type: 'equation_prompt';
|
|
5168
5534
|
/**
|
|
5169
|
-
*
|
|
5535
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
5536
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
5537
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
5538
|
+
* timing.
|
|
5170
5539
|
*/
|
|
5171
|
-
|
|
5540
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
5172
5541
|
}
|
|
5173
|
-
namespace
|
|
5174
|
-
interface
|
|
5542
|
+
namespace EquationPromptCondition {
|
|
5543
|
+
interface Equation {
|
|
5544
|
+
/**
|
|
5545
|
+
* Left side of the equation
|
|
5546
|
+
*/
|
|
5547
|
+
left: string;
|
|
5548
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
5549
|
+
/**
|
|
5550
|
+
* Right side of the equation. The right side of the equation not required when
|
|
5551
|
+
* "exists" or "not_exist" are selected.
|
|
5552
|
+
*/
|
|
5553
|
+
right?: string;
|
|
5554
|
+
}
|
|
5555
|
+
/**
|
|
5556
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
5557
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
5558
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
5559
|
+
* timing.
|
|
5560
|
+
*/
|
|
5561
|
+
interface PromptCondition {
|
|
5562
|
+
/**
|
|
5563
|
+
* Prompt condition text
|
|
5564
|
+
*/
|
|
5565
|
+
prompt: string;
|
|
5566
|
+
type: 'prompt';
|
|
5567
|
+
}
|
|
5568
|
+
}
|
|
5569
|
+
/**
|
|
5570
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
5571
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
5572
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
5573
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
5574
|
+
* selects a matching transition, if any.
|
|
5575
|
+
*/
|
|
5576
|
+
interface GoBackCondition {
|
|
5577
|
+
/**
|
|
5578
|
+
* Unique identifier for the edge
|
|
5579
|
+
*/
|
|
5580
|
+
id: string;
|
|
5581
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
5582
|
+
/**
|
|
5583
|
+
* ID of the destination node
|
|
5584
|
+
*/
|
|
5585
|
+
destination_node_id?: string;
|
|
5586
|
+
}
|
|
5587
|
+
namespace GoBackCondition {
|
|
5588
|
+
interface PromptCondition {
|
|
5175
5589
|
/**
|
|
5176
5590
|
* Prompt condition text
|
|
5177
5591
|
*/
|
|
@@ -5390,9 +5804,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
5390
5804
|
interface GlobalNodeSetting {
|
|
5391
5805
|
/**
|
|
5392
5806
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
5393
|
-
* be empty. Also accepts
|
|
5807
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
5808
|
+
* EquationPromptCondition objects.
|
|
5394
5809
|
*/
|
|
5395
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
5810
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
5396
5811
|
/**
|
|
5397
5812
|
* The same global node won't be triggered again within the next N node
|
|
5398
5813
|
* transitions.
|
|
@@ -5439,6 +5854,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
5439
5854
|
right?: string;
|
|
5440
5855
|
}
|
|
5441
5856
|
}
|
|
5857
|
+
interface EquationPromptCondition {
|
|
5858
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
5859
|
+
operator: '||' | '&&';
|
|
5860
|
+
type: 'equation_prompt';
|
|
5861
|
+
/**
|
|
5862
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
5863
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
5864
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
5865
|
+
* timing.
|
|
5866
|
+
*/
|
|
5867
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
5868
|
+
}
|
|
5869
|
+
namespace EquationPromptCondition {
|
|
5870
|
+
interface Equation {
|
|
5871
|
+
/**
|
|
5872
|
+
* Left side of the equation
|
|
5873
|
+
*/
|
|
5874
|
+
left: string;
|
|
5875
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
5876
|
+
/**
|
|
5877
|
+
* Right side of the equation. The right side of the equation not required when
|
|
5878
|
+
* "exists" or "not_exist" are selected.
|
|
5879
|
+
*/
|
|
5880
|
+
right?: string;
|
|
5881
|
+
}
|
|
5882
|
+
/**
|
|
5883
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
5884
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
5885
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
5886
|
+
* timing.
|
|
5887
|
+
*/
|
|
5888
|
+
interface PromptCondition {
|
|
5889
|
+
/**
|
|
5890
|
+
* Prompt condition text
|
|
5891
|
+
*/
|
|
5892
|
+
prompt: string;
|
|
5893
|
+
type: 'prompt';
|
|
5894
|
+
}
|
|
5895
|
+
}
|
|
5442
5896
|
/**
|
|
5443
5897
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
5444
5898
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -5769,9 +6223,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
5769
6223
|
interface GlobalNodeSetting {
|
|
5770
6224
|
/**
|
|
5771
6225
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
5772
|
-
* be empty. Also accepts
|
|
6226
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
6227
|
+
* EquationPromptCondition objects.
|
|
5773
6228
|
*/
|
|
5774
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
6229
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
5775
6230
|
/**
|
|
5776
6231
|
* The same global node won't be triggered again within the next N node
|
|
5777
6232
|
* transitions.
|
|
@@ -5818,6 +6273,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
5818
6273
|
right?: string;
|
|
5819
6274
|
}
|
|
5820
6275
|
}
|
|
6276
|
+
interface EquationPromptCondition {
|
|
6277
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
6278
|
+
operator: '||' | '&&';
|
|
6279
|
+
type: 'equation_prompt';
|
|
6280
|
+
/**
|
|
6281
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6282
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6283
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6284
|
+
* timing.
|
|
6285
|
+
*/
|
|
6286
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
6287
|
+
}
|
|
6288
|
+
namespace EquationPromptCondition {
|
|
6289
|
+
interface Equation {
|
|
6290
|
+
/**
|
|
6291
|
+
* Left side of the equation
|
|
6292
|
+
*/
|
|
6293
|
+
left: string;
|
|
6294
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
6295
|
+
/**
|
|
6296
|
+
* Right side of the equation. The right side of the equation not required when
|
|
6297
|
+
* "exists" or "not_exist" are selected.
|
|
6298
|
+
*/
|
|
6299
|
+
right?: string;
|
|
6300
|
+
}
|
|
6301
|
+
/**
|
|
6302
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6303
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6304
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6305
|
+
* timing.
|
|
6306
|
+
*/
|
|
6307
|
+
interface PromptCondition {
|
|
6308
|
+
/**
|
|
6309
|
+
* Prompt condition text
|
|
6310
|
+
*/
|
|
6311
|
+
prompt: string;
|
|
6312
|
+
type: 'prompt';
|
|
6313
|
+
}
|
|
6314
|
+
}
|
|
5821
6315
|
/**
|
|
5822
6316
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
5823
6317
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -6126,9 +6620,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
6126
6620
|
interface GlobalNodeSetting {
|
|
6127
6621
|
/**
|
|
6128
6622
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
6129
|
-
* be empty. Also accepts
|
|
6623
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
6624
|
+
* EquationPromptCondition objects.
|
|
6130
6625
|
*/
|
|
6131
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
6626
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
6132
6627
|
/**
|
|
6133
6628
|
* The same global node won't be triggered again within the next N node
|
|
6134
6629
|
* transitions.
|
|
@@ -6175,6 +6670,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
6175
6670
|
right?: string;
|
|
6176
6671
|
}
|
|
6177
6672
|
}
|
|
6673
|
+
interface EquationPromptCondition {
|
|
6674
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
6675
|
+
operator: '||' | '&&';
|
|
6676
|
+
type: 'equation_prompt';
|
|
6677
|
+
/**
|
|
6678
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6679
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6680
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6681
|
+
* timing.
|
|
6682
|
+
*/
|
|
6683
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
6684
|
+
}
|
|
6685
|
+
namespace EquationPromptCondition {
|
|
6686
|
+
interface Equation {
|
|
6687
|
+
/**
|
|
6688
|
+
* Left side of the equation
|
|
6689
|
+
*/
|
|
6690
|
+
left: string;
|
|
6691
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
6692
|
+
/**
|
|
6693
|
+
* Right side of the equation. The right side of the equation not required when
|
|
6694
|
+
* "exists" or "not_exist" are selected.
|
|
6695
|
+
*/
|
|
6696
|
+
right?: string;
|
|
6697
|
+
}
|
|
6698
|
+
/**
|
|
6699
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6700
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6701
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6702
|
+
* timing.
|
|
6703
|
+
*/
|
|
6704
|
+
interface PromptCondition {
|
|
6705
|
+
/**
|
|
6706
|
+
* Prompt condition text
|
|
6707
|
+
*/
|
|
6708
|
+
prompt: string;
|
|
6709
|
+
type: 'prompt';
|
|
6710
|
+
}
|
|
6711
|
+
}
|
|
6178
6712
|
/**
|
|
6179
6713
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
6180
6714
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -6309,9 +6843,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
6309
6843
|
interface GlobalNodeSetting {
|
|
6310
6844
|
/**
|
|
6311
6845
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
6312
|
-
* be empty. Also accepts
|
|
6846
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
6847
|
+
* EquationPromptCondition objects.
|
|
6313
6848
|
*/
|
|
6314
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
6849
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
6315
6850
|
/**
|
|
6316
6851
|
* The same global node won't be triggered again within the next N node
|
|
6317
6852
|
* transitions.
|
|
@@ -6358,6 +6893,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
6358
6893
|
right?: string;
|
|
6359
6894
|
}
|
|
6360
6895
|
}
|
|
6896
|
+
interface EquationPromptCondition {
|
|
6897
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
6898
|
+
operator: '||' | '&&';
|
|
6899
|
+
type: 'equation_prompt';
|
|
6900
|
+
/**
|
|
6901
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6902
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6903
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6904
|
+
* timing.
|
|
6905
|
+
*/
|
|
6906
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
6907
|
+
}
|
|
6908
|
+
namespace EquationPromptCondition {
|
|
6909
|
+
interface Equation {
|
|
6910
|
+
/**
|
|
6911
|
+
* Left side of the equation
|
|
6912
|
+
*/
|
|
6913
|
+
left: string;
|
|
6914
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
6915
|
+
/**
|
|
6916
|
+
* Right side of the equation. The right side of the equation not required when
|
|
6917
|
+
* "exists" or "not_exist" are selected.
|
|
6918
|
+
*/
|
|
6919
|
+
right?: string;
|
|
6920
|
+
}
|
|
6921
|
+
/**
|
|
6922
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
6923
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
6924
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
6925
|
+
* timing.
|
|
6926
|
+
*/
|
|
6927
|
+
interface PromptCondition {
|
|
6928
|
+
/**
|
|
6929
|
+
* Prompt condition text
|
|
6930
|
+
*/
|
|
6931
|
+
prompt: string;
|
|
6932
|
+
type: 'prompt';
|
|
6933
|
+
}
|
|
6934
|
+
}
|
|
6361
6935
|
/**
|
|
6362
6936
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
6363
6937
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -6526,9 +7100,10 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
6526
7100
|
interface GlobalNodeSetting {
|
|
6527
7101
|
/**
|
|
6528
7102
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
6529
|
-
* be empty. Also accepts
|
|
7103
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
7104
|
+
* EquationPromptCondition objects.
|
|
6530
7105
|
*/
|
|
6531
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
7106
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
6532
7107
|
/**
|
|
6533
7108
|
* The same global node won't be triggered again within the next N node
|
|
6534
7109
|
* transitions.
|
|
@@ -6575,6 +7150,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
6575
7150
|
right?: string;
|
|
6576
7151
|
}
|
|
6577
7152
|
}
|
|
7153
|
+
interface EquationPromptCondition {
|
|
7154
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
7155
|
+
operator: '||' | '&&';
|
|
7156
|
+
type: 'equation_prompt';
|
|
7157
|
+
/**
|
|
7158
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
7159
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
7160
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
7161
|
+
* timing.
|
|
7162
|
+
*/
|
|
7163
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
7164
|
+
}
|
|
7165
|
+
namespace EquationPromptCondition {
|
|
7166
|
+
interface Equation {
|
|
7167
|
+
/**
|
|
7168
|
+
* Left side of the equation
|
|
7169
|
+
*/
|
|
7170
|
+
left: string;
|
|
7171
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
7172
|
+
/**
|
|
7173
|
+
* Right side of the equation. The right side of the equation not required when
|
|
7174
|
+
* "exists" or "not_exist" are selected.
|
|
7175
|
+
*/
|
|
7176
|
+
right?: string;
|
|
7177
|
+
}
|
|
7178
|
+
/**
|
|
7179
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
7180
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
7181
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
7182
|
+
* timing.
|
|
7183
|
+
*/
|
|
7184
|
+
interface PromptCondition {
|
|
7185
|
+
/**
|
|
7186
|
+
* Prompt condition text
|
|
7187
|
+
*/
|
|
7188
|
+
prompt: string;
|
|
7189
|
+
type: 'prompt';
|
|
7190
|
+
}
|
|
7191
|
+
}
|
|
6578
7192
|
/**
|
|
6579
7193
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
6580
7194
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -7112,6 +7726,13 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7112
7726
|
* responds. Use as the node's only outgoing edge.
|
|
7113
7727
|
*/
|
|
7114
7728
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
7729
|
+
/**
|
|
7730
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
7731
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
7732
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
7733
|
+
* is entered.
|
|
7734
|
+
*/
|
|
7735
|
+
boosted_keywords?: Array<string> | null;
|
|
7115
7736
|
/**
|
|
7116
7737
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
7117
7738
|
*/
|
|
@@ -7434,9 +8055,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7434
8055
|
interface GlobalNodeSetting {
|
|
7435
8056
|
/**
|
|
7436
8057
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
7437
|
-
* be empty. Also accepts
|
|
8058
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
8059
|
+
* EquationPromptCondition objects.
|
|
7438
8060
|
*/
|
|
7439
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
8061
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
7440
8062
|
/**
|
|
7441
8063
|
* The same global node won't be triggered again within the next N node
|
|
7442
8064
|
* transitions.
|
|
@@ -7483,6 +8105,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7483
8105
|
right?: string;
|
|
7484
8106
|
}
|
|
7485
8107
|
}
|
|
8108
|
+
interface EquationPromptCondition {
|
|
8109
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
8110
|
+
operator: '||' | '&&';
|
|
8111
|
+
type: 'equation_prompt';
|
|
8112
|
+
/**
|
|
8113
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
8114
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
8115
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
8116
|
+
* timing.
|
|
8117
|
+
*/
|
|
8118
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
8119
|
+
}
|
|
8120
|
+
namespace EquationPromptCondition {
|
|
8121
|
+
interface Equation {
|
|
8122
|
+
/**
|
|
8123
|
+
* Left side of the equation
|
|
8124
|
+
*/
|
|
8125
|
+
left: string;
|
|
8126
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
8127
|
+
/**
|
|
8128
|
+
* Right side of the equation. The right side of the equation not required when
|
|
8129
|
+
* "exists" or "not_exist" are selected.
|
|
8130
|
+
*/
|
|
8131
|
+
right?: string;
|
|
8132
|
+
}
|
|
8133
|
+
/**
|
|
8134
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
8135
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
8136
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
8137
|
+
* timing.
|
|
8138
|
+
*/
|
|
8139
|
+
interface PromptCondition {
|
|
8140
|
+
/**
|
|
8141
|
+
* Prompt condition text
|
|
8142
|
+
*/
|
|
8143
|
+
prompt: string;
|
|
8144
|
+
type: 'prompt';
|
|
8145
|
+
}
|
|
8146
|
+
}
|
|
7486
8147
|
/**
|
|
7487
8148
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
7488
8149
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -7679,6 +8340,13 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7679
8340
|
* responds. Use as the node's only outgoing edge.
|
|
7680
8341
|
*/
|
|
7681
8342
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
8343
|
+
/**
|
|
8344
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
8345
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
8346
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
8347
|
+
* is entered.
|
|
8348
|
+
*/
|
|
8349
|
+
boosted_keywords?: Array<string> | null;
|
|
7682
8350
|
/**
|
|
7683
8351
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
7684
8352
|
*/
|
|
@@ -8001,9 +8669,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
8001
8669
|
interface GlobalNodeSetting {
|
|
8002
8670
|
/**
|
|
8003
8671
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
8004
|
-
* be empty. Also accepts
|
|
8672
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
8673
|
+
* EquationPromptCondition objects.
|
|
8005
8674
|
*/
|
|
8006
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
8675
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
8007
8676
|
/**
|
|
8008
8677
|
* The same global node won't be triggered again within the next N node
|
|
8009
8678
|
* transitions.
|
|
@@ -8050,6 +8719,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
8050
8719
|
right?: string;
|
|
8051
8720
|
}
|
|
8052
8721
|
}
|
|
8722
|
+
interface EquationPromptCondition {
|
|
8723
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
8724
|
+
operator: '||' | '&&';
|
|
8725
|
+
type: 'equation_prompt';
|
|
8726
|
+
/**
|
|
8727
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
8728
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
8729
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
8730
|
+
* timing.
|
|
8731
|
+
*/
|
|
8732
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
8733
|
+
}
|
|
8734
|
+
namespace EquationPromptCondition {
|
|
8735
|
+
interface Equation {
|
|
8736
|
+
/**
|
|
8737
|
+
* Left side of the equation
|
|
8738
|
+
*/
|
|
8739
|
+
left: string;
|
|
8740
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
8741
|
+
/**
|
|
8742
|
+
* Right side of the equation. The right side of the equation not required when
|
|
8743
|
+
* "exists" or "not_exist" are selected.
|
|
8744
|
+
*/
|
|
8745
|
+
right?: string;
|
|
8746
|
+
}
|
|
8747
|
+
/**
|
|
8748
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
8749
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
8750
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
8751
|
+
* timing.
|
|
8752
|
+
*/
|
|
8753
|
+
interface PromptCondition {
|
|
8754
|
+
/**
|
|
8755
|
+
* Prompt condition text
|
|
8756
|
+
*/
|
|
8757
|
+
prompt: string;
|
|
8758
|
+
type: 'prompt';
|
|
8759
|
+
}
|
|
8760
|
+
}
|
|
8053
8761
|
/**
|
|
8054
8762
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
8055
8763
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -9327,9 +10035,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
9327
10035
|
interface GlobalNodeSetting {
|
|
9328
10036
|
/**
|
|
9329
10037
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
9330
|
-
* be empty. Also accepts
|
|
10038
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
10039
|
+
* EquationPromptCondition objects.
|
|
9331
10040
|
*/
|
|
9332
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
10041
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
9333
10042
|
/**
|
|
9334
10043
|
* The same global node won't be triggered again within the next N node
|
|
9335
10044
|
* transitions.
|
|
@@ -9376,6 +10085,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
9376
10085
|
right?: string;
|
|
9377
10086
|
}
|
|
9378
10087
|
}
|
|
10088
|
+
interface EquationPromptCondition {
|
|
10089
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
10090
|
+
operator: '||' | '&&';
|
|
10091
|
+
type: 'equation_prompt';
|
|
10092
|
+
/**
|
|
10093
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10094
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10095
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10096
|
+
* timing.
|
|
10097
|
+
*/
|
|
10098
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
10099
|
+
}
|
|
10100
|
+
namespace EquationPromptCondition {
|
|
10101
|
+
interface Equation {
|
|
10102
|
+
/**
|
|
10103
|
+
* Left side of the equation
|
|
10104
|
+
*/
|
|
10105
|
+
left: string;
|
|
10106
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
10107
|
+
/**
|
|
10108
|
+
* Right side of the equation. The right side of the equation not required when
|
|
10109
|
+
* "exists" or "not_exist" are selected.
|
|
10110
|
+
*/
|
|
10111
|
+
right?: string;
|
|
10112
|
+
}
|
|
10113
|
+
/**
|
|
10114
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10115
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10116
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10117
|
+
* timing.
|
|
10118
|
+
*/
|
|
10119
|
+
interface PromptCondition {
|
|
10120
|
+
/**
|
|
10121
|
+
* Prompt condition text
|
|
10122
|
+
*/
|
|
10123
|
+
prompt: string;
|
|
10124
|
+
type: 'prompt';
|
|
10125
|
+
}
|
|
10126
|
+
}
|
|
9379
10127
|
/**
|
|
9380
10128
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
9381
10129
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -9696,9 +10444,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
9696
10444
|
interface GlobalNodeSetting {
|
|
9697
10445
|
/**
|
|
9698
10446
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
9699
|
-
* be empty. Also accepts
|
|
10447
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
10448
|
+
* EquationPromptCondition objects.
|
|
9700
10449
|
*/
|
|
9701
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
10450
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
9702
10451
|
/**
|
|
9703
10452
|
* The same global node won't be triggered again within the next N node
|
|
9704
10453
|
* transitions.
|
|
@@ -9745,8 +10494,47 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
9745
10494
|
right?: string;
|
|
9746
10495
|
}
|
|
9747
10496
|
}
|
|
9748
|
-
|
|
9749
|
-
|
|
10497
|
+
interface EquationPromptCondition {
|
|
10498
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
10499
|
+
operator: '||' | '&&';
|
|
10500
|
+
type: 'equation_prompt';
|
|
10501
|
+
/**
|
|
10502
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10503
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10504
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10505
|
+
* timing.
|
|
10506
|
+
*/
|
|
10507
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
10508
|
+
}
|
|
10509
|
+
namespace EquationPromptCondition {
|
|
10510
|
+
interface Equation {
|
|
10511
|
+
/**
|
|
10512
|
+
* Left side of the equation
|
|
10513
|
+
*/
|
|
10514
|
+
left: string;
|
|
10515
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
10516
|
+
/**
|
|
10517
|
+
* Right side of the equation. The right side of the equation not required when
|
|
10518
|
+
* "exists" or "not_exist" are selected.
|
|
10519
|
+
*/
|
|
10520
|
+
right?: string;
|
|
10521
|
+
}
|
|
10522
|
+
/**
|
|
10523
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10524
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10525
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10526
|
+
* timing.
|
|
10527
|
+
*/
|
|
10528
|
+
interface PromptCondition {
|
|
10529
|
+
/**
|
|
10530
|
+
* Prompt condition text
|
|
10531
|
+
*/
|
|
10532
|
+
prompt: string;
|
|
10533
|
+
type: 'prompt';
|
|
10534
|
+
}
|
|
10535
|
+
}
|
|
10536
|
+
/**
|
|
10537
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
9750
10538
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
9751
10539
|
* variables and are checked in array order; the first match wins. If no equation
|
|
9752
10540
|
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
@@ -10073,9 +10861,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
10073
10861
|
interface GlobalNodeSetting {
|
|
10074
10862
|
/**
|
|
10075
10863
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
10076
|
-
* be empty. Also accepts
|
|
10864
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
10865
|
+
* EquationPromptCondition objects.
|
|
10077
10866
|
*/
|
|
10078
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
10867
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
10079
10868
|
/**
|
|
10080
10869
|
* The same global node won't be triggered again within the next N node
|
|
10081
10870
|
* transitions.
|
|
@@ -10122,6 +10911,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
10122
10911
|
right?: string;
|
|
10123
10912
|
}
|
|
10124
10913
|
}
|
|
10914
|
+
interface EquationPromptCondition {
|
|
10915
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
10916
|
+
operator: '||' | '&&';
|
|
10917
|
+
type: 'equation_prompt';
|
|
10918
|
+
/**
|
|
10919
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10920
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10921
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10922
|
+
* timing.
|
|
10923
|
+
*/
|
|
10924
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
10925
|
+
}
|
|
10926
|
+
namespace EquationPromptCondition {
|
|
10927
|
+
interface Equation {
|
|
10928
|
+
/**
|
|
10929
|
+
* Left side of the equation
|
|
10930
|
+
*/
|
|
10931
|
+
left: string;
|
|
10932
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
10933
|
+
/**
|
|
10934
|
+
* Right side of the equation. The right side of the equation not required when
|
|
10935
|
+
* "exists" or "not_exist" are selected.
|
|
10936
|
+
*/
|
|
10937
|
+
right?: string;
|
|
10938
|
+
}
|
|
10939
|
+
/**
|
|
10940
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
10941
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
10942
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
10943
|
+
* timing.
|
|
10944
|
+
*/
|
|
10945
|
+
interface PromptCondition {
|
|
10946
|
+
/**
|
|
10947
|
+
* Prompt condition text
|
|
10948
|
+
*/
|
|
10949
|
+
prompt: string;
|
|
10950
|
+
type: 'prompt';
|
|
10951
|
+
}
|
|
10952
|
+
}
|
|
10125
10953
|
/**
|
|
10126
10954
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
10127
10955
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -10610,9 +11438,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
10610
11438
|
interface GlobalNodeSetting {
|
|
10611
11439
|
/**
|
|
10612
11440
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
10613
|
-
* be empty. Also accepts
|
|
11441
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
11442
|
+
* EquationPromptCondition objects.
|
|
10614
11443
|
*/
|
|
10615
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
11444
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
10616
11445
|
/**
|
|
10617
11446
|
* The same global node won't be triggered again within the next N node
|
|
10618
11447
|
* transitions.
|
|
@@ -10659,6 +11488,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
10659
11488
|
right?: string;
|
|
10660
11489
|
}
|
|
10661
11490
|
}
|
|
11491
|
+
interface EquationPromptCondition {
|
|
11492
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
11493
|
+
operator: '||' | '&&';
|
|
11494
|
+
type: 'equation_prompt';
|
|
11495
|
+
/**
|
|
11496
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
11497
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
11498
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
11499
|
+
* timing.
|
|
11500
|
+
*/
|
|
11501
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
11502
|
+
}
|
|
11503
|
+
namespace EquationPromptCondition {
|
|
11504
|
+
interface Equation {
|
|
11505
|
+
/**
|
|
11506
|
+
* Left side of the equation
|
|
11507
|
+
*/
|
|
11508
|
+
left: string;
|
|
11509
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
11510
|
+
/**
|
|
11511
|
+
* Right side of the equation. The right side of the equation not required when
|
|
11512
|
+
* "exists" or "not_exist" are selected.
|
|
11513
|
+
*/
|
|
11514
|
+
right?: string;
|
|
11515
|
+
}
|
|
11516
|
+
/**
|
|
11517
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
11518
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
11519
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
11520
|
+
* timing.
|
|
11521
|
+
*/
|
|
11522
|
+
interface PromptCondition {
|
|
11523
|
+
/**
|
|
11524
|
+
* Prompt condition text
|
|
11525
|
+
*/
|
|
11526
|
+
prompt: string;
|
|
11527
|
+
type: 'prompt';
|
|
11528
|
+
}
|
|
11529
|
+
}
|
|
10662
11530
|
/**
|
|
10663
11531
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
10664
11532
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -10973,9 +11841,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
10973
11841
|
interface GlobalNodeSetting {
|
|
10974
11842
|
/**
|
|
10975
11843
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
10976
|
-
* be empty. Also accepts
|
|
11844
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
11845
|
+
* EquationPromptCondition objects.
|
|
10977
11846
|
*/
|
|
10978
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
11847
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
10979
11848
|
/**
|
|
10980
11849
|
* The same global node won't be triggered again within the next N node
|
|
10981
11850
|
* transitions.
|
|
@@ -11022,6 +11891,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
11022
11891
|
right?: string;
|
|
11023
11892
|
}
|
|
11024
11893
|
}
|
|
11894
|
+
interface EquationPromptCondition {
|
|
11895
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
11896
|
+
operator: '||' | '&&';
|
|
11897
|
+
type: 'equation_prompt';
|
|
11898
|
+
/**
|
|
11899
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
11900
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
11901
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
11902
|
+
* timing.
|
|
11903
|
+
*/
|
|
11904
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
11905
|
+
}
|
|
11906
|
+
namespace EquationPromptCondition {
|
|
11907
|
+
interface Equation {
|
|
11908
|
+
/**
|
|
11909
|
+
* Left side of the equation
|
|
11910
|
+
*/
|
|
11911
|
+
left: string;
|
|
11912
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
11913
|
+
/**
|
|
11914
|
+
* Right side of the equation. The right side of the equation not required when
|
|
11915
|
+
* "exists" or "not_exist" are selected.
|
|
11916
|
+
*/
|
|
11917
|
+
right?: string;
|
|
11918
|
+
}
|
|
11919
|
+
/**
|
|
11920
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
11921
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
11922
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
11923
|
+
* timing.
|
|
11924
|
+
*/
|
|
11925
|
+
interface PromptCondition {
|
|
11926
|
+
/**
|
|
11927
|
+
* Prompt condition text
|
|
11928
|
+
*/
|
|
11929
|
+
prompt: string;
|
|
11930
|
+
type: 'prompt';
|
|
11931
|
+
}
|
|
11932
|
+
}
|
|
11025
11933
|
/**
|
|
11026
11934
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
11027
11935
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -11301,9 +12209,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
11301
12209
|
interface GlobalNodeSetting {
|
|
11302
12210
|
/**
|
|
11303
12211
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
11304
|
-
* be empty. Also accepts
|
|
12212
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
12213
|
+
* EquationPromptCondition objects.
|
|
11305
12214
|
*/
|
|
11306
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
12215
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
11307
12216
|
/**
|
|
11308
12217
|
* The same global node won't be triggered again within the next N node
|
|
11309
12218
|
* transitions.
|
|
@@ -11350,6 +12259,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
11350
12259
|
right?: string;
|
|
11351
12260
|
}
|
|
11352
12261
|
}
|
|
12262
|
+
interface EquationPromptCondition {
|
|
12263
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
12264
|
+
operator: '||' | '&&';
|
|
12265
|
+
type: 'equation_prompt';
|
|
12266
|
+
/**
|
|
12267
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
12268
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
12269
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
12270
|
+
* timing.
|
|
12271
|
+
*/
|
|
12272
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
12273
|
+
}
|
|
12274
|
+
namespace EquationPromptCondition {
|
|
12275
|
+
interface Equation {
|
|
12276
|
+
/**
|
|
12277
|
+
* Left side of the equation
|
|
12278
|
+
*/
|
|
12279
|
+
left: string;
|
|
12280
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
12281
|
+
/**
|
|
12282
|
+
* Right side of the equation. The right side of the equation not required when
|
|
12283
|
+
* "exists" or "not_exist" are selected.
|
|
12284
|
+
*/
|
|
12285
|
+
right?: string;
|
|
12286
|
+
}
|
|
12287
|
+
/**
|
|
12288
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
12289
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
12290
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
12291
|
+
* timing.
|
|
12292
|
+
*/
|
|
12293
|
+
interface PromptCondition {
|
|
12294
|
+
/**
|
|
12295
|
+
* Prompt condition text
|
|
12296
|
+
*/
|
|
12297
|
+
prompt: string;
|
|
12298
|
+
type: 'prompt';
|
|
12299
|
+
}
|
|
12300
|
+
}
|
|
11353
12301
|
/**
|
|
11354
12302
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
11355
12303
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -11637,9 +12585,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
11637
12585
|
interface GlobalNodeSetting {
|
|
11638
12586
|
/**
|
|
11639
12587
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
11640
|
-
* be empty. Also accepts
|
|
12588
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
12589
|
+
* EquationPromptCondition objects.
|
|
11641
12590
|
*/
|
|
11642
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
12591
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
11643
12592
|
/**
|
|
11644
12593
|
* The same global node won't be triggered again within the next N node
|
|
11645
12594
|
* transitions.
|
|
@@ -11686,6 +12635,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
11686
12635
|
right?: string;
|
|
11687
12636
|
}
|
|
11688
12637
|
}
|
|
12638
|
+
interface EquationPromptCondition {
|
|
12639
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
12640
|
+
operator: '||' | '&&';
|
|
12641
|
+
type: 'equation_prompt';
|
|
12642
|
+
/**
|
|
12643
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
12644
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
12645
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
12646
|
+
* timing.
|
|
12647
|
+
*/
|
|
12648
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
12649
|
+
}
|
|
12650
|
+
namespace EquationPromptCondition {
|
|
12651
|
+
interface Equation {
|
|
12652
|
+
/**
|
|
12653
|
+
* Left side of the equation
|
|
12654
|
+
*/
|
|
12655
|
+
left: string;
|
|
12656
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
12657
|
+
/**
|
|
12658
|
+
* Right side of the equation. The right side of the equation not required when
|
|
12659
|
+
* "exists" or "not_exist" are selected.
|
|
12660
|
+
*/
|
|
12661
|
+
right?: string;
|
|
12662
|
+
}
|
|
12663
|
+
/**
|
|
12664
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
12665
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
12666
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
12667
|
+
* timing.
|
|
12668
|
+
*/
|
|
12669
|
+
interface PromptCondition {
|
|
12670
|
+
/**
|
|
12671
|
+
* Prompt condition text
|
|
12672
|
+
*/
|
|
12673
|
+
prompt: string;
|
|
12674
|
+
type: 'prompt';
|
|
12675
|
+
}
|
|
12676
|
+
}
|
|
11689
12677
|
/**
|
|
11690
12678
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
11691
12679
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -12078,9 +13066,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12078
13066
|
interface GlobalNodeSetting {
|
|
12079
13067
|
/**
|
|
12080
13068
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
12081
|
-
* be empty. Also accepts
|
|
13069
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
13070
|
+
* EquationPromptCondition objects.
|
|
12082
13071
|
*/
|
|
12083
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
13072
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
12084
13073
|
/**
|
|
12085
13074
|
* The same global node won't be triggered again within the next N node
|
|
12086
13075
|
* transitions.
|
|
@@ -12127,6 +13116,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12127
13116
|
right?: string;
|
|
12128
13117
|
}
|
|
12129
13118
|
}
|
|
13119
|
+
interface EquationPromptCondition {
|
|
13120
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
13121
|
+
operator: '||' | '&&';
|
|
13122
|
+
type: 'equation_prompt';
|
|
13123
|
+
/**
|
|
13124
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
13125
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
13126
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
13127
|
+
* timing.
|
|
13128
|
+
*/
|
|
13129
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
13130
|
+
}
|
|
13131
|
+
namespace EquationPromptCondition {
|
|
13132
|
+
interface Equation {
|
|
13133
|
+
/**
|
|
13134
|
+
* Left side of the equation
|
|
13135
|
+
*/
|
|
13136
|
+
left: string;
|
|
13137
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
13138
|
+
/**
|
|
13139
|
+
* Right side of the equation. The right side of the equation not required when
|
|
13140
|
+
* "exists" or "not_exist" are selected.
|
|
13141
|
+
*/
|
|
13142
|
+
right?: string;
|
|
13143
|
+
}
|
|
13144
|
+
/**
|
|
13145
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
13146
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
13147
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
13148
|
+
* timing.
|
|
13149
|
+
*/
|
|
13150
|
+
interface PromptCondition {
|
|
13151
|
+
/**
|
|
13152
|
+
* Prompt condition text
|
|
13153
|
+
*/
|
|
13154
|
+
prompt: string;
|
|
13155
|
+
type: 'prompt';
|
|
13156
|
+
}
|
|
13157
|
+
}
|
|
12130
13158
|
/**
|
|
12131
13159
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
12132
13160
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -12365,9 +13393,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12365
13393
|
interface GlobalNodeSetting {
|
|
12366
13394
|
/**
|
|
12367
13395
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
12368
|
-
* be empty. Also accepts
|
|
13396
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
13397
|
+
* EquationPromptCondition objects.
|
|
12369
13398
|
*/
|
|
12370
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
13399
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
12371
13400
|
/**
|
|
12372
13401
|
* The same global node won't be triggered again within the next N node
|
|
12373
13402
|
* transitions.
|
|
@@ -12414,6 +13443,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12414
13443
|
right?: string;
|
|
12415
13444
|
}
|
|
12416
13445
|
}
|
|
13446
|
+
interface EquationPromptCondition {
|
|
13447
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
13448
|
+
operator: '||' | '&&';
|
|
13449
|
+
type: 'equation_prompt';
|
|
13450
|
+
/**
|
|
13451
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
13452
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
13453
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
13454
|
+
* timing.
|
|
13455
|
+
*/
|
|
13456
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
13457
|
+
}
|
|
13458
|
+
namespace EquationPromptCondition {
|
|
13459
|
+
interface Equation {
|
|
13460
|
+
/**
|
|
13461
|
+
* Left side of the equation
|
|
13462
|
+
*/
|
|
13463
|
+
left: string;
|
|
13464
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
13465
|
+
/**
|
|
13466
|
+
* Right side of the equation. The right side of the equation not required when
|
|
13467
|
+
* "exists" or "not_exist" are selected.
|
|
13468
|
+
*/
|
|
13469
|
+
right?: string;
|
|
13470
|
+
}
|
|
13471
|
+
/**
|
|
13472
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
13473
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
13474
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
13475
|
+
* timing.
|
|
13476
|
+
*/
|
|
13477
|
+
interface PromptCondition {
|
|
13478
|
+
/**
|
|
13479
|
+
* Prompt condition text
|
|
13480
|
+
*/
|
|
13481
|
+
prompt: string;
|
|
13482
|
+
type: 'prompt';
|
|
13483
|
+
}
|
|
13484
|
+
}
|
|
12417
13485
|
/**
|
|
12418
13486
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
12419
13487
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -12744,9 +13812,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12744
13812
|
interface GlobalNodeSetting {
|
|
12745
13813
|
/**
|
|
12746
13814
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
12747
|
-
* be empty. Also accepts
|
|
13815
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
13816
|
+
* EquationPromptCondition objects.
|
|
12748
13817
|
*/
|
|
12749
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
13818
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
12750
13819
|
/**
|
|
12751
13820
|
* The same global node won't be triggered again within the next N node
|
|
12752
13821
|
* transitions.
|
|
@@ -12793,6 +13862,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12793
13862
|
right?: string;
|
|
12794
13863
|
}
|
|
12795
13864
|
}
|
|
13865
|
+
interface EquationPromptCondition {
|
|
13866
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
13867
|
+
operator: '||' | '&&';
|
|
13868
|
+
type: 'equation_prompt';
|
|
13869
|
+
/**
|
|
13870
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
13871
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
13872
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
13873
|
+
* timing.
|
|
13874
|
+
*/
|
|
13875
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
13876
|
+
}
|
|
13877
|
+
namespace EquationPromptCondition {
|
|
13878
|
+
interface Equation {
|
|
13879
|
+
/**
|
|
13880
|
+
* Left side of the equation
|
|
13881
|
+
*/
|
|
13882
|
+
left: string;
|
|
13883
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
13884
|
+
/**
|
|
13885
|
+
* Right side of the equation. The right side of the equation not required when
|
|
13886
|
+
* "exists" or "not_exist" are selected.
|
|
13887
|
+
*/
|
|
13888
|
+
right?: string;
|
|
13889
|
+
}
|
|
13890
|
+
/**
|
|
13891
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
13892
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
13893
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
13894
|
+
* timing.
|
|
13895
|
+
*/
|
|
13896
|
+
interface PromptCondition {
|
|
13897
|
+
/**
|
|
13898
|
+
* Prompt condition text
|
|
13899
|
+
*/
|
|
13900
|
+
prompt: string;
|
|
13901
|
+
type: 'prompt';
|
|
13902
|
+
}
|
|
13903
|
+
}
|
|
12796
13904
|
/**
|
|
12797
13905
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
12798
13906
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -13101,9 +14209,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
13101
14209
|
interface GlobalNodeSetting {
|
|
13102
14210
|
/**
|
|
13103
14211
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
13104
|
-
* be empty. Also accepts
|
|
14212
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
14213
|
+
* EquationPromptCondition objects.
|
|
13105
14214
|
*/
|
|
13106
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
14215
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
13107
14216
|
/**
|
|
13108
14217
|
* The same global node won't be triggered again within the next N node
|
|
13109
14218
|
* transitions.
|
|
@@ -13150,28 +14259,67 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
13150
14259
|
right?: string;
|
|
13151
14260
|
}
|
|
13152
14261
|
}
|
|
13153
|
-
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
13158
|
-
* selects a matching transition, if any.
|
|
13159
|
-
*/
|
|
13160
|
-
interface GoBackCondition {
|
|
13161
|
-
/**
|
|
13162
|
-
* Unique identifier for the edge
|
|
13163
|
-
*/
|
|
13164
|
-
id: string;
|
|
13165
|
-
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
14262
|
+
interface EquationPromptCondition {
|
|
14263
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
14264
|
+
operator: '||' | '&&';
|
|
14265
|
+
type: 'equation_prompt';
|
|
13166
14266
|
/**
|
|
13167
|
-
*
|
|
14267
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14268
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14269
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14270
|
+
* timing.
|
|
13168
14271
|
*/
|
|
13169
|
-
|
|
14272
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
13170
14273
|
}
|
|
13171
|
-
namespace
|
|
13172
|
-
interface
|
|
14274
|
+
namespace EquationPromptCondition {
|
|
14275
|
+
interface Equation {
|
|
13173
14276
|
/**
|
|
13174
|
-
*
|
|
14277
|
+
* Left side of the equation
|
|
14278
|
+
*/
|
|
14279
|
+
left: string;
|
|
14280
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
14281
|
+
/**
|
|
14282
|
+
* Right side of the equation. The right side of the equation not required when
|
|
14283
|
+
* "exists" or "not_exist" are selected.
|
|
14284
|
+
*/
|
|
14285
|
+
right?: string;
|
|
14286
|
+
}
|
|
14287
|
+
/**
|
|
14288
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14289
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14290
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14291
|
+
* timing.
|
|
14292
|
+
*/
|
|
14293
|
+
interface PromptCondition {
|
|
14294
|
+
/**
|
|
14295
|
+
* Prompt condition text
|
|
14296
|
+
*/
|
|
14297
|
+
prompt: string;
|
|
14298
|
+
type: 'prompt';
|
|
14299
|
+
}
|
|
14300
|
+
}
|
|
14301
|
+
/**
|
|
14302
|
+
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
14303
|
+
* transitions when its condition matches. Equation conditions compare dynamic
|
|
14304
|
+
* variables and are checked in array order; the first match wins. If no equation
|
|
14305
|
+
* matches, the LLM evaluates prompt conditions against the conversation and
|
|
14306
|
+
* selects a matching transition, if any.
|
|
14307
|
+
*/
|
|
14308
|
+
interface GoBackCondition {
|
|
14309
|
+
/**
|
|
14310
|
+
* Unique identifier for the edge
|
|
14311
|
+
*/
|
|
14312
|
+
id: string;
|
|
14313
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
14314
|
+
/**
|
|
14315
|
+
* ID of the destination node
|
|
14316
|
+
*/
|
|
14317
|
+
destination_node_id?: string;
|
|
14318
|
+
}
|
|
14319
|
+
namespace GoBackCondition {
|
|
14320
|
+
interface PromptCondition {
|
|
14321
|
+
/**
|
|
14322
|
+
* Prompt condition text
|
|
13175
14323
|
*/
|
|
13176
14324
|
prompt: string;
|
|
13177
14325
|
type: 'prompt';
|
|
@@ -13284,9 +14432,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
13284
14432
|
interface GlobalNodeSetting {
|
|
13285
14433
|
/**
|
|
13286
14434
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
13287
|
-
* be empty. Also accepts
|
|
14435
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
14436
|
+
* EquationPromptCondition objects.
|
|
13288
14437
|
*/
|
|
13289
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
14438
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
13290
14439
|
/**
|
|
13291
14440
|
* The same global node won't be triggered again within the next N node
|
|
13292
14441
|
* transitions.
|
|
@@ -13333,6 +14482,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
13333
14482
|
right?: string;
|
|
13334
14483
|
}
|
|
13335
14484
|
}
|
|
14485
|
+
interface EquationPromptCondition {
|
|
14486
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
14487
|
+
operator: '||' | '&&';
|
|
14488
|
+
type: 'equation_prompt';
|
|
14489
|
+
/**
|
|
14490
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14491
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14492
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14493
|
+
* timing.
|
|
14494
|
+
*/
|
|
14495
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
14496
|
+
}
|
|
14497
|
+
namespace EquationPromptCondition {
|
|
14498
|
+
interface Equation {
|
|
14499
|
+
/**
|
|
14500
|
+
* Left side of the equation
|
|
14501
|
+
*/
|
|
14502
|
+
left: string;
|
|
14503
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
14504
|
+
/**
|
|
14505
|
+
* Right side of the equation. The right side of the equation not required when
|
|
14506
|
+
* "exists" or "not_exist" are selected.
|
|
14507
|
+
*/
|
|
14508
|
+
right?: string;
|
|
14509
|
+
}
|
|
14510
|
+
/**
|
|
14511
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14512
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14513
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14514
|
+
* timing.
|
|
14515
|
+
*/
|
|
14516
|
+
interface PromptCondition {
|
|
14517
|
+
/**
|
|
14518
|
+
* Prompt condition text
|
|
14519
|
+
*/
|
|
14520
|
+
prompt: string;
|
|
14521
|
+
type: 'prompt';
|
|
14522
|
+
}
|
|
14523
|
+
}
|
|
13336
14524
|
/**
|
|
13337
14525
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
13338
14526
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -13501,9 +14689,10 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
13501
14689
|
interface GlobalNodeSetting {
|
|
13502
14690
|
/**
|
|
13503
14691
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
13504
|
-
* be empty. Also accepts
|
|
14692
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
14693
|
+
* EquationPromptCondition objects.
|
|
13505
14694
|
*/
|
|
13506
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
14695
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
13507
14696
|
/**
|
|
13508
14697
|
* The same global node won't be triggered again within the next N node
|
|
13509
14698
|
* transitions.
|
|
@@ -13550,6 +14739,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
13550
14739
|
right?: string;
|
|
13551
14740
|
}
|
|
13552
14741
|
}
|
|
14742
|
+
interface EquationPromptCondition {
|
|
14743
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
14744
|
+
operator: '||' | '&&';
|
|
14745
|
+
type: 'equation_prompt';
|
|
14746
|
+
/**
|
|
14747
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14748
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14749
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14750
|
+
* timing.
|
|
14751
|
+
*/
|
|
14752
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
14753
|
+
}
|
|
14754
|
+
namespace EquationPromptCondition {
|
|
14755
|
+
interface Equation {
|
|
14756
|
+
/**
|
|
14757
|
+
* Left side of the equation
|
|
14758
|
+
*/
|
|
14759
|
+
left: string;
|
|
14760
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
14761
|
+
/**
|
|
14762
|
+
* Right side of the equation. The right side of the equation not required when
|
|
14763
|
+
* "exists" or "not_exist" are selected.
|
|
14764
|
+
*/
|
|
14765
|
+
right?: string;
|
|
14766
|
+
}
|
|
14767
|
+
/**
|
|
14768
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
14769
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
14770
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
14771
|
+
* timing.
|
|
14772
|
+
*/
|
|
14773
|
+
interface PromptCondition {
|
|
14774
|
+
/**
|
|
14775
|
+
* Prompt condition text
|
|
14776
|
+
*/
|
|
14777
|
+
prompt: string;
|
|
14778
|
+
type: 'prompt';
|
|
14779
|
+
}
|
|
14780
|
+
}
|
|
13553
14781
|
/**
|
|
13554
14782
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
13555
14783
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -14107,6 +15335,13 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
14107
15335
|
* responds. Use as the node's only outgoing edge.
|
|
14108
15336
|
*/
|
|
14109
15337
|
always_edge?: ConversationNode.AlwaysEdge;
|
|
15338
|
+
/**
|
|
15339
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
15340
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
15341
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
15342
|
+
* is entered.
|
|
15343
|
+
*/
|
|
15344
|
+
boosted_keywords?: Array<string> | null;
|
|
14110
15345
|
/**
|
|
14111
15346
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
14112
15347
|
*/
|
|
@@ -14429,9 +15664,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
14429
15664
|
interface GlobalNodeSetting {
|
|
14430
15665
|
/**
|
|
14431
15666
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
14432
|
-
* be empty. Also accepts
|
|
15667
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
15668
|
+
* EquationPromptCondition objects.
|
|
14433
15669
|
*/
|
|
14434
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
15670
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
14435
15671
|
/**
|
|
14436
15672
|
* The same global node won't be triggered again within the next N node
|
|
14437
15673
|
* transitions.
|
|
@@ -14478,6 +15714,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
14478
15714
|
right?: string;
|
|
14479
15715
|
}
|
|
14480
15716
|
}
|
|
15717
|
+
interface EquationPromptCondition {
|
|
15718
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
15719
|
+
operator: '||' | '&&';
|
|
15720
|
+
type: 'equation_prompt';
|
|
15721
|
+
/**
|
|
15722
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
15723
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
15724
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
15725
|
+
* timing.
|
|
15726
|
+
*/
|
|
15727
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
15728
|
+
}
|
|
15729
|
+
namespace EquationPromptCondition {
|
|
15730
|
+
interface Equation {
|
|
15731
|
+
/**
|
|
15732
|
+
* Left side of the equation
|
|
15733
|
+
*/
|
|
15734
|
+
left: string;
|
|
15735
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
15736
|
+
/**
|
|
15737
|
+
* Right side of the equation. The right side of the equation not required when
|
|
15738
|
+
* "exists" or "not_exist" are selected.
|
|
15739
|
+
*/
|
|
15740
|
+
right?: string;
|
|
15741
|
+
}
|
|
15742
|
+
/**
|
|
15743
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
15744
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
15745
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
15746
|
+
* timing.
|
|
15747
|
+
*/
|
|
15748
|
+
interface PromptCondition {
|
|
15749
|
+
/**
|
|
15750
|
+
* Prompt condition text
|
|
15751
|
+
*/
|
|
15752
|
+
prompt: string;
|
|
15753
|
+
type: 'prompt';
|
|
15754
|
+
}
|
|
15755
|
+
}
|
|
14481
15756
|
/**
|
|
14482
15757
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
14483
15758
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -14674,6 +15949,13 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
14674
15949
|
* responds. Use as the node's only outgoing edge.
|
|
14675
15950
|
*/
|
|
14676
15951
|
always_edge?: SubagentNode.AlwaysEdge;
|
|
15952
|
+
/**
|
|
15953
|
+
* If set, replaces the agent-level boosted_keywords while this node is active. Set
|
|
15954
|
+
* to an empty list to disable boosted keywords for this node. Entries may
|
|
15955
|
+
* reference dynamic variables with `{{variable}}` syntax, resolved when the node
|
|
15956
|
+
* is entered.
|
|
15957
|
+
*/
|
|
15958
|
+
boosted_keywords?: Array<string> | null;
|
|
14677
15959
|
/**
|
|
14678
15960
|
* Custom transcription settings. Required when stt_mode is custom.
|
|
14679
15961
|
*/
|
|
@@ -14996,9 +16278,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
14996
16278
|
interface GlobalNodeSetting {
|
|
14997
16279
|
/**
|
|
14998
16280
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
14999
|
-
* be empty. Also accepts
|
|
16281
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
16282
|
+
* EquationPromptCondition objects.
|
|
15000
16283
|
*/
|
|
15001
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
16284
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
15002
16285
|
/**
|
|
15003
16286
|
* The same global node won't be triggered again within the next N node
|
|
15004
16287
|
* transitions.
|
|
@@ -15045,6 +16328,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
15045
16328
|
right?: string;
|
|
15046
16329
|
}
|
|
15047
16330
|
}
|
|
16331
|
+
interface EquationPromptCondition {
|
|
16332
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
16333
|
+
operator: '||' | '&&';
|
|
16334
|
+
type: 'equation_prompt';
|
|
16335
|
+
/**
|
|
16336
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
16337
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
16338
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
16339
|
+
* timing.
|
|
16340
|
+
*/
|
|
16341
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
16342
|
+
}
|
|
16343
|
+
namespace EquationPromptCondition {
|
|
16344
|
+
interface Equation {
|
|
16345
|
+
/**
|
|
16346
|
+
* Left side of the equation
|
|
16347
|
+
*/
|
|
16348
|
+
left: string;
|
|
16349
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
16350
|
+
/**
|
|
16351
|
+
* Right side of the equation. The right side of the equation not required when
|
|
16352
|
+
* "exists" or "not_exist" are selected.
|
|
16353
|
+
*/
|
|
16354
|
+
right?: string;
|
|
16355
|
+
}
|
|
16356
|
+
/**
|
|
16357
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
16358
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
16359
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
16360
|
+
* timing.
|
|
16361
|
+
*/
|
|
16362
|
+
interface PromptCondition {
|
|
16363
|
+
/**
|
|
16364
|
+
* Prompt condition text
|
|
16365
|
+
*/
|
|
16366
|
+
prompt: string;
|
|
16367
|
+
type: 'prompt';
|
|
16368
|
+
}
|
|
16369
|
+
}
|
|
15048
16370
|
/**
|
|
15049
16371
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
15050
16372
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -16322,9 +17644,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
16322
17644
|
interface GlobalNodeSetting {
|
|
16323
17645
|
/**
|
|
16324
17646
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
16325
|
-
* be empty. Also accepts
|
|
17647
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
17648
|
+
* EquationPromptCondition objects.
|
|
16326
17649
|
*/
|
|
16327
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
17650
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
16328
17651
|
/**
|
|
16329
17652
|
* The same global node won't be triggered again within the next N node
|
|
16330
17653
|
* transitions.
|
|
@@ -16371,6 +17694,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
16371
17694
|
right?: string;
|
|
16372
17695
|
}
|
|
16373
17696
|
}
|
|
17697
|
+
interface EquationPromptCondition {
|
|
17698
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
17699
|
+
operator: '||' | '&&';
|
|
17700
|
+
type: 'equation_prompt';
|
|
17701
|
+
/**
|
|
17702
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
17703
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
17704
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
17705
|
+
* timing.
|
|
17706
|
+
*/
|
|
17707
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
17708
|
+
}
|
|
17709
|
+
namespace EquationPromptCondition {
|
|
17710
|
+
interface Equation {
|
|
17711
|
+
/**
|
|
17712
|
+
* Left side of the equation
|
|
17713
|
+
*/
|
|
17714
|
+
left: string;
|
|
17715
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
17716
|
+
/**
|
|
17717
|
+
* Right side of the equation. The right side of the equation not required when
|
|
17718
|
+
* "exists" or "not_exist" are selected.
|
|
17719
|
+
*/
|
|
17720
|
+
right?: string;
|
|
17721
|
+
}
|
|
17722
|
+
/**
|
|
17723
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
17724
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
17725
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
17726
|
+
* timing.
|
|
17727
|
+
*/
|
|
17728
|
+
interface PromptCondition {
|
|
17729
|
+
/**
|
|
17730
|
+
* Prompt condition text
|
|
17731
|
+
*/
|
|
17732
|
+
prompt: string;
|
|
17733
|
+
type: 'prompt';
|
|
17734
|
+
}
|
|
17735
|
+
}
|
|
16374
17736
|
/**
|
|
16375
17737
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
16376
17738
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -16691,9 +18053,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
16691
18053
|
interface GlobalNodeSetting {
|
|
16692
18054
|
/**
|
|
16693
18055
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
16694
|
-
* be empty. Also accepts
|
|
18056
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
18057
|
+
* EquationPromptCondition objects.
|
|
16695
18058
|
*/
|
|
16696
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
18059
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
16697
18060
|
/**
|
|
16698
18061
|
* The same global node won't be triggered again within the next N node
|
|
16699
18062
|
* transitions.
|
|
@@ -16740,6 +18103,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
16740
18103
|
right?: string;
|
|
16741
18104
|
}
|
|
16742
18105
|
}
|
|
18106
|
+
interface EquationPromptCondition {
|
|
18107
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
18108
|
+
operator: '||' | '&&';
|
|
18109
|
+
type: 'equation_prompt';
|
|
18110
|
+
/**
|
|
18111
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
18112
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
18113
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
18114
|
+
* timing.
|
|
18115
|
+
*/
|
|
18116
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
18117
|
+
}
|
|
18118
|
+
namespace EquationPromptCondition {
|
|
18119
|
+
interface Equation {
|
|
18120
|
+
/**
|
|
18121
|
+
* Left side of the equation
|
|
18122
|
+
*/
|
|
18123
|
+
left: string;
|
|
18124
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
18125
|
+
/**
|
|
18126
|
+
* Right side of the equation. The right side of the equation not required when
|
|
18127
|
+
* "exists" or "not_exist" are selected.
|
|
18128
|
+
*/
|
|
18129
|
+
right?: string;
|
|
18130
|
+
}
|
|
18131
|
+
/**
|
|
18132
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
18133
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
18134
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
18135
|
+
* timing.
|
|
18136
|
+
*/
|
|
18137
|
+
interface PromptCondition {
|
|
18138
|
+
/**
|
|
18139
|
+
* Prompt condition text
|
|
18140
|
+
*/
|
|
18141
|
+
prompt: string;
|
|
18142
|
+
type: 'prompt';
|
|
18143
|
+
}
|
|
18144
|
+
}
|
|
16743
18145
|
/**
|
|
16744
18146
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
16745
18147
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -17068,9 +18470,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
17068
18470
|
interface GlobalNodeSetting {
|
|
17069
18471
|
/**
|
|
17070
18472
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
17071
|
-
* be empty. Also accepts
|
|
18473
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
18474
|
+
* EquationPromptCondition objects.
|
|
17072
18475
|
*/
|
|
17073
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
18476
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
17074
18477
|
/**
|
|
17075
18478
|
* The same global node won't be triggered again within the next N node
|
|
17076
18479
|
* transitions.
|
|
@@ -17117,6 +18520,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
17117
18520
|
right?: string;
|
|
17118
18521
|
}
|
|
17119
18522
|
}
|
|
18523
|
+
interface EquationPromptCondition {
|
|
18524
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
18525
|
+
operator: '||' | '&&';
|
|
18526
|
+
type: 'equation_prompt';
|
|
18527
|
+
/**
|
|
18528
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
18529
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
18530
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
18531
|
+
* timing.
|
|
18532
|
+
*/
|
|
18533
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
18534
|
+
}
|
|
18535
|
+
namespace EquationPromptCondition {
|
|
18536
|
+
interface Equation {
|
|
18537
|
+
/**
|
|
18538
|
+
* Left side of the equation
|
|
18539
|
+
*/
|
|
18540
|
+
left: string;
|
|
18541
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
18542
|
+
/**
|
|
18543
|
+
* Right side of the equation. The right side of the equation not required when
|
|
18544
|
+
* "exists" or "not_exist" are selected.
|
|
18545
|
+
*/
|
|
18546
|
+
right?: string;
|
|
18547
|
+
}
|
|
18548
|
+
/**
|
|
18549
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
18550
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
18551
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
18552
|
+
* timing.
|
|
18553
|
+
*/
|
|
18554
|
+
interface PromptCondition {
|
|
18555
|
+
/**
|
|
18556
|
+
* Prompt condition text
|
|
18557
|
+
*/
|
|
18558
|
+
prompt: string;
|
|
18559
|
+
type: 'prompt';
|
|
18560
|
+
}
|
|
18561
|
+
}
|
|
17120
18562
|
/**
|
|
17121
18563
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
17122
18564
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -17605,9 +19047,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
17605
19047
|
interface GlobalNodeSetting {
|
|
17606
19048
|
/**
|
|
17607
19049
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
17608
|
-
* be empty. Also accepts
|
|
19050
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
19051
|
+
* EquationPromptCondition objects.
|
|
17609
19052
|
*/
|
|
17610
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
19053
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
17611
19054
|
/**
|
|
17612
19055
|
* The same global node won't be triggered again within the next N node
|
|
17613
19056
|
* transitions.
|
|
@@ -17654,6 +19097,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
17654
19097
|
right?: string;
|
|
17655
19098
|
}
|
|
17656
19099
|
}
|
|
19100
|
+
interface EquationPromptCondition {
|
|
19101
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
19102
|
+
operator: '||' | '&&';
|
|
19103
|
+
type: 'equation_prompt';
|
|
19104
|
+
/**
|
|
19105
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
19106
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
19107
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
19108
|
+
* timing.
|
|
19109
|
+
*/
|
|
19110
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
19111
|
+
}
|
|
19112
|
+
namespace EquationPromptCondition {
|
|
19113
|
+
interface Equation {
|
|
19114
|
+
/**
|
|
19115
|
+
* Left side of the equation
|
|
19116
|
+
*/
|
|
19117
|
+
left: string;
|
|
19118
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
19119
|
+
/**
|
|
19120
|
+
* Right side of the equation. The right side of the equation not required when
|
|
19121
|
+
* "exists" or "not_exist" are selected.
|
|
19122
|
+
*/
|
|
19123
|
+
right?: string;
|
|
19124
|
+
}
|
|
19125
|
+
/**
|
|
19126
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
19127
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
19128
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
19129
|
+
* timing.
|
|
19130
|
+
*/
|
|
19131
|
+
interface PromptCondition {
|
|
19132
|
+
/**
|
|
19133
|
+
* Prompt condition text
|
|
19134
|
+
*/
|
|
19135
|
+
prompt: string;
|
|
19136
|
+
type: 'prompt';
|
|
19137
|
+
}
|
|
19138
|
+
}
|
|
17657
19139
|
/**
|
|
17658
19140
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
17659
19141
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -17968,9 +19450,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
17968
19450
|
interface GlobalNodeSetting {
|
|
17969
19451
|
/**
|
|
17970
19452
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
17971
|
-
* be empty. Also accepts
|
|
19453
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
19454
|
+
* EquationPromptCondition objects.
|
|
17972
19455
|
*/
|
|
17973
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
19456
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
17974
19457
|
/**
|
|
17975
19458
|
* The same global node won't be triggered again within the next N node
|
|
17976
19459
|
* transitions.
|
|
@@ -18017,6 +19500,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
18017
19500
|
right?: string;
|
|
18018
19501
|
}
|
|
18019
19502
|
}
|
|
19503
|
+
interface EquationPromptCondition {
|
|
19504
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
19505
|
+
operator: '||' | '&&';
|
|
19506
|
+
type: 'equation_prompt';
|
|
19507
|
+
/**
|
|
19508
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
19509
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
19510
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
19511
|
+
* timing.
|
|
19512
|
+
*/
|
|
19513
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
19514
|
+
}
|
|
19515
|
+
namespace EquationPromptCondition {
|
|
19516
|
+
interface Equation {
|
|
19517
|
+
/**
|
|
19518
|
+
* Left side of the equation
|
|
19519
|
+
*/
|
|
19520
|
+
left: string;
|
|
19521
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
19522
|
+
/**
|
|
19523
|
+
* Right side of the equation. The right side of the equation not required when
|
|
19524
|
+
* "exists" or "not_exist" are selected.
|
|
19525
|
+
*/
|
|
19526
|
+
right?: string;
|
|
19527
|
+
}
|
|
19528
|
+
/**
|
|
19529
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
19530
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
19531
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
19532
|
+
* timing.
|
|
19533
|
+
*/
|
|
19534
|
+
interface PromptCondition {
|
|
19535
|
+
/**
|
|
19536
|
+
* Prompt condition text
|
|
19537
|
+
*/
|
|
19538
|
+
prompt: string;
|
|
19539
|
+
type: 'prompt';
|
|
19540
|
+
}
|
|
19541
|
+
}
|
|
18020
19542
|
/**
|
|
18021
19543
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
18022
19544
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -18296,9 +19818,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
18296
19818
|
interface GlobalNodeSetting {
|
|
18297
19819
|
/**
|
|
18298
19820
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
18299
|
-
* be empty. Also accepts
|
|
19821
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
19822
|
+
* EquationPromptCondition objects.
|
|
18300
19823
|
*/
|
|
18301
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
19824
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
18302
19825
|
/**
|
|
18303
19826
|
* The same global node won't be triggered again within the next N node
|
|
18304
19827
|
* transitions.
|
|
@@ -18345,6 +19868,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
18345
19868
|
right?: string;
|
|
18346
19869
|
}
|
|
18347
19870
|
}
|
|
19871
|
+
interface EquationPromptCondition {
|
|
19872
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
19873
|
+
operator: '||' | '&&';
|
|
19874
|
+
type: 'equation_prompt';
|
|
19875
|
+
/**
|
|
19876
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
19877
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
19878
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
19879
|
+
* timing.
|
|
19880
|
+
*/
|
|
19881
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
19882
|
+
}
|
|
19883
|
+
namespace EquationPromptCondition {
|
|
19884
|
+
interface Equation {
|
|
19885
|
+
/**
|
|
19886
|
+
* Left side of the equation
|
|
19887
|
+
*/
|
|
19888
|
+
left: string;
|
|
19889
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
19890
|
+
/**
|
|
19891
|
+
* Right side of the equation. The right side of the equation not required when
|
|
19892
|
+
* "exists" or "not_exist" are selected.
|
|
19893
|
+
*/
|
|
19894
|
+
right?: string;
|
|
19895
|
+
}
|
|
19896
|
+
/**
|
|
19897
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
19898
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
19899
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
19900
|
+
* timing.
|
|
19901
|
+
*/
|
|
19902
|
+
interface PromptCondition {
|
|
19903
|
+
/**
|
|
19904
|
+
* Prompt condition text
|
|
19905
|
+
*/
|
|
19906
|
+
prompt: string;
|
|
19907
|
+
type: 'prompt';
|
|
19908
|
+
}
|
|
19909
|
+
}
|
|
18348
19910
|
/**
|
|
18349
19911
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
18350
19912
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -18632,9 +20194,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
18632
20194
|
interface GlobalNodeSetting {
|
|
18633
20195
|
/**
|
|
18634
20196
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
18635
|
-
* be empty. Also accepts
|
|
20197
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
20198
|
+
* EquationPromptCondition objects.
|
|
18636
20199
|
*/
|
|
18637
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
20200
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
18638
20201
|
/**
|
|
18639
20202
|
* The same global node won't be triggered again within the next N node
|
|
18640
20203
|
* transitions.
|
|
@@ -18681,6 +20244,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
18681
20244
|
right?: string;
|
|
18682
20245
|
}
|
|
18683
20246
|
}
|
|
20247
|
+
interface EquationPromptCondition {
|
|
20248
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
20249
|
+
operator: '||' | '&&';
|
|
20250
|
+
type: 'equation_prompt';
|
|
20251
|
+
/**
|
|
20252
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20253
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20254
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20255
|
+
* timing.
|
|
20256
|
+
*/
|
|
20257
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
20258
|
+
}
|
|
20259
|
+
namespace EquationPromptCondition {
|
|
20260
|
+
interface Equation {
|
|
20261
|
+
/**
|
|
20262
|
+
* Left side of the equation
|
|
20263
|
+
*/
|
|
20264
|
+
left: string;
|
|
20265
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
20266
|
+
/**
|
|
20267
|
+
* Right side of the equation. The right side of the equation not required when
|
|
20268
|
+
* "exists" or "not_exist" are selected.
|
|
20269
|
+
*/
|
|
20270
|
+
right?: string;
|
|
20271
|
+
}
|
|
20272
|
+
/**
|
|
20273
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20274
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20275
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20276
|
+
* timing.
|
|
20277
|
+
*/
|
|
20278
|
+
interface PromptCondition {
|
|
20279
|
+
/**
|
|
20280
|
+
* Prompt condition text
|
|
20281
|
+
*/
|
|
20282
|
+
prompt: string;
|
|
20283
|
+
type: 'prompt';
|
|
20284
|
+
}
|
|
20285
|
+
}
|
|
18684
20286
|
/**
|
|
18685
20287
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
18686
20288
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -19073,9 +20675,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
19073
20675
|
interface GlobalNodeSetting {
|
|
19074
20676
|
/**
|
|
19075
20677
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
19076
|
-
* be empty. Also accepts
|
|
20678
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
20679
|
+
* EquationPromptCondition objects.
|
|
19077
20680
|
*/
|
|
19078
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
20681
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
19079
20682
|
/**
|
|
19080
20683
|
* The same global node won't be triggered again within the next N node
|
|
19081
20684
|
* transitions.
|
|
@@ -19122,6 +20725,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
19122
20725
|
right?: string;
|
|
19123
20726
|
}
|
|
19124
20727
|
}
|
|
20728
|
+
interface EquationPromptCondition {
|
|
20729
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
20730
|
+
operator: '||' | '&&';
|
|
20731
|
+
type: 'equation_prompt';
|
|
20732
|
+
/**
|
|
20733
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20734
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20735
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20736
|
+
* timing.
|
|
20737
|
+
*/
|
|
20738
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
20739
|
+
}
|
|
20740
|
+
namespace EquationPromptCondition {
|
|
20741
|
+
interface Equation {
|
|
20742
|
+
/**
|
|
20743
|
+
* Left side of the equation
|
|
20744
|
+
*/
|
|
20745
|
+
left: string;
|
|
20746
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
20747
|
+
/**
|
|
20748
|
+
* Right side of the equation. The right side of the equation not required when
|
|
20749
|
+
* "exists" or "not_exist" are selected.
|
|
20750
|
+
*/
|
|
20751
|
+
right?: string;
|
|
20752
|
+
}
|
|
20753
|
+
/**
|
|
20754
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
20755
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
20756
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
20757
|
+
* timing.
|
|
20758
|
+
*/
|
|
20759
|
+
interface PromptCondition {
|
|
20760
|
+
/**
|
|
20761
|
+
* Prompt condition text
|
|
20762
|
+
*/
|
|
20763
|
+
prompt: string;
|
|
20764
|
+
type: 'prompt';
|
|
20765
|
+
}
|
|
20766
|
+
}
|
|
19125
20767
|
/**
|
|
19126
20768
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
19127
20769
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -19360,9 +21002,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
19360
21002
|
interface GlobalNodeSetting {
|
|
19361
21003
|
/**
|
|
19362
21004
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
19363
|
-
* be empty. Also accepts
|
|
21005
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
21006
|
+
* EquationPromptCondition objects.
|
|
19364
21007
|
*/
|
|
19365
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
21008
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
19366
21009
|
/**
|
|
19367
21010
|
* The same global node won't be triggered again within the next N node
|
|
19368
21011
|
* transitions.
|
|
@@ -19409,6 +21052,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
19409
21052
|
right?: string;
|
|
19410
21053
|
}
|
|
19411
21054
|
}
|
|
21055
|
+
interface EquationPromptCondition {
|
|
21056
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
21057
|
+
operator: '||' | '&&';
|
|
21058
|
+
type: 'equation_prompt';
|
|
21059
|
+
/**
|
|
21060
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
21061
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
21062
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
21063
|
+
* timing.
|
|
21064
|
+
*/
|
|
21065
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
21066
|
+
}
|
|
21067
|
+
namespace EquationPromptCondition {
|
|
21068
|
+
interface Equation {
|
|
21069
|
+
/**
|
|
21070
|
+
* Left side of the equation
|
|
21071
|
+
*/
|
|
21072
|
+
left: string;
|
|
21073
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
21074
|
+
/**
|
|
21075
|
+
* Right side of the equation. The right side of the equation not required when
|
|
21076
|
+
* "exists" or "not_exist" are selected.
|
|
21077
|
+
*/
|
|
21078
|
+
right?: string;
|
|
21079
|
+
}
|
|
21080
|
+
/**
|
|
21081
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
21082
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
21083
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
21084
|
+
* timing.
|
|
21085
|
+
*/
|
|
21086
|
+
interface PromptCondition {
|
|
21087
|
+
/**
|
|
21088
|
+
* Prompt condition text
|
|
21089
|
+
*/
|
|
21090
|
+
prompt: string;
|
|
21091
|
+
type: 'prompt';
|
|
21092
|
+
}
|
|
21093
|
+
}
|
|
19412
21094
|
/**
|
|
19413
21095
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
19414
21096
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -19739,9 +21421,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
19739
21421
|
interface GlobalNodeSetting {
|
|
19740
21422
|
/**
|
|
19741
21423
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
19742
|
-
* be empty. Also accepts
|
|
21424
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
21425
|
+
* EquationPromptCondition objects.
|
|
19743
21426
|
*/
|
|
19744
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
21427
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
19745
21428
|
/**
|
|
19746
21429
|
* The same global node won't be triggered again within the next N node
|
|
19747
21430
|
* transitions.
|
|
@@ -19788,6 +21471,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
19788
21471
|
right?: string;
|
|
19789
21472
|
}
|
|
19790
21473
|
}
|
|
21474
|
+
interface EquationPromptCondition {
|
|
21475
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
21476
|
+
operator: '||' | '&&';
|
|
21477
|
+
type: 'equation_prompt';
|
|
21478
|
+
/**
|
|
21479
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
21480
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
21481
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
21482
|
+
* timing.
|
|
21483
|
+
*/
|
|
21484
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
21485
|
+
}
|
|
21486
|
+
namespace EquationPromptCondition {
|
|
21487
|
+
interface Equation {
|
|
21488
|
+
/**
|
|
21489
|
+
* Left side of the equation
|
|
21490
|
+
*/
|
|
21491
|
+
left: string;
|
|
21492
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
21493
|
+
/**
|
|
21494
|
+
* Right side of the equation. The right side of the equation not required when
|
|
21495
|
+
* "exists" or "not_exist" are selected.
|
|
21496
|
+
*/
|
|
21497
|
+
right?: string;
|
|
21498
|
+
}
|
|
21499
|
+
/**
|
|
21500
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
21501
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
21502
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
21503
|
+
* timing.
|
|
21504
|
+
*/
|
|
21505
|
+
interface PromptCondition {
|
|
21506
|
+
/**
|
|
21507
|
+
* Prompt condition text
|
|
21508
|
+
*/
|
|
21509
|
+
prompt: string;
|
|
21510
|
+
type: 'prompt';
|
|
21511
|
+
}
|
|
21512
|
+
}
|
|
19791
21513
|
/**
|
|
19792
21514
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
19793
21515
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -20096,9 +21818,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
20096
21818
|
interface GlobalNodeSetting {
|
|
20097
21819
|
/**
|
|
20098
21820
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
20099
|
-
* be empty. Also accepts
|
|
21821
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
21822
|
+
* EquationPromptCondition objects.
|
|
20100
21823
|
*/
|
|
20101
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
21824
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
20102
21825
|
/**
|
|
20103
21826
|
* The same global node won't be triggered again within the next N node
|
|
20104
21827
|
* transitions.
|
|
@@ -20145,6 +21868,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
20145
21868
|
right?: string;
|
|
20146
21869
|
}
|
|
20147
21870
|
}
|
|
21871
|
+
interface EquationPromptCondition {
|
|
21872
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
21873
|
+
operator: '||' | '&&';
|
|
21874
|
+
type: 'equation_prompt';
|
|
21875
|
+
/**
|
|
21876
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
21877
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
21878
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
21879
|
+
* timing.
|
|
21880
|
+
*/
|
|
21881
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
21882
|
+
}
|
|
21883
|
+
namespace EquationPromptCondition {
|
|
21884
|
+
interface Equation {
|
|
21885
|
+
/**
|
|
21886
|
+
* Left side of the equation
|
|
21887
|
+
*/
|
|
21888
|
+
left: string;
|
|
21889
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
21890
|
+
/**
|
|
21891
|
+
* Right side of the equation. The right side of the equation not required when
|
|
21892
|
+
* "exists" or "not_exist" are selected.
|
|
21893
|
+
*/
|
|
21894
|
+
right?: string;
|
|
21895
|
+
}
|
|
21896
|
+
/**
|
|
21897
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
21898
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
21899
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
21900
|
+
* timing.
|
|
21901
|
+
*/
|
|
21902
|
+
interface PromptCondition {
|
|
21903
|
+
/**
|
|
21904
|
+
* Prompt condition text
|
|
21905
|
+
*/
|
|
21906
|
+
prompt: string;
|
|
21907
|
+
type: 'prompt';
|
|
21908
|
+
}
|
|
21909
|
+
}
|
|
20148
21910
|
/**
|
|
20149
21911
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
20150
21912
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -20279,9 +22041,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
20279
22041
|
interface GlobalNodeSetting {
|
|
20280
22042
|
/**
|
|
20281
22043
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
20282
|
-
* be empty. Also accepts
|
|
22044
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
22045
|
+
* EquationPromptCondition objects.
|
|
20283
22046
|
*/
|
|
20284
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
22047
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
20285
22048
|
/**
|
|
20286
22049
|
* The same global node won't be triggered again within the next N node
|
|
20287
22050
|
* transitions.
|
|
@@ -20328,6 +22091,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
20328
22091
|
right?: string;
|
|
20329
22092
|
}
|
|
20330
22093
|
}
|
|
22094
|
+
interface EquationPromptCondition {
|
|
22095
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
22096
|
+
operator: '||' | '&&';
|
|
22097
|
+
type: 'equation_prompt';
|
|
22098
|
+
/**
|
|
22099
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
22100
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
22101
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
22102
|
+
* timing.
|
|
22103
|
+
*/
|
|
22104
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
22105
|
+
}
|
|
22106
|
+
namespace EquationPromptCondition {
|
|
22107
|
+
interface Equation {
|
|
22108
|
+
/**
|
|
22109
|
+
* Left side of the equation
|
|
22110
|
+
*/
|
|
22111
|
+
left: string;
|
|
22112
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
22113
|
+
/**
|
|
22114
|
+
* Right side of the equation. The right side of the equation not required when
|
|
22115
|
+
* "exists" or "not_exist" are selected.
|
|
22116
|
+
*/
|
|
22117
|
+
right?: string;
|
|
22118
|
+
}
|
|
22119
|
+
/**
|
|
22120
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
22121
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
22122
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
22123
|
+
* timing.
|
|
22124
|
+
*/
|
|
22125
|
+
interface PromptCondition {
|
|
22126
|
+
/**
|
|
22127
|
+
* Prompt condition text
|
|
22128
|
+
*/
|
|
22129
|
+
prompt: string;
|
|
22130
|
+
type: 'prompt';
|
|
22131
|
+
}
|
|
22132
|
+
}
|
|
20331
22133
|
/**
|
|
20332
22134
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
20333
22135
|
* transitions when its condition matches. Equation conditions compare dynamic
|
|
@@ -20496,9 +22298,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
20496
22298
|
interface GlobalNodeSetting {
|
|
20497
22299
|
/**
|
|
20498
22300
|
* Condition for global node activation. A string is a prompt condition and cannot
|
|
20499
|
-
* be empty. Also accepts
|
|
22301
|
+
* be empty. Also accepts typed PromptCondition, EquationCondition, or
|
|
22302
|
+
* EquationPromptCondition objects.
|
|
20500
22303
|
*/
|
|
20501
|
-
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition;
|
|
22304
|
+
condition: string | GlobalNodeSetting.PromptCondition | GlobalNodeSetting.EquationCondition | GlobalNodeSetting.EquationPromptCondition;
|
|
20502
22305
|
/**
|
|
20503
22306
|
* The same global node won't be triggered again within the next N node
|
|
20504
22307
|
* transitions.
|
|
@@ -20545,6 +22348,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
20545
22348
|
right?: string;
|
|
20546
22349
|
}
|
|
20547
22350
|
}
|
|
22351
|
+
interface EquationPromptCondition {
|
|
22352
|
+
equations: Array<EquationPromptCondition.Equation>;
|
|
22353
|
+
operator: '||' | '&&';
|
|
22354
|
+
type: 'equation_prompt';
|
|
22355
|
+
/**
|
|
22356
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
22357
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
22358
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
22359
|
+
* timing.
|
|
22360
|
+
*/
|
|
22361
|
+
prompt_condition?: EquationPromptCondition.PromptCondition;
|
|
22362
|
+
}
|
|
22363
|
+
namespace EquationPromptCondition {
|
|
22364
|
+
interface Equation {
|
|
22365
|
+
/**
|
|
22366
|
+
* Left side of the equation
|
|
22367
|
+
*/
|
|
22368
|
+
left: string;
|
|
22369
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
22370
|
+
/**
|
|
22371
|
+
* Right side of the equation. The right side of the equation not required when
|
|
22372
|
+
* "exists" or "not_exist" are selected.
|
|
22373
|
+
*/
|
|
22374
|
+
right?: string;
|
|
22375
|
+
}
|
|
22376
|
+
/**
|
|
22377
|
+
* Optional prompt combined with the equations by operator. Omit to evaluate only
|
|
22378
|
+
* equations. With no equations, only the prompt is evaluated. Deterministic
|
|
22379
|
+
* matches take priority; otherwise the prompt uses normal prompt transition
|
|
22380
|
+
* timing.
|
|
22381
|
+
*/
|
|
22382
|
+
interface PromptCondition {
|
|
22383
|
+
/**
|
|
22384
|
+
* Prompt condition text
|
|
22385
|
+
*/
|
|
22386
|
+
prompt: string;
|
|
22387
|
+
type: 'prompt';
|
|
22388
|
+
}
|
|
22389
|
+
}
|
|
20548
22390
|
/**
|
|
20549
22391
|
* A connection between conversation-flow nodes. When used in a node's edges array,
|
|
20550
22392
|
* transitions when its condition matches. Equation conditions compare dynamic
|