retell-sdk 5.2.0 → 5.3.1
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 +22 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +39 -3
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +39 -3
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +13 -1
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +13 -1
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +58 -6
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +58 -6
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +34 -0
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +34 -0
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat.d.mts +8 -0
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +8 -0
- package/resources/chat.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +1927 -16
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +1927 -16
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +3958 -136
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +3958 -136
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/phone-number.d.mts +57 -38
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +57 -38
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/voice.d.mts +6 -6
- package/resources/voice.d.mts.map +1 -1
- package/resources/voice.d.ts +6 -6
- package/resources/voice.d.ts.map +1 -1
- package/src/resources/agent.ts +45 -0
- package/src/resources/batch-call.ts +15 -0
- package/src/resources/call.ts +65 -3
- package/src/resources/chat-agent.ts +40 -0
- package/src/resources/chat.ts +10 -0
- package/src/resources/conversation-flow-component.ts +2808 -0
- package/src/resources/conversation-flow.ts +5801 -185
- package/src/resources/phone-number.ts +57 -38
- package/src/resources/voice.ts +6 -6
- 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
|
@@ -333,6 +333,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
333
333
|
* Condition for global node activation, cannot be empty
|
|
334
334
|
*/
|
|
335
335
|
condition: string;
|
|
336
|
+
/**
|
|
337
|
+
* The same global node won't be triggered again within the next N node
|
|
338
|
+
* transitions.
|
|
339
|
+
*/
|
|
340
|
+
cool_down?: number;
|
|
341
|
+
/**
|
|
342
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
343
|
+
* for these edges.
|
|
344
|
+
*/
|
|
345
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
336
346
|
/**
|
|
337
347
|
* Don't transition to this node
|
|
338
348
|
*/
|
|
@@ -343,6 +353,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
343
353
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
344
354
|
}
|
|
345
355
|
namespace GlobalNodeSetting {
|
|
356
|
+
interface GoBackCondition {
|
|
357
|
+
/**
|
|
358
|
+
* Unique identifier for the edge
|
|
359
|
+
*/
|
|
360
|
+
id: string;
|
|
361
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
362
|
+
/**
|
|
363
|
+
* ID of the destination node
|
|
364
|
+
*/
|
|
365
|
+
destination_node_id?: string;
|
|
366
|
+
}
|
|
367
|
+
namespace GoBackCondition {
|
|
368
|
+
interface PromptCondition {
|
|
369
|
+
/**
|
|
370
|
+
* Prompt condition text
|
|
371
|
+
*/
|
|
372
|
+
prompt: string;
|
|
373
|
+
type: 'prompt';
|
|
374
|
+
}
|
|
375
|
+
interface EquationCondition {
|
|
376
|
+
equations: Array<EquationCondition.Equation>;
|
|
377
|
+
operator: '||' | '&&';
|
|
378
|
+
type: 'equation';
|
|
379
|
+
}
|
|
380
|
+
namespace EquationCondition {
|
|
381
|
+
interface Equation {
|
|
382
|
+
/**
|
|
383
|
+
* Left side of the equation
|
|
384
|
+
*/
|
|
385
|
+
left: string;
|
|
386
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
387
|
+
/**
|
|
388
|
+
* Right side of the equation. The right side of the equation not required when
|
|
389
|
+
* "exists" or "not_exist" are selected.
|
|
390
|
+
*/
|
|
391
|
+
right?: string;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
346
395
|
interface NegativeFinetuneExample {
|
|
347
396
|
/**
|
|
348
397
|
* Find tune the transition condition to this global node
|
|
@@ -1252,6 +1301,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1252
1301
|
* Condition for global node activation, cannot be empty
|
|
1253
1302
|
*/
|
|
1254
1303
|
condition: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* The same global node won't be triggered again within the next N node
|
|
1306
|
+
* transitions.
|
|
1307
|
+
*/
|
|
1308
|
+
cool_down?: number;
|
|
1309
|
+
/**
|
|
1310
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
1311
|
+
* for these edges.
|
|
1312
|
+
*/
|
|
1313
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
1255
1314
|
/**
|
|
1256
1315
|
* Don't transition to this node
|
|
1257
1316
|
*/
|
|
@@ -1262,6 +1321,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1262
1321
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
1263
1322
|
}
|
|
1264
1323
|
namespace GlobalNodeSetting {
|
|
1324
|
+
interface GoBackCondition {
|
|
1325
|
+
/**
|
|
1326
|
+
* Unique identifier for the edge
|
|
1327
|
+
*/
|
|
1328
|
+
id: string;
|
|
1329
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
1330
|
+
/**
|
|
1331
|
+
* ID of the destination node
|
|
1332
|
+
*/
|
|
1333
|
+
destination_node_id?: string;
|
|
1334
|
+
}
|
|
1335
|
+
namespace GoBackCondition {
|
|
1336
|
+
interface PromptCondition {
|
|
1337
|
+
/**
|
|
1338
|
+
* Prompt condition text
|
|
1339
|
+
*/
|
|
1340
|
+
prompt: string;
|
|
1341
|
+
type: 'prompt';
|
|
1342
|
+
}
|
|
1343
|
+
interface EquationCondition {
|
|
1344
|
+
equations: Array<EquationCondition.Equation>;
|
|
1345
|
+
operator: '||' | '&&';
|
|
1346
|
+
type: 'equation';
|
|
1347
|
+
}
|
|
1348
|
+
namespace EquationCondition {
|
|
1349
|
+
interface Equation {
|
|
1350
|
+
/**
|
|
1351
|
+
* Left side of the equation
|
|
1352
|
+
*/
|
|
1353
|
+
left: string;
|
|
1354
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
1355
|
+
/**
|
|
1356
|
+
* Right side of the equation. The right side of the equation not required when
|
|
1357
|
+
* "exists" or "not_exist" are selected.
|
|
1358
|
+
*/
|
|
1359
|
+
right?: string;
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1265
1363
|
interface NegativeFinetuneExample {
|
|
1266
1364
|
/**
|
|
1267
1365
|
* Find tune the transition condition to this global node
|
|
@@ -1506,6 +1604,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1506
1604
|
* Condition for global node activation, cannot be empty
|
|
1507
1605
|
*/
|
|
1508
1606
|
condition: string;
|
|
1607
|
+
/**
|
|
1608
|
+
* The same global node won't be triggered again within the next N node
|
|
1609
|
+
* transitions.
|
|
1610
|
+
*/
|
|
1611
|
+
cool_down?: number;
|
|
1612
|
+
/**
|
|
1613
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
1614
|
+
* for these edges.
|
|
1615
|
+
*/
|
|
1616
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
1509
1617
|
/**
|
|
1510
1618
|
* Don't transition to this node
|
|
1511
1619
|
*/
|
|
@@ -1516,6 +1624,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1516
1624
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
1517
1625
|
}
|
|
1518
1626
|
namespace GlobalNodeSetting {
|
|
1627
|
+
interface GoBackCondition {
|
|
1628
|
+
/**
|
|
1629
|
+
* Unique identifier for the edge
|
|
1630
|
+
*/
|
|
1631
|
+
id: string;
|
|
1632
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
1633
|
+
/**
|
|
1634
|
+
* ID of the destination node
|
|
1635
|
+
*/
|
|
1636
|
+
destination_node_id?: string;
|
|
1637
|
+
}
|
|
1638
|
+
namespace GoBackCondition {
|
|
1639
|
+
interface PromptCondition {
|
|
1640
|
+
/**
|
|
1641
|
+
* Prompt condition text
|
|
1642
|
+
*/
|
|
1643
|
+
prompt: string;
|
|
1644
|
+
type: 'prompt';
|
|
1645
|
+
}
|
|
1646
|
+
interface EquationCondition {
|
|
1647
|
+
equations: Array<EquationCondition.Equation>;
|
|
1648
|
+
operator: '||' | '&&';
|
|
1649
|
+
type: 'equation';
|
|
1650
|
+
}
|
|
1651
|
+
namespace EquationCondition {
|
|
1652
|
+
interface Equation {
|
|
1653
|
+
/**
|
|
1654
|
+
* Left side of the equation
|
|
1655
|
+
*/
|
|
1656
|
+
left: string;
|
|
1657
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
1658
|
+
/**
|
|
1659
|
+
* Right side of the equation. The right side of the equation not required when
|
|
1660
|
+
* "exists" or "not_exist" are selected.
|
|
1661
|
+
*/
|
|
1662
|
+
right?: string;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1519
1666
|
interface NegativeFinetuneExample {
|
|
1520
1667
|
/**
|
|
1521
1668
|
* Find tune the transition condition to this global node
|
|
@@ -1928,6 +2075,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1928
2075
|
* Condition for global node activation, cannot be empty
|
|
1929
2076
|
*/
|
|
1930
2077
|
condition: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* The same global node won't be triggered again within the next N node
|
|
2080
|
+
* transitions.
|
|
2081
|
+
*/
|
|
2082
|
+
cool_down?: number;
|
|
2083
|
+
/**
|
|
2084
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
2085
|
+
* for these edges.
|
|
2086
|
+
*/
|
|
2087
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
1931
2088
|
/**
|
|
1932
2089
|
* Don't transition to this node
|
|
1933
2090
|
*/
|
|
@@ -1938,6 +2095,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1938
2095
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
1939
2096
|
}
|
|
1940
2097
|
namespace GlobalNodeSetting {
|
|
2098
|
+
interface GoBackCondition {
|
|
2099
|
+
/**
|
|
2100
|
+
* Unique identifier for the edge
|
|
2101
|
+
*/
|
|
2102
|
+
id: string;
|
|
2103
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
2104
|
+
/**
|
|
2105
|
+
* ID of the destination node
|
|
2106
|
+
*/
|
|
2107
|
+
destination_node_id?: string;
|
|
2108
|
+
}
|
|
2109
|
+
namespace GoBackCondition {
|
|
2110
|
+
interface PromptCondition {
|
|
2111
|
+
/**
|
|
2112
|
+
* Prompt condition text
|
|
2113
|
+
*/
|
|
2114
|
+
prompt: string;
|
|
2115
|
+
type: 'prompt';
|
|
2116
|
+
}
|
|
2117
|
+
interface EquationCondition {
|
|
2118
|
+
equations: Array<EquationCondition.Equation>;
|
|
2119
|
+
operator: '||' | '&&';
|
|
2120
|
+
type: 'equation';
|
|
2121
|
+
}
|
|
2122
|
+
namespace EquationCondition {
|
|
2123
|
+
interface Equation {
|
|
2124
|
+
/**
|
|
2125
|
+
* Left side of the equation
|
|
2126
|
+
*/
|
|
2127
|
+
left: string;
|
|
2128
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
2129
|
+
/**
|
|
2130
|
+
* Right side of the equation. The right side of the equation not required when
|
|
2131
|
+
* "exists" or "not_exist" are selected.
|
|
2132
|
+
*/
|
|
2133
|
+
right?: string;
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
1941
2137
|
interface NegativeFinetuneExample {
|
|
1942
2138
|
/**
|
|
1943
2139
|
* Find tune the transition condition to this global node
|
|
@@ -2140,6 +2336,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2140
2336
|
* Condition for global node activation, cannot be empty
|
|
2141
2337
|
*/
|
|
2142
2338
|
condition: string;
|
|
2339
|
+
/**
|
|
2340
|
+
* The same global node won't be triggered again within the next N node
|
|
2341
|
+
* transitions.
|
|
2342
|
+
*/
|
|
2343
|
+
cool_down?: number;
|
|
2344
|
+
/**
|
|
2345
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
2346
|
+
* for these edges.
|
|
2347
|
+
*/
|
|
2348
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
2143
2349
|
/**
|
|
2144
2350
|
* Don't transition to this node
|
|
2145
2351
|
*/
|
|
@@ -2150,6 +2356,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2150
2356
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
2151
2357
|
}
|
|
2152
2358
|
namespace GlobalNodeSetting {
|
|
2359
|
+
interface GoBackCondition {
|
|
2360
|
+
/**
|
|
2361
|
+
* Unique identifier for the edge
|
|
2362
|
+
*/
|
|
2363
|
+
id: string;
|
|
2364
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
2365
|
+
/**
|
|
2366
|
+
* ID of the destination node
|
|
2367
|
+
*/
|
|
2368
|
+
destination_node_id?: string;
|
|
2369
|
+
}
|
|
2370
|
+
namespace GoBackCondition {
|
|
2371
|
+
interface PromptCondition {
|
|
2372
|
+
/**
|
|
2373
|
+
* Prompt condition text
|
|
2374
|
+
*/
|
|
2375
|
+
prompt: string;
|
|
2376
|
+
type: 'prompt';
|
|
2377
|
+
}
|
|
2378
|
+
interface EquationCondition {
|
|
2379
|
+
equations: Array<EquationCondition.Equation>;
|
|
2380
|
+
operator: '||' | '&&';
|
|
2381
|
+
type: 'equation';
|
|
2382
|
+
}
|
|
2383
|
+
namespace EquationCondition {
|
|
2384
|
+
interface Equation {
|
|
2385
|
+
/**
|
|
2386
|
+
* Left side of the equation
|
|
2387
|
+
*/
|
|
2388
|
+
left: string;
|
|
2389
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
2390
|
+
/**
|
|
2391
|
+
* Right side of the equation. The right side of the equation not required when
|
|
2392
|
+
* "exists" or "not_exist" are selected.
|
|
2393
|
+
*/
|
|
2394
|
+
right?: string;
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2153
2398
|
interface NegativeFinetuneExample {
|
|
2154
2399
|
/**
|
|
2155
2400
|
* Find tune the transition condition to this global node
|
|
@@ -2367,6 +2612,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2367
2612
|
* Condition for global node activation, cannot be empty
|
|
2368
2613
|
*/
|
|
2369
2614
|
condition: string;
|
|
2615
|
+
/**
|
|
2616
|
+
* The same global node won't be triggered again within the next N node
|
|
2617
|
+
* transitions.
|
|
2618
|
+
*/
|
|
2619
|
+
cool_down?: number;
|
|
2620
|
+
/**
|
|
2621
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
2622
|
+
* for these edges.
|
|
2623
|
+
*/
|
|
2624
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
2370
2625
|
/**
|
|
2371
2626
|
* Don't transition to this node
|
|
2372
2627
|
*/
|
|
@@ -2377,6 +2632,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2377
2632
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
2378
2633
|
}
|
|
2379
2634
|
namespace GlobalNodeSetting {
|
|
2635
|
+
interface GoBackCondition {
|
|
2636
|
+
/**
|
|
2637
|
+
* Unique identifier for the edge
|
|
2638
|
+
*/
|
|
2639
|
+
id: string;
|
|
2640
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
2641
|
+
/**
|
|
2642
|
+
* ID of the destination node
|
|
2643
|
+
*/
|
|
2644
|
+
destination_node_id?: string;
|
|
2645
|
+
}
|
|
2646
|
+
namespace GoBackCondition {
|
|
2647
|
+
interface PromptCondition {
|
|
2648
|
+
/**
|
|
2649
|
+
* Prompt condition text
|
|
2650
|
+
*/
|
|
2651
|
+
prompt: string;
|
|
2652
|
+
type: 'prompt';
|
|
2653
|
+
}
|
|
2654
|
+
interface EquationCondition {
|
|
2655
|
+
equations: Array<EquationCondition.Equation>;
|
|
2656
|
+
operator: '||' | '&&';
|
|
2657
|
+
type: 'equation';
|
|
2658
|
+
}
|
|
2659
|
+
namespace EquationCondition {
|
|
2660
|
+
interface Equation {
|
|
2661
|
+
/**
|
|
2662
|
+
* Left side of the equation
|
|
2663
|
+
*/
|
|
2664
|
+
left: string;
|
|
2665
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
2666
|
+
/**
|
|
2667
|
+
* Right side of the equation. The right side of the equation not required when
|
|
2668
|
+
* "exists" or "not_exist" are selected.
|
|
2669
|
+
*/
|
|
2670
|
+
right?: string;
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2380
2674
|
interface NegativeFinetuneExample {
|
|
2381
2675
|
/**
|
|
2382
2676
|
* Find tune the transition condition to this global node
|
|
@@ -2580,6 +2874,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2580
2874
|
* Condition for global node activation, cannot be empty
|
|
2581
2875
|
*/
|
|
2582
2876
|
condition: string;
|
|
2877
|
+
/**
|
|
2878
|
+
* The same global node won't be triggered again within the next N node
|
|
2879
|
+
* transitions.
|
|
2880
|
+
*/
|
|
2881
|
+
cool_down?: number;
|
|
2882
|
+
/**
|
|
2883
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
2884
|
+
* for these edges.
|
|
2885
|
+
*/
|
|
2886
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
2583
2887
|
/**
|
|
2584
2888
|
* Don't transition to this node
|
|
2585
2889
|
*/
|
|
@@ -2590,6 +2894,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2590
2894
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
2591
2895
|
}
|
|
2592
2896
|
namespace GlobalNodeSetting {
|
|
2897
|
+
interface GoBackCondition {
|
|
2898
|
+
/**
|
|
2899
|
+
* Unique identifier for the edge
|
|
2900
|
+
*/
|
|
2901
|
+
id: string;
|
|
2902
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
2903
|
+
/**
|
|
2904
|
+
* ID of the destination node
|
|
2905
|
+
*/
|
|
2906
|
+
destination_node_id?: string;
|
|
2907
|
+
}
|
|
2908
|
+
namespace GoBackCondition {
|
|
2909
|
+
interface PromptCondition {
|
|
2910
|
+
/**
|
|
2911
|
+
* Prompt condition text
|
|
2912
|
+
*/
|
|
2913
|
+
prompt: string;
|
|
2914
|
+
type: 'prompt';
|
|
2915
|
+
}
|
|
2916
|
+
interface EquationCondition {
|
|
2917
|
+
equations: Array<EquationCondition.Equation>;
|
|
2918
|
+
operator: '||' | '&&';
|
|
2919
|
+
type: 'equation';
|
|
2920
|
+
}
|
|
2921
|
+
namespace EquationCondition {
|
|
2922
|
+
interface Equation {
|
|
2923
|
+
/**
|
|
2924
|
+
* Left side of the equation
|
|
2925
|
+
*/
|
|
2926
|
+
left: string;
|
|
2927
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
2928
|
+
/**
|
|
2929
|
+
* Right side of the equation. The right side of the equation not required when
|
|
2930
|
+
* "exists" or "not_exist" are selected.
|
|
2931
|
+
*/
|
|
2932
|
+
right?: string;
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2593
2936
|
interface NegativeFinetuneExample {
|
|
2594
2937
|
/**
|
|
2595
2938
|
* Find tune the transition condition to this global node
|
|
@@ -2859,6 +3202,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2859
3202
|
* Condition for global node activation, cannot be empty
|
|
2860
3203
|
*/
|
|
2861
3204
|
condition: string;
|
|
3205
|
+
/**
|
|
3206
|
+
* The same global node won't be triggered again within the next N node
|
|
3207
|
+
* transitions.
|
|
3208
|
+
*/
|
|
3209
|
+
cool_down?: number;
|
|
3210
|
+
/**
|
|
3211
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
3212
|
+
* for these edges.
|
|
3213
|
+
*/
|
|
3214
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
2862
3215
|
/**
|
|
2863
3216
|
* Don't transition to this node
|
|
2864
3217
|
*/
|
|
@@ -2869,6 +3222,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
2869
3222
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
2870
3223
|
}
|
|
2871
3224
|
namespace GlobalNodeSetting {
|
|
3225
|
+
interface GoBackCondition {
|
|
3226
|
+
/**
|
|
3227
|
+
* Unique identifier for the edge
|
|
3228
|
+
*/
|
|
3229
|
+
id: string;
|
|
3230
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
3231
|
+
/**
|
|
3232
|
+
* ID of the destination node
|
|
3233
|
+
*/
|
|
3234
|
+
destination_node_id?: string;
|
|
3235
|
+
}
|
|
3236
|
+
namespace GoBackCondition {
|
|
3237
|
+
interface PromptCondition {
|
|
3238
|
+
/**
|
|
3239
|
+
* Prompt condition text
|
|
3240
|
+
*/
|
|
3241
|
+
prompt: string;
|
|
3242
|
+
type: 'prompt';
|
|
3243
|
+
}
|
|
3244
|
+
interface EquationCondition {
|
|
3245
|
+
equations: Array<EquationCondition.Equation>;
|
|
3246
|
+
operator: '||' | '&&';
|
|
3247
|
+
type: 'equation';
|
|
3248
|
+
}
|
|
3249
|
+
namespace EquationCondition {
|
|
3250
|
+
interface Equation {
|
|
3251
|
+
/**
|
|
3252
|
+
* Left side of the equation
|
|
3253
|
+
*/
|
|
3254
|
+
left: string;
|
|
3255
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
3256
|
+
/**
|
|
3257
|
+
* Right side of the equation. The right side of the equation not required when
|
|
3258
|
+
* "exists" or "not_exist" are selected.
|
|
3259
|
+
*/
|
|
3260
|
+
right?: string;
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
2872
3264
|
interface NegativeFinetuneExample {
|
|
2873
3265
|
/**
|
|
2874
3266
|
* Find tune the transition condition to this global node
|
|
@@ -3049,6 +3441,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3049
3441
|
* Condition for global node activation, cannot be empty
|
|
3050
3442
|
*/
|
|
3051
3443
|
condition: string;
|
|
3444
|
+
/**
|
|
3445
|
+
* The same global node won't be triggered again within the next N node
|
|
3446
|
+
* transitions.
|
|
3447
|
+
*/
|
|
3448
|
+
cool_down?: number;
|
|
3449
|
+
/**
|
|
3450
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
3451
|
+
* for these edges.
|
|
3452
|
+
*/
|
|
3453
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
3052
3454
|
/**
|
|
3053
3455
|
* Don't transition to this node
|
|
3054
3456
|
*/
|
|
@@ -3059,6 +3461,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3059
3461
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
3060
3462
|
}
|
|
3061
3463
|
namespace GlobalNodeSetting {
|
|
3464
|
+
interface GoBackCondition {
|
|
3465
|
+
/**
|
|
3466
|
+
* Unique identifier for the edge
|
|
3467
|
+
*/
|
|
3468
|
+
id: string;
|
|
3469
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
3470
|
+
/**
|
|
3471
|
+
* ID of the destination node
|
|
3472
|
+
*/
|
|
3473
|
+
destination_node_id?: string;
|
|
3474
|
+
}
|
|
3475
|
+
namespace GoBackCondition {
|
|
3476
|
+
interface PromptCondition {
|
|
3477
|
+
/**
|
|
3478
|
+
* Prompt condition text
|
|
3479
|
+
*/
|
|
3480
|
+
prompt: string;
|
|
3481
|
+
type: 'prompt';
|
|
3482
|
+
}
|
|
3483
|
+
interface EquationCondition {
|
|
3484
|
+
equations: Array<EquationCondition.Equation>;
|
|
3485
|
+
operator: '||' | '&&';
|
|
3486
|
+
type: 'equation';
|
|
3487
|
+
}
|
|
3488
|
+
namespace EquationCondition {
|
|
3489
|
+
interface Equation {
|
|
3490
|
+
/**
|
|
3491
|
+
* Left side of the equation
|
|
3492
|
+
*/
|
|
3493
|
+
left: string;
|
|
3494
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
3495
|
+
/**
|
|
3496
|
+
* Right side of the equation. The right side of the equation not required when
|
|
3497
|
+
* "exists" or "not_exist" are selected.
|
|
3498
|
+
*/
|
|
3499
|
+
right?: string;
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
}
|
|
3062
3503
|
interface NegativeFinetuneExample {
|
|
3063
3504
|
/**
|
|
3064
3505
|
* Find tune the transition condition to this global node
|
|
@@ -3312,6 +3753,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3312
3753
|
* Condition for global node activation, cannot be empty
|
|
3313
3754
|
*/
|
|
3314
3755
|
condition: string;
|
|
3756
|
+
/**
|
|
3757
|
+
* The same global node won't be triggered again within the next N node
|
|
3758
|
+
* transitions.
|
|
3759
|
+
*/
|
|
3760
|
+
cool_down?: number;
|
|
3761
|
+
/**
|
|
3762
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
3763
|
+
* for these edges.
|
|
3764
|
+
*/
|
|
3765
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
3315
3766
|
/**
|
|
3316
3767
|
* Don't transition to this node
|
|
3317
3768
|
*/
|
|
@@ -3322,6 +3773,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3322
3773
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
3323
3774
|
}
|
|
3324
3775
|
namespace GlobalNodeSetting {
|
|
3776
|
+
interface GoBackCondition {
|
|
3777
|
+
/**
|
|
3778
|
+
* Unique identifier for the edge
|
|
3779
|
+
*/
|
|
3780
|
+
id: string;
|
|
3781
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
3782
|
+
/**
|
|
3783
|
+
* ID of the destination node
|
|
3784
|
+
*/
|
|
3785
|
+
destination_node_id?: string;
|
|
3786
|
+
}
|
|
3787
|
+
namespace GoBackCondition {
|
|
3788
|
+
interface PromptCondition {
|
|
3789
|
+
/**
|
|
3790
|
+
* Prompt condition text
|
|
3791
|
+
*/
|
|
3792
|
+
prompt: string;
|
|
3793
|
+
type: 'prompt';
|
|
3794
|
+
}
|
|
3795
|
+
interface EquationCondition {
|
|
3796
|
+
equations: Array<EquationCondition.Equation>;
|
|
3797
|
+
operator: '||' | '&&';
|
|
3798
|
+
type: 'equation';
|
|
3799
|
+
}
|
|
3800
|
+
namespace EquationCondition {
|
|
3801
|
+
interface Equation {
|
|
3802
|
+
/**
|
|
3803
|
+
* Left side of the equation
|
|
3804
|
+
*/
|
|
3805
|
+
left: string;
|
|
3806
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
3807
|
+
/**
|
|
3808
|
+
* Right side of the equation. The right side of the equation not required when
|
|
3809
|
+
* "exists" or "not_exist" are selected.
|
|
3810
|
+
*/
|
|
3811
|
+
right?: string;
|
|
3812
|
+
}
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3325
3815
|
interface NegativeFinetuneExample {
|
|
3326
3816
|
/**
|
|
3327
3817
|
* Find tune the transition condition to this global node
|
|
@@ -3533,6 +4023,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3533
4023
|
* Condition for global node activation, cannot be empty
|
|
3534
4024
|
*/
|
|
3535
4025
|
condition: string;
|
|
4026
|
+
/**
|
|
4027
|
+
* The same global node won't be triggered again within the next N node
|
|
4028
|
+
* transitions.
|
|
4029
|
+
*/
|
|
4030
|
+
cool_down?: number;
|
|
4031
|
+
/**
|
|
4032
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
4033
|
+
* for these edges.
|
|
4034
|
+
*/
|
|
4035
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
3536
4036
|
/**
|
|
3537
4037
|
* Don't transition to this node
|
|
3538
4038
|
*/
|
|
@@ -3543,6 +4043,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3543
4043
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
3544
4044
|
}
|
|
3545
4045
|
namespace GlobalNodeSetting {
|
|
4046
|
+
interface GoBackCondition {
|
|
4047
|
+
/**
|
|
4048
|
+
* Unique identifier for the edge
|
|
4049
|
+
*/
|
|
4050
|
+
id: string;
|
|
4051
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
4052
|
+
/**
|
|
4053
|
+
* ID of the destination node
|
|
4054
|
+
*/
|
|
4055
|
+
destination_node_id?: string;
|
|
4056
|
+
}
|
|
4057
|
+
namespace GoBackCondition {
|
|
4058
|
+
interface PromptCondition {
|
|
4059
|
+
/**
|
|
4060
|
+
* Prompt condition text
|
|
4061
|
+
*/
|
|
4062
|
+
prompt: string;
|
|
4063
|
+
type: 'prompt';
|
|
4064
|
+
}
|
|
4065
|
+
interface EquationCondition {
|
|
4066
|
+
equations: Array<EquationCondition.Equation>;
|
|
4067
|
+
operator: '||' | '&&';
|
|
4068
|
+
type: 'equation';
|
|
4069
|
+
}
|
|
4070
|
+
namespace EquationCondition {
|
|
4071
|
+
interface Equation {
|
|
4072
|
+
/**
|
|
4073
|
+
* Left side of the equation
|
|
4074
|
+
*/
|
|
4075
|
+
left: string;
|
|
4076
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
4077
|
+
/**
|
|
4078
|
+
* Right side of the equation. The right side of the equation not required when
|
|
4079
|
+
* "exists" or "not_exist" are selected.
|
|
4080
|
+
*/
|
|
4081
|
+
right?: string;
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
3546
4085
|
interface NegativeFinetuneExample {
|
|
3547
4086
|
/**
|
|
3548
4087
|
* Find tune the transition condition to this global node
|
|
@@ -3623,6 +4162,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3623
4162
|
* Condition for global node activation, cannot be empty
|
|
3624
4163
|
*/
|
|
3625
4164
|
condition: string;
|
|
4165
|
+
/**
|
|
4166
|
+
* The same global node won't be triggered again within the next N node
|
|
4167
|
+
* transitions.
|
|
4168
|
+
*/
|
|
4169
|
+
cool_down?: number;
|
|
4170
|
+
/**
|
|
4171
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
4172
|
+
* for these edges.
|
|
4173
|
+
*/
|
|
4174
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
3626
4175
|
/**
|
|
3627
4176
|
* Don't transition to this node
|
|
3628
4177
|
*/
|
|
@@ -3633,6 +4182,45 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3633
4182
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
3634
4183
|
}
|
|
3635
4184
|
namespace GlobalNodeSetting {
|
|
4185
|
+
interface GoBackCondition {
|
|
4186
|
+
/**
|
|
4187
|
+
* Unique identifier for the edge
|
|
4188
|
+
*/
|
|
4189
|
+
id: string;
|
|
4190
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
4191
|
+
/**
|
|
4192
|
+
* ID of the destination node
|
|
4193
|
+
*/
|
|
4194
|
+
destination_node_id?: string;
|
|
4195
|
+
}
|
|
4196
|
+
namespace GoBackCondition {
|
|
4197
|
+
interface PromptCondition {
|
|
4198
|
+
/**
|
|
4199
|
+
* Prompt condition text
|
|
4200
|
+
*/
|
|
4201
|
+
prompt: string;
|
|
4202
|
+
type: 'prompt';
|
|
4203
|
+
}
|
|
4204
|
+
interface EquationCondition {
|
|
4205
|
+
equations: Array<EquationCondition.Equation>;
|
|
4206
|
+
operator: '||' | '&&';
|
|
4207
|
+
type: 'equation';
|
|
4208
|
+
}
|
|
4209
|
+
namespace EquationCondition {
|
|
4210
|
+
interface Equation {
|
|
4211
|
+
/**
|
|
4212
|
+
* Left side of the equation
|
|
4213
|
+
*/
|
|
4214
|
+
left: string;
|
|
4215
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
4216
|
+
/**
|
|
4217
|
+
* Right side of the equation. The right side of the equation not required when
|
|
4218
|
+
* "exists" or "not_exist" are selected.
|
|
4219
|
+
*/
|
|
4220
|
+
right?: string;
|
|
4221
|
+
}
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
3636
4224
|
interface NegativeFinetuneExample {
|
|
3637
4225
|
/**
|
|
3638
4226
|
* Find tune the transition condition to this global node
|
|
@@ -3713,6 +4301,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3713
4301
|
* Condition for global node activation, cannot be empty
|
|
3714
4302
|
*/
|
|
3715
4303
|
condition: string;
|
|
4304
|
+
/**
|
|
4305
|
+
* The same global node won't be triggered again within the next N node
|
|
4306
|
+
* transitions.
|
|
4307
|
+
*/
|
|
4308
|
+
cool_down?: number;
|
|
4309
|
+
/**
|
|
4310
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
4311
|
+
* for these edges.
|
|
4312
|
+
*/
|
|
4313
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
3716
4314
|
/**
|
|
3717
4315
|
* Don't transition to this node
|
|
3718
4316
|
*/
|
|
@@ -3723,18 +4321,57 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
3723
4321
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
3724
4322
|
}
|
|
3725
4323
|
namespace GlobalNodeSetting {
|
|
3726
|
-
interface
|
|
4324
|
+
interface GoBackCondition {
|
|
3727
4325
|
/**
|
|
3728
|
-
*
|
|
4326
|
+
* Unique identifier for the edge
|
|
3729
4327
|
*/
|
|
3730
|
-
|
|
4328
|
+
id: string;
|
|
4329
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
4330
|
+
/**
|
|
4331
|
+
* ID of the destination node
|
|
4332
|
+
*/
|
|
4333
|
+
destination_node_id?: string;
|
|
3731
4334
|
}
|
|
3732
|
-
namespace
|
|
3733
|
-
interface
|
|
3734
|
-
|
|
3735
|
-
|
|
4335
|
+
namespace GoBackCondition {
|
|
4336
|
+
interface PromptCondition {
|
|
4337
|
+
/**
|
|
4338
|
+
* Prompt condition text
|
|
4339
|
+
*/
|
|
4340
|
+
prompt: string;
|
|
4341
|
+
type: 'prompt';
|
|
3736
4342
|
}
|
|
3737
|
-
interface
|
|
4343
|
+
interface EquationCondition {
|
|
4344
|
+
equations: Array<EquationCondition.Equation>;
|
|
4345
|
+
operator: '||' | '&&';
|
|
4346
|
+
type: 'equation';
|
|
4347
|
+
}
|
|
4348
|
+
namespace EquationCondition {
|
|
4349
|
+
interface Equation {
|
|
4350
|
+
/**
|
|
4351
|
+
* Left side of the equation
|
|
4352
|
+
*/
|
|
4353
|
+
left: string;
|
|
4354
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
4355
|
+
/**
|
|
4356
|
+
* Right side of the equation. The right side of the equation not required when
|
|
4357
|
+
* "exists" or "not_exist" are selected.
|
|
4358
|
+
*/
|
|
4359
|
+
right?: string;
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
interface NegativeFinetuneExample {
|
|
4364
|
+
/**
|
|
4365
|
+
* Find tune the transition condition to this global node
|
|
4366
|
+
*/
|
|
4367
|
+
transcript: Array<NegativeFinetuneExample.UnionMember0 | NegativeFinetuneExample.UnionMember1 | NegativeFinetuneExample.UnionMember2>;
|
|
4368
|
+
}
|
|
4369
|
+
namespace NegativeFinetuneExample {
|
|
4370
|
+
interface UnionMember0 {
|
|
4371
|
+
content: string;
|
|
4372
|
+
role: 'agent' | 'user';
|
|
4373
|
+
}
|
|
4374
|
+
interface UnionMember1 {
|
|
3738
4375
|
arguments: string;
|
|
3739
4376
|
name: string;
|
|
3740
4377
|
role: 'tool_call_invocation';
|
|
@@ -4250,6 +4887,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
4250
4887
|
* Condition for global node activation, cannot be empty
|
|
4251
4888
|
*/
|
|
4252
4889
|
condition: string;
|
|
4890
|
+
/**
|
|
4891
|
+
* The same global node won't be triggered again within the next N node
|
|
4892
|
+
* transitions.
|
|
4893
|
+
*/
|
|
4894
|
+
cool_down?: number;
|
|
4895
|
+
/**
|
|
4896
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
4897
|
+
* for these edges.
|
|
4898
|
+
*/
|
|
4899
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
4253
4900
|
/**
|
|
4254
4901
|
* Don't transition to this node
|
|
4255
4902
|
*/
|
|
@@ -4260,6 +4907,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
4260
4907
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
4261
4908
|
}
|
|
4262
4909
|
namespace GlobalNodeSetting {
|
|
4910
|
+
interface GoBackCondition {
|
|
4911
|
+
/**
|
|
4912
|
+
* Unique identifier for the edge
|
|
4913
|
+
*/
|
|
4914
|
+
id: string;
|
|
4915
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
4916
|
+
/**
|
|
4917
|
+
* ID of the destination node
|
|
4918
|
+
*/
|
|
4919
|
+
destination_node_id?: string;
|
|
4920
|
+
}
|
|
4921
|
+
namespace GoBackCondition {
|
|
4922
|
+
interface PromptCondition {
|
|
4923
|
+
/**
|
|
4924
|
+
* Prompt condition text
|
|
4925
|
+
*/
|
|
4926
|
+
prompt: string;
|
|
4927
|
+
type: 'prompt';
|
|
4928
|
+
}
|
|
4929
|
+
interface EquationCondition {
|
|
4930
|
+
equations: Array<EquationCondition.Equation>;
|
|
4931
|
+
operator: '||' | '&&';
|
|
4932
|
+
type: 'equation';
|
|
4933
|
+
}
|
|
4934
|
+
namespace EquationCondition {
|
|
4935
|
+
interface Equation {
|
|
4936
|
+
/**
|
|
4937
|
+
* Left side of the equation
|
|
4938
|
+
*/
|
|
4939
|
+
left: string;
|
|
4940
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
4941
|
+
/**
|
|
4942
|
+
* Right side of the equation. The right side of the equation not required when
|
|
4943
|
+
* "exists" or "not_exist" are selected.
|
|
4944
|
+
*/
|
|
4945
|
+
right?: string;
|
|
4946
|
+
}
|
|
4947
|
+
}
|
|
4948
|
+
}
|
|
4263
4949
|
interface NegativeFinetuneExample {
|
|
4264
4950
|
/**
|
|
4265
4951
|
* Find tune the transition condition to this global node
|
|
@@ -5169,6 +5855,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
5169
5855
|
* Condition for global node activation, cannot be empty
|
|
5170
5856
|
*/
|
|
5171
5857
|
condition: string;
|
|
5858
|
+
/**
|
|
5859
|
+
* The same global node won't be triggered again within the next N node
|
|
5860
|
+
* transitions.
|
|
5861
|
+
*/
|
|
5862
|
+
cool_down?: number;
|
|
5863
|
+
/**
|
|
5864
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
5865
|
+
* for these edges.
|
|
5866
|
+
*/
|
|
5867
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
5172
5868
|
/**
|
|
5173
5869
|
* Don't transition to this node
|
|
5174
5870
|
*/
|
|
@@ -5179,6 +5875,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
5179
5875
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
5180
5876
|
}
|
|
5181
5877
|
namespace GlobalNodeSetting {
|
|
5878
|
+
interface GoBackCondition {
|
|
5879
|
+
/**
|
|
5880
|
+
* Unique identifier for the edge
|
|
5881
|
+
*/
|
|
5882
|
+
id: string;
|
|
5883
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
5884
|
+
/**
|
|
5885
|
+
* ID of the destination node
|
|
5886
|
+
*/
|
|
5887
|
+
destination_node_id?: string;
|
|
5888
|
+
}
|
|
5889
|
+
namespace GoBackCondition {
|
|
5890
|
+
interface PromptCondition {
|
|
5891
|
+
/**
|
|
5892
|
+
* Prompt condition text
|
|
5893
|
+
*/
|
|
5894
|
+
prompt: string;
|
|
5895
|
+
type: 'prompt';
|
|
5896
|
+
}
|
|
5897
|
+
interface EquationCondition {
|
|
5898
|
+
equations: Array<EquationCondition.Equation>;
|
|
5899
|
+
operator: '||' | '&&';
|
|
5900
|
+
type: 'equation';
|
|
5901
|
+
}
|
|
5902
|
+
namespace EquationCondition {
|
|
5903
|
+
interface Equation {
|
|
5904
|
+
/**
|
|
5905
|
+
* Left side of the equation
|
|
5906
|
+
*/
|
|
5907
|
+
left: string;
|
|
5908
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
5909
|
+
/**
|
|
5910
|
+
* Right side of the equation. The right side of the equation not required when
|
|
5911
|
+
* "exists" or "not_exist" are selected.
|
|
5912
|
+
*/
|
|
5913
|
+
right?: string;
|
|
5914
|
+
}
|
|
5915
|
+
}
|
|
5916
|
+
}
|
|
5182
5917
|
interface NegativeFinetuneExample {
|
|
5183
5918
|
/**
|
|
5184
5919
|
* Find tune the transition condition to this global node
|
|
@@ -5423,6 +6158,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
5423
6158
|
* Condition for global node activation, cannot be empty
|
|
5424
6159
|
*/
|
|
5425
6160
|
condition: string;
|
|
6161
|
+
/**
|
|
6162
|
+
* The same global node won't be triggered again within the next N node
|
|
6163
|
+
* transitions.
|
|
6164
|
+
*/
|
|
6165
|
+
cool_down?: number;
|
|
6166
|
+
/**
|
|
6167
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
6168
|
+
* for these edges.
|
|
6169
|
+
*/
|
|
6170
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
5426
6171
|
/**
|
|
5427
6172
|
* Don't transition to this node
|
|
5428
6173
|
*/
|
|
@@ -5433,6 +6178,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
5433
6178
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
5434
6179
|
}
|
|
5435
6180
|
namespace GlobalNodeSetting {
|
|
6181
|
+
interface GoBackCondition {
|
|
6182
|
+
/**
|
|
6183
|
+
* Unique identifier for the edge
|
|
6184
|
+
*/
|
|
6185
|
+
id: string;
|
|
6186
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
6187
|
+
/**
|
|
6188
|
+
* ID of the destination node
|
|
6189
|
+
*/
|
|
6190
|
+
destination_node_id?: string;
|
|
6191
|
+
}
|
|
6192
|
+
namespace GoBackCondition {
|
|
6193
|
+
interface PromptCondition {
|
|
6194
|
+
/**
|
|
6195
|
+
* Prompt condition text
|
|
6196
|
+
*/
|
|
6197
|
+
prompt: string;
|
|
6198
|
+
type: 'prompt';
|
|
6199
|
+
}
|
|
6200
|
+
interface EquationCondition {
|
|
6201
|
+
equations: Array<EquationCondition.Equation>;
|
|
6202
|
+
operator: '||' | '&&';
|
|
6203
|
+
type: 'equation';
|
|
6204
|
+
}
|
|
6205
|
+
namespace EquationCondition {
|
|
6206
|
+
interface Equation {
|
|
6207
|
+
/**
|
|
6208
|
+
* Left side of the equation
|
|
6209
|
+
*/
|
|
6210
|
+
left: string;
|
|
6211
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
6212
|
+
/**
|
|
6213
|
+
* Right side of the equation. The right side of the equation not required when
|
|
6214
|
+
* "exists" or "not_exist" are selected.
|
|
6215
|
+
*/
|
|
6216
|
+
right?: string;
|
|
6217
|
+
}
|
|
6218
|
+
}
|
|
6219
|
+
}
|
|
5436
6220
|
interface NegativeFinetuneExample {
|
|
5437
6221
|
/**
|
|
5438
6222
|
* Find tune the transition condition to this global node
|
|
@@ -5845,6 +6629,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
5845
6629
|
* Condition for global node activation, cannot be empty
|
|
5846
6630
|
*/
|
|
5847
6631
|
condition: string;
|
|
6632
|
+
/**
|
|
6633
|
+
* The same global node won't be triggered again within the next N node
|
|
6634
|
+
* transitions.
|
|
6635
|
+
*/
|
|
6636
|
+
cool_down?: number;
|
|
6637
|
+
/**
|
|
6638
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
6639
|
+
* for these edges.
|
|
6640
|
+
*/
|
|
6641
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
5848
6642
|
/**
|
|
5849
6643
|
* Don't transition to this node
|
|
5850
6644
|
*/
|
|
@@ -5855,6 +6649,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
5855
6649
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
5856
6650
|
}
|
|
5857
6651
|
namespace GlobalNodeSetting {
|
|
6652
|
+
interface GoBackCondition {
|
|
6653
|
+
/**
|
|
6654
|
+
* Unique identifier for the edge
|
|
6655
|
+
*/
|
|
6656
|
+
id: string;
|
|
6657
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
6658
|
+
/**
|
|
6659
|
+
* ID of the destination node
|
|
6660
|
+
*/
|
|
6661
|
+
destination_node_id?: string;
|
|
6662
|
+
}
|
|
6663
|
+
namespace GoBackCondition {
|
|
6664
|
+
interface PromptCondition {
|
|
6665
|
+
/**
|
|
6666
|
+
* Prompt condition text
|
|
6667
|
+
*/
|
|
6668
|
+
prompt: string;
|
|
6669
|
+
type: 'prompt';
|
|
6670
|
+
}
|
|
6671
|
+
interface EquationCondition {
|
|
6672
|
+
equations: Array<EquationCondition.Equation>;
|
|
6673
|
+
operator: '||' | '&&';
|
|
6674
|
+
type: 'equation';
|
|
6675
|
+
}
|
|
6676
|
+
namespace EquationCondition {
|
|
6677
|
+
interface Equation {
|
|
6678
|
+
/**
|
|
6679
|
+
* Left side of the equation
|
|
6680
|
+
*/
|
|
6681
|
+
left: string;
|
|
6682
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
6683
|
+
/**
|
|
6684
|
+
* Right side of the equation. The right side of the equation not required when
|
|
6685
|
+
* "exists" or "not_exist" are selected.
|
|
6686
|
+
*/
|
|
6687
|
+
right?: string;
|
|
6688
|
+
}
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
5858
6691
|
interface NegativeFinetuneExample {
|
|
5859
6692
|
/**
|
|
5860
6693
|
* Find tune the transition condition to this global node
|
|
@@ -6057,6 +6890,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6057
6890
|
* Condition for global node activation, cannot be empty
|
|
6058
6891
|
*/
|
|
6059
6892
|
condition: string;
|
|
6893
|
+
/**
|
|
6894
|
+
* The same global node won't be triggered again within the next N node
|
|
6895
|
+
* transitions.
|
|
6896
|
+
*/
|
|
6897
|
+
cool_down?: number;
|
|
6898
|
+
/**
|
|
6899
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
6900
|
+
* for these edges.
|
|
6901
|
+
*/
|
|
6902
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
6060
6903
|
/**
|
|
6061
6904
|
* Don't transition to this node
|
|
6062
6905
|
*/
|
|
@@ -6067,6 +6910,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6067
6910
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
6068
6911
|
}
|
|
6069
6912
|
namespace GlobalNodeSetting {
|
|
6913
|
+
interface GoBackCondition {
|
|
6914
|
+
/**
|
|
6915
|
+
* Unique identifier for the edge
|
|
6916
|
+
*/
|
|
6917
|
+
id: string;
|
|
6918
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
6919
|
+
/**
|
|
6920
|
+
* ID of the destination node
|
|
6921
|
+
*/
|
|
6922
|
+
destination_node_id?: string;
|
|
6923
|
+
}
|
|
6924
|
+
namespace GoBackCondition {
|
|
6925
|
+
interface PromptCondition {
|
|
6926
|
+
/**
|
|
6927
|
+
* Prompt condition text
|
|
6928
|
+
*/
|
|
6929
|
+
prompt: string;
|
|
6930
|
+
type: 'prompt';
|
|
6931
|
+
}
|
|
6932
|
+
interface EquationCondition {
|
|
6933
|
+
equations: Array<EquationCondition.Equation>;
|
|
6934
|
+
operator: '||' | '&&';
|
|
6935
|
+
type: 'equation';
|
|
6936
|
+
}
|
|
6937
|
+
namespace EquationCondition {
|
|
6938
|
+
interface Equation {
|
|
6939
|
+
/**
|
|
6940
|
+
* Left side of the equation
|
|
6941
|
+
*/
|
|
6942
|
+
left: string;
|
|
6943
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
6944
|
+
/**
|
|
6945
|
+
* Right side of the equation. The right side of the equation not required when
|
|
6946
|
+
* "exists" or "not_exist" are selected.
|
|
6947
|
+
*/
|
|
6948
|
+
right?: string;
|
|
6949
|
+
}
|
|
6950
|
+
}
|
|
6951
|
+
}
|
|
6070
6952
|
interface NegativeFinetuneExample {
|
|
6071
6953
|
/**
|
|
6072
6954
|
* Find tune the transition condition to this global node
|
|
@@ -6284,6 +7166,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6284
7166
|
* Condition for global node activation, cannot be empty
|
|
6285
7167
|
*/
|
|
6286
7168
|
condition: string;
|
|
7169
|
+
/**
|
|
7170
|
+
* The same global node won't be triggered again within the next N node
|
|
7171
|
+
* transitions.
|
|
7172
|
+
*/
|
|
7173
|
+
cool_down?: number;
|
|
7174
|
+
/**
|
|
7175
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
7176
|
+
* for these edges.
|
|
7177
|
+
*/
|
|
7178
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
6287
7179
|
/**
|
|
6288
7180
|
* Don't transition to this node
|
|
6289
7181
|
*/
|
|
@@ -6294,6 +7186,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6294
7186
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
6295
7187
|
}
|
|
6296
7188
|
namespace GlobalNodeSetting {
|
|
7189
|
+
interface GoBackCondition {
|
|
7190
|
+
/**
|
|
7191
|
+
* Unique identifier for the edge
|
|
7192
|
+
*/
|
|
7193
|
+
id: string;
|
|
7194
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
7195
|
+
/**
|
|
7196
|
+
* ID of the destination node
|
|
7197
|
+
*/
|
|
7198
|
+
destination_node_id?: string;
|
|
7199
|
+
}
|
|
7200
|
+
namespace GoBackCondition {
|
|
7201
|
+
interface PromptCondition {
|
|
7202
|
+
/**
|
|
7203
|
+
* Prompt condition text
|
|
7204
|
+
*/
|
|
7205
|
+
prompt: string;
|
|
7206
|
+
type: 'prompt';
|
|
7207
|
+
}
|
|
7208
|
+
interface EquationCondition {
|
|
7209
|
+
equations: Array<EquationCondition.Equation>;
|
|
7210
|
+
operator: '||' | '&&';
|
|
7211
|
+
type: 'equation';
|
|
7212
|
+
}
|
|
7213
|
+
namespace EquationCondition {
|
|
7214
|
+
interface Equation {
|
|
7215
|
+
/**
|
|
7216
|
+
* Left side of the equation
|
|
7217
|
+
*/
|
|
7218
|
+
left: string;
|
|
7219
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
7220
|
+
/**
|
|
7221
|
+
* Right side of the equation. The right side of the equation not required when
|
|
7222
|
+
* "exists" or "not_exist" are selected.
|
|
7223
|
+
*/
|
|
7224
|
+
right?: string;
|
|
7225
|
+
}
|
|
7226
|
+
}
|
|
7227
|
+
}
|
|
6297
7228
|
interface NegativeFinetuneExample {
|
|
6298
7229
|
/**
|
|
6299
7230
|
* Find tune the transition condition to this global node
|
|
@@ -6497,6 +7428,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6497
7428
|
* Condition for global node activation, cannot be empty
|
|
6498
7429
|
*/
|
|
6499
7430
|
condition: string;
|
|
7431
|
+
/**
|
|
7432
|
+
* The same global node won't be triggered again within the next N node
|
|
7433
|
+
* transitions.
|
|
7434
|
+
*/
|
|
7435
|
+
cool_down?: number;
|
|
7436
|
+
/**
|
|
7437
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
7438
|
+
* for these edges.
|
|
7439
|
+
*/
|
|
7440
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
6500
7441
|
/**
|
|
6501
7442
|
* Don't transition to this node
|
|
6502
7443
|
*/
|
|
@@ -6507,6 +7448,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6507
7448
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
6508
7449
|
}
|
|
6509
7450
|
namespace GlobalNodeSetting {
|
|
7451
|
+
interface GoBackCondition {
|
|
7452
|
+
/**
|
|
7453
|
+
* Unique identifier for the edge
|
|
7454
|
+
*/
|
|
7455
|
+
id: string;
|
|
7456
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
7457
|
+
/**
|
|
7458
|
+
* ID of the destination node
|
|
7459
|
+
*/
|
|
7460
|
+
destination_node_id?: string;
|
|
7461
|
+
}
|
|
7462
|
+
namespace GoBackCondition {
|
|
7463
|
+
interface PromptCondition {
|
|
7464
|
+
/**
|
|
7465
|
+
* Prompt condition text
|
|
7466
|
+
*/
|
|
7467
|
+
prompt: string;
|
|
7468
|
+
type: 'prompt';
|
|
7469
|
+
}
|
|
7470
|
+
interface EquationCondition {
|
|
7471
|
+
equations: Array<EquationCondition.Equation>;
|
|
7472
|
+
operator: '||' | '&&';
|
|
7473
|
+
type: 'equation';
|
|
7474
|
+
}
|
|
7475
|
+
namespace EquationCondition {
|
|
7476
|
+
interface Equation {
|
|
7477
|
+
/**
|
|
7478
|
+
* Left side of the equation
|
|
7479
|
+
*/
|
|
7480
|
+
left: string;
|
|
7481
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
7482
|
+
/**
|
|
7483
|
+
* Right side of the equation. The right side of the equation not required when
|
|
7484
|
+
* "exists" or "not_exist" are selected.
|
|
7485
|
+
*/
|
|
7486
|
+
right?: string;
|
|
7487
|
+
}
|
|
7488
|
+
}
|
|
7489
|
+
}
|
|
6510
7490
|
interface NegativeFinetuneExample {
|
|
6511
7491
|
/**
|
|
6512
7492
|
* Find tune the transition condition to this global node
|
|
@@ -6776,6 +7756,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6776
7756
|
* Condition for global node activation, cannot be empty
|
|
6777
7757
|
*/
|
|
6778
7758
|
condition: string;
|
|
7759
|
+
/**
|
|
7760
|
+
* The same global node won't be triggered again within the next N node
|
|
7761
|
+
* transitions.
|
|
7762
|
+
*/
|
|
7763
|
+
cool_down?: number;
|
|
7764
|
+
/**
|
|
7765
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
7766
|
+
* for these edges.
|
|
7767
|
+
*/
|
|
7768
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
6779
7769
|
/**
|
|
6780
7770
|
* Don't transition to this node
|
|
6781
7771
|
*/
|
|
@@ -6786,6 +7776,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6786
7776
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
6787
7777
|
}
|
|
6788
7778
|
namespace GlobalNodeSetting {
|
|
7779
|
+
interface GoBackCondition {
|
|
7780
|
+
/**
|
|
7781
|
+
* Unique identifier for the edge
|
|
7782
|
+
*/
|
|
7783
|
+
id: string;
|
|
7784
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
7785
|
+
/**
|
|
7786
|
+
* ID of the destination node
|
|
7787
|
+
*/
|
|
7788
|
+
destination_node_id?: string;
|
|
7789
|
+
}
|
|
7790
|
+
namespace GoBackCondition {
|
|
7791
|
+
interface PromptCondition {
|
|
7792
|
+
/**
|
|
7793
|
+
* Prompt condition text
|
|
7794
|
+
*/
|
|
7795
|
+
prompt: string;
|
|
7796
|
+
type: 'prompt';
|
|
7797
|
+
}
|
|
7798
|
+
interface EquationCondition {
|
|
7799
|
+
equations: Array<EquationCondition.Equation>;
|
|
7800
|
+
operator: '||' | '&&';
|
|
7801
|
+
type: 'equation';
|
|
7802
|
+
}
|
|
7803
|
+
namespace EquationCondition {
|
|
7804
|
+
interface Equation {
|
|
7805
|
+
/**
|
|
7806
|
+
* Left side of the equation
|
|
7807
|
+
*/
|
|
7808
|
+
left: string;
|
|
7809
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
7810
|
+
/**
|
|
7811
|
+
* Right side of the equation. The right side of the equation not required when
|
|
7812
|
+
* "exists" or "not_exist" are selected.
|
|
7813
|
+
*/
|
|
7814
|
+
right?: string;
|
|
7815
|
+
}
|
|
7816
|
+
}
|
|
7817
|
+
}
|
|
6789
7818
|
interface NegativeFinetuneExample {
|
|
6790
7819
|
/**
|
|
6791
7820
|
* Find tune the transition condition to this global node
|
|
@@ -6966,6 +7995,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6966
7995
|
* Condition for global node activation, cannot be empty
|
|
6967
7996
|
*/
|
|
6968
7997
|
condition: string;
|
|
7998
|
+
/**
|
|
7999
|
+
* The same global node won't be triggered again within the next N node
|
|
8000
|
+
* transitions.
|
|
8001
|
+
*/
|
|
8002
|
+
cool_down?: number;
|
|
8003
|
+
/**
|
|
8004
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
8005
|
+
* for these edges.
|
|
8006
|
+
*/
|
|
8007
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
6969
8008
|
/**
|
|
6970
8009
|
* Don't transition to this node
|
|
6971
8010
|
*/
|
|
@@ -6976,6 +8015,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
6976
8015
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
6977
8016
|
}
|
|
6978
8017
|
namespace GlobalNodeSetting {
|
|
8018
|
+
interface GoBackCondition {
|
|
8019
|
+
/**
|
|
8020
|
+
* Unique identifier for the edge
|
|
8021
|
+
*/
|
|
8022
|
+
id: string;
|
|
8023
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
8024
|
+
/**
|
|
8025
|
+
* ID of the destination node
|
|
8026
|
+
*/
|
|
8027
|
+
destination_node_id?: string;
|
|
8028
|
+
}
|
|
8029
|
+
namespace GoBackCondition {
|
|
8030
|
+
interface PromptCondition {
|
|
8031
|
+
/**
|
|
8032
|
+
* Prompt condition text
|
|
8033
|
+
*/
|
|
8034
|
+
prompt: string;
|
|
8035
|
+
type: 'prompt';
|
|
8036
|
+
}
|
|
8037
|
+
interface EquationCondition {
|
|
8038
|
+
equations: Array<EquationCondition.Equation>;
|
|
8039
|
+
operator: '||' | '&&';
|
|
8040
|
+
type: 'equation';
|
|
8041
|
+
}
|
|
8042
|
+
namespace EquationCondition {
|
|
8043
|
+
interface Equation {
|
|
8044
|
+
/**
|
|
8045
|
+
* Left side of the equation
|
|
8046
|
+
*/
|
|
8047
|
+
left: string;
|
|
8048
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
8049
|
+
/**
|
|
8050
|
+
* Right side of the equation. The right side of the equation not required when
|
|
8051
|
+
* "exists" or "not_exist" are selected.
|
|
8052
|
+
*/
|
|
8053
|
+
right?: string;
|
|
8054
|
+
}
|
|
8055
|
+
}
|
|
8056
|
+
}
|
|
6979
8057
|
interface NegativeFinetuneExample {
|
|
6980
8058
|
/**
|
|
6981
8059
|
* Find tune the transition condition to this global node
|
|
@@ -7229,6 +8307,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7229
8307
|
* Condition for global node activation, cannot be empty
|
|
7230
8308
|
*/
|
|
7231
8309
|
condition: string;
|
|
8310
|
+
/**
|
|
8311
|
+
* The same global node won't be triggered again within the next N node
|
|
8312
|
+
* transitions.
|
|
8313
|
+
*/
|
|
8314
|
+
cool_down?: number;
|
|
8315
|
+
/**
|
|
8316
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
8317
|
+
* for these edges.
|
|
8318
|
+
*/
|
|
8319
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
7232
8320
|
/**
|
|
7233
8321
|
* Don't transition to this node
|
|
7234
8322
|
*/
|
|
@@ -7239,6 +8327,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7239
8327
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
7240
8328
|
}
|
|
7241
8329
|
namespace GlobalNodeSetting {
|
|
8330
|
+
interface GoBackCondition {
|
|
8331
|
+
/**
|
|
8332
|
+
* Unique identifier for the edge
|
|
8333
|
+
*/
|
|
8334
|
+
id: string;
|
|
8335
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
8336
|
+
/**
|
|
8337
|
+
* ID of the destination node
|
|
8338
|
+
*/
|
|
8339
|
+
destination_node_id?: string;
|
|
8340
|
+
}
|
|
8341
|
+
namespace GoBackCondition {
|
|
8342
|
+
interface PromptCondition {
|
|
8343
|
+
/**
|
|
8344
|
+
* Prompt condition text
|
|
8345
|
+
*/
|
|
8346
|
+
prompt: string;
|
|
8347
|
+
type: 'prompt';
|
|
8348
|
+
}
|
|
8349
|
+
interface EquationCondition {
|
|
8350
|
+
equations: Array<EquationCondition.Equation>;
|
|
8351
|
+
operator: '||' | '&&';
|
|
8352
|
+
type: 'equation';
|
|
8353
|
+
}
|
|
8354
|
+
namespace EquationCondition {
|
|
8355
|
+
interface Equation {
|
|
8356
|
+
/**
|
|
8357
|
+
* Left side of the equation
|
|
8358
|
+
*/
|
|
8359
|
+
left: string;
|
|
8360
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
8361
|
+
/**
|
|
8362
|
+
* Right side of the equation. The right side of the equation not required when
|
|
8363
|
+
* "exists" or "not_exist" are selected.
|
|
8364
|
+
*/
|
|
8365
|
+
right?: string;
|
|
8366
|
+
}
|
|
8367
|
+
}
|
|
8368
|
+
}
|
|
7242
8369
|
interface NegativeFinetuneExample {
|
|
7243
8370
|
/**
|
|
7244
8371
|
* Find tune the transition condition to this global node
|
|
@@ -7450,6 +8577,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7450
8577
|
* Condition for global node activation, cannot be empty
|
|
7451
8578
|
*/
|
|
7452
8579
|
condition: string;
|
|
8580
|
+
/**
|
|
8581
|
+
* The same global node won't be triggered again within the next N node
|
|
8582
|
+
* transitions.
|
|
8583
|
+
*/
|
|
8584
|
+
cool_down?: number;
|
|
8585
|
+
/**
|
|
8586
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
8587
|
+
* for these edges.
|
|
8588
|
+
*/
|
|
8589
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
7453
8590
|
/**
|
|
7454
8591
|
* Don't transition to this node
|
|
7455
8592
|
*/
|
|
@@ -7460,6 +8597,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7460
8597
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
7461
8598
|
}
|
|
7462
8599
|
namespace GlobalNodeSetting {
|
|
8600
|
+
interface GoBackCondition {
|
|
8601
|
+
/**
|
|
8602
|
+
* Unique identifier for the edge
|
|
8603
|
+
*/
|
|
8604
|
+
id: string;
|
|
8605
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
8606
|
+
/**
|
|
8607
|
+
* ID of the destination node
|
|
8608
|
+
*/
|
|
8609
|
+
destination_node_id?: string;
|
|
8610
|
+
}
|
|
8611
|
+
namespace GoBackCondition {
|
|
8612
|
+
interface PromptCondition {
|
|
8613
|
+
/**
|
|
8614
|
+
* Prompt condition text
|
|
8615
|
+
*/
|
|
8616
|
+
prompt: string;
|
|
8617
|
+
type: 'prompt';
|
|
8618
|
+
}
|
|
8619
|
+
interface EquationCondition {
|
|
8620
|
+
equations: Array<EquationCondition.Equation>;
|
|
8621
|
+
operator: '||' | '&&';
|
|
8622
|
+
type: 'equation';
|
|
8623
|
+
}
|
|
8624
|
+
namespace EquationCondition {
|
|
8625
|
+
interface Equation {
|
|
8626
|
+
/**
|
|
8627
|
+
* Left side of the equation
|
|
8628
|
+
*/
|
|
8629
|
+
left: string;
|
|
8630
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
8631
|
+
/**
|
|
8632
|
+
* Right side of the equation. The right side of the equation not required when
|
|
8633
|
+
* "exists" or "not_exist" are selected.
|
|
8634
|
+
*/
|
|
8635
|
+
right?: string;
|
|
8636
|
+
}
|
|
8637
|
+
}
|
|
8638
|
+
}
|
|
7463
8639
|
interface NegativeFinetuneExample {
|
|
7464
8640
|
/**
|
|
7465
8641
|
* Find tune the transition condition to this global node
|
|
@@ -7540,6 +8716,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7540
8716
|
* Condition for global node activation, cannot be empty
|
|
7541
8717
|
*/
|
|
7542
8718
|
condition: string;
|
|
8719
|
+
/**
|
|
8720
|
+
* The same global node won't be triggered again within the next N node
|
|
8721
|
+
* transitions.
|
|
8722
|
+
*/
|
|
8723
|
+
cool_down?: number;
|
|
8724
|
+
/**
|
|
8725
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
8726
|
+
* for these edges.
|
|
8727
|
+
*/
|
|
8728
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
7543
8729
|
/**
|
|
7544
8730
|
* Don't transition to this node
|
|
7545
8731
|
*/
|
|
@@ -7550,18 +8736,57 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7550
8736
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
7551
8737
|
}
|
|
7552
8738
|
namespace GlobalNodeSetting {
|
|
7553
|
-
interface
|
|
8739
|
+
interface GoBackCondition {
|
|
7554
8740
|
/**
|
|
7555
|
-
*
|
|
8741
|
+
* Unique identifier for the edge
|
|
7556
8742
|
*/
|
|
7557
|
-
|
|
8743
|
+
id: string;
|
|
8744
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
8745
|
+
/**
|
|
8746
|
+
* ID of the destination node
|
|
8747
|
+
*/
|
|
8748
|
+
destination_node_id?: string;
|
|
7558
8749
|
}
|
|
7559
|
-
namespace
|
|
7560
|
-
interface
|
|
7561
|
-
|
|
7562
|
-
|
|
8750
|
+
namespace GoBackCondition {
|
|
8751
|
+
interface PromptCondition {
|
|
8752
|
+
/**
|
|
8753
|
+
* Prompt condition text
|
|
8754
|
+
*/
|
|
8755
|
+
prompt: string;
|
|
8756
|
+
type: 'prompt';
|
|
7563
8757
|
}
|
|
7564
|
-
interface
|
|
8758
|
+
interface EquationCondition {
|
|
8759
|
+
equations: Array<EquationCondition.Equation>;
|
|
8760
|
+
operator: '||' | '&&';
|
|
8761
|
+
type: 'equation';
|
|
8762
|
+
}
|
|
8763
|
+
namespace EquationCondition {
|
|
8764
|
+
interface Equation {
|
|
8765
|
+
/**
|
|
8766
|
+
* Left side of the equation
|
|
8767
|
+
*/
|
|
8768
|
+
left: string;
|
|
8769
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
8770
|
+
/**
|
|
8771
|
+
* Right side of the equation. The right side of the equation not required when
|
|
8772
|
+
* "exists" or "not_exist" are selected.
|
|
8773
|
+
*/
|
|
8774
|
+
right?: string;
|
|
8775
|
+
}
|
|
8776
|
+
}
|
|
8777
|
+
}
|
|
8778
|
+
interface NegativeFinetuneExample {
|
|
8779
|
+
/**
|
|
8780
|
+
* Find tune the transition condition to this global node
|
|
8781
|
+
*/
|
|
8782
|
+
transcript: Array<NegativeFinetuneExample.UnionMember0 | NegativeFinetuneExample.UnionMember1 | NegativeFinetuneExample.UnionMember2>;
|
|
8783
|
+
}
|
|
8784
|
+
namespace NegativeFinetuneExample {
|
|
8785
|
+
interface UnionMember0 {
|
|
8786
|
+
content: string;
|
|
8787
|
+
role: 'agent' | 'user';
|
|
8788
|
+
}
|
|
8789
|
+
interface UnionMember1 {
|
|
7565
8790
|
arguments: string;
|
|
7566
8791
|
name: string;
|
|
7567
8792
|
role: 'tool_call_invocation';
|
|
@@ -7630,6 +8855,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7630
8855
|
* Condition for global node activation, cannot be empty
|
|
7631
8856
|
*/
|
|
7632
8857
|
condition: string;
|
|
8858
|
+
/**
|
|
8859
|
+
* The same global node won't be triggered again within the next N node
|
|
8860
|
+
* transitions.
|
|
8861
|
+
*/
|
|
8862
|
+
cool_down?: number;
|
|
8863
|
+
/**
|
|
8864
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
8865
|
+
* for these edges.
|
|
8866
|
+
*/
|
|
8867
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
7633
8868
|
/**
|
|
7634
8869
|
* Don't transition to this node
|
|
7635
8870
|
*/
|
|
@@ -7640,6 +8875,45 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
7640
8875
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
7641
8876
|
}
|
|
7642
8877
|
namespace GlobalNodeSetting {
|
|
8878
|
+
interface GoBackCondition {
|
|
8879
|
+
/**
|
|
8880
|
+
* Unique identifier for the edge
|
|
8881
|
+
*/
|
|
8882
|
+
id: string;
|
|
8883
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
8884
|
+
/**
|
|
8885
|
+
* ID of the destination node
|
|
8886
|
+
*/
|
|
8887
|
+
destination_node_id?: string;
|
|
8888
|
+
}
|
|
8889
|
+
namespace GoBackCondition {
|
|
8890
|
+
interface PromptCondition {
|
|
8891
|
+
/**
|
|
8892
|
+
* Prompt condition text
|
|
8893
|
+
*/
|
|
8894
|
+
prompt: string;
|
|
8895
|
+
type: 'prompt';
|
|
8896
|
+
}
|
|
8897
|
+
interface EquationCondition {
|
|
8898
|
+
equations: Array<EquationCondition.Equation>;
|
|
8899
|
+
operator: '||' | '&&';
|
|
8900
|
+
type: 'equation';
|
|
8901
|
+
}
|
|
8902
|
+
namespace EquationCondition {
|
|
8903
|
+
interface Equation {
|
|
8904
|
+
/**
|
|
8905
|
+
* Left side of the equation
|
|
8906
|
+
*/
|
|
8907
|
+
left: string;
|
|
8908
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
8909
|
+
/**
|
|
8910
|
+
* Right side of the equation. The right side of the equation not required when
|
|
8911
|
+
* "exists" or "not_exist" are selected.
|
|
8912
|
+
*/
|
|
8913
|
+
right?: string;
|
|
8914
|
+
}
|
|
8915
|
+
}
|
|
8916
|
+
}
|
|
7643
8917
|
interface NegativeFinetuneExample {
|
|
7644
8918
|
/**
|
|
7645
8919
|
* Find tune the transition condition to this global node
|
|
@@ -8197,6 +9471,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
8197
9471
|
* Condition for global node activation, cannot be empty
|
|
8198
9472
|
*/
|
|
8199
9473
|
condition: string;
|
|
9474
|
+
/**
|
|
9475
|
+
* The same global node won't be triggered again within the next N node
|
|
9476
|
+
* transitions.
|
|
9477
|
+
*/
|
|
9478
|
+
cool_down?: number;
|
|
9479
|
+
/**
|
|
9480
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
9481
|
+
* for these edges.
|
|
9482
|
+
*/
|
|
9483
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
8200
9484
|
/**
|
|
8201
9485
|
* Don't transition to this node
|
|
8202
9486
|
*/
|
|
@@ -8207,6 +9491,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
8207
9491
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
8208
9492
|
}
|
|
8209
9493
|
namespace GlobalNodeSetting {
|
|
9494
|
+
interface GoBackCondition {
|
|
9495
|
+
/**
|
|
9496
|
+
* Unique identifier for the edge
|
|
9497
|
+
*/
|
|
9498
|
+
id: string;
|
|
9499
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
9500
|
+
/**
|
|
9501
|
+
* ID of the destination node
|
|
9502
|
+
*/
|
|
9503
|
+
destination_node_id?: string;
|
|
9504
|
+
}
|
|
9505
|
+
namespace GoBackCondition {
|
|
9506
|
+
interface PromptCondition {
|
|
9507
|
+
/**
|
|
9508
|
+
* Prompt condition text
|
|
9509
|
+
*/
|
|
9510
|
+
prompt: string;
|
|
9511
|
+
type: 'prompt';
|
|
9512
|
+
}
|
|
9513
|
+
interface EquationCondition {
|
|
9514
|
+
equations: Array<EquationCondition.Equation>;
|
|
9515
|
+
operator: '||' | '&&';
|
|
9516
|
+
type: 'equation';
|
|
9517
|
+
}
|
|
9518
|
+
namespace EquationCondition {
|
|
9519
|
+
interface Equation {
|
|
9520
|
+
/**
|
|
9521
|
+
* Left side of the equation
|
|
9522
|
+
*/
|
|
9523
|
+
left: string;
|
|
9524
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
9525
|
+
/**
|
|
9526
|
+
* Right side of the equation. The right side of the equation not required when
|
|
9527
|
+
* "exists" or "not_exist" are selected.
|
|
9528
|
+
*/
|
|
9529
|
+
right?: string;
|
|
9530
|
+
}
|
|
9531
|
+
}
|
|
9532
|
+
}
|
|
8210
9533
|
interface NegativeFinetuneExample {
|
|
8211
9534
|
/**
|
|
8212
9535
|
* Find tune the transition condition to this global node
|
|
@@ -9116,6 +10439,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
9116
10439
|
* Condition for global node activation, cannot be empty
|
|
9117
10440
|
*/
|
|
9118
10441
|
condition: string;
|
|
10442
|
+
/**
|
|
10443
|
+
* The same global node won't be triggered again within the next N node
|
|
10444
|
+
* transitions.
|
|
10445
|
+
*/
|
|
10446
|
+
cool_down?: number;
|
|
10447
|
+
/**
|
|
10448
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
10449
|
+
* for these edges.
|
|
10450
|
+
*/
|
|
10451
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
9119
10452
|
/**
|
|
9120
10453
|
* Don't transition to this node
|
|
9121
10454
|
*/
|
|
@@ -9126,6 +10459,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
9126
10459
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
9127
10460
|
}
|
|
9128
10461
|
namespace GlobalNodeSetting {
|
|
10462
|
+
interface GoBackCondition {
|
|
10463
|
+
/**
|
|
10464
|
+
* Unique identifier for the edge
|
|
10465
|
+
*/
|
|
10466
|
+
id: string;
|
|
10467
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
10468
|
+
/**
|
|
10469
|
+
* ID of the destination node
|
|
10470
|
+
*/
|
|
10471
|
+
destination_node_id?: string;
|
|
10472
|
+
}
|
|
10473
|
+
namespace GoBackCondition {
|
|
10474
|
+
interface PromptCondition {
|
|
10475
|
+
/**
|
|
10476
|
+
* Prompt condition text
|
|
10477
|
+
*/
|
|
10478
|
+
prompt: string;
|
|
10479
|
+
type: 'prompt';
|
|
10480
|
+
}
|
|
10481
|
+
interface EquationCondition {
|
|
10482
|
+
equations: Array<EquationCondition.Equation>;
|
|
10483
|
+
operator: '||' | '&&';
|
|
10484
|
+
type: 'equation';
|
|
10485
|
+
}
|
|
10486
|
+
namespace EquationCondition {
|
|
10487
|
+
interface Equation {
|
|
10488
|
+
/**
|
|
10489
|
+
* Left side of the equation
|
|
10490
|
+
*/
|
|
10491
|
+
left: string;
|
|
10492
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
10493
|
+
/**
|
|
10494
|
+
* Right side of the equation. The right side of the equation not required when
|
|
10495
|
+
* "exists" or "not_exist" are selected.
|
|
10496
|
+
*/
|
|
10497
|
+
right?: string;
|
|
10498
|
+
}
|
|
10499
|
+
}
|
|
10500
|
+
}
|
|
9129
10501
|
interface NegativeFinetuneExample {
|
|
9130
10502
|
/**
|
|
9131
10503
|
* Find tune the transition condition to this global node
|
|
@@ -9370,6 +10742,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
9370
10742
|
* Condition for global node activation, cannot be empty
|
|
9371
10743
|
*/
|
|
9372
10744
|
condition: string;
|
|
10745
|
+
/**
|
|
10746
|
+
* The same global node won't be triggered again within the next N node
|
|
10747
|
+
* transitions.
|
|
10748
|
+
*/
|
|
10749
|
+
cool_down?: number;
|
|
10750
|
+
/**
|
|
10751
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
10752
|
+
* for these edges.
|
|
10753
|
+
*/
|
|
10754
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
9373
10755
|
/**
|
|
9374
10756
|
* Don't transition to this node
|
|
9375
10757
|
*/
|
|
@@ -9380,6 +10762,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
9380
10762
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
9381
10763
|
}
|
|
9382
10764
|
namespace GlobalNodeSetting {
|
|
10765
|
+
interface GoBackCondition {
|
|
10766
|
+
/**
|
|
10767
|
+
* Unique identifier for the edge
|
|
10768
|
+
*/
|
|
10769
|
+
id: string;
|
|
10770
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
10771
|
+
/**
|
|
10772
|
+
* ID of the destination node
|
|
10773
|
+
*/
|
|
10774
|
+
destination_node_id?: string;
|
|
10775
|
+
}
|
|
10776
|
+
namespace GoBackCondition {
|
|
10777
|
+
interface PromptCondition {
|
|
10778
|
+
/**
|
|
10779
|
+
* Prompt condition text
|
|
10780
|
+
*/
|
|
10781
|
+
prompt: string;
|
|
10782
|
+
type: 'prompt';
|
|
10783
|
+
}
|
|
10784
|
+
interface EquationCondition {
|
|
10785
|
+
equations: Array<EquationCondition.Equation>;
|
|
10786
|
+
operator: '||' | '&&';
|
|
10787
|
+
type: 'equation';
|
|
10788
|
+
}
|
|
10789
|
+
namespace EquationCondition {
|
|
10790
|
+
interface Equation {
|
|
10791
|
+
/**
|
|
10792
|
+
* Left side of the equation
|
|
10793
|
+
*/
|
|
10794
|
+
left: string;
|
|
10795
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
10796
|
+
/**
|
|
10797
|
+
* Right side of the equation. The right side of the equation not required when
|
|
10798
|
+
* "exists" or "not_exist" are selected.
|
|
10799
|
+
*/
|
|
10800
|
+
right?: string;
|
|
10801
|
+
}
|
|
10802
|
+
}
|
|
10803
|
+
}
|
|
9383
10804
|
interface NegativeFinetuneExample {
|
|
9384
10805
|
/**
|
|
9385
10806
|
* Find tune the transition condition to this global node
|
|
@@ -9792,6 +11213,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
9792
11213
|
* Condition for global node activation, cannot be empty
|
|
9793
11214
|
*/
|
|
9794
11215
|
condition: string;
|
|
11216
|
+
/**
|
|
11217
|
+
* The same global node won't be triggered again within the next N node
|
|
11218
|
+
* transitions.
|
|
11219
|
+
*/
|
|
11220
|
+
cool_down?: number;
|
|
11221
|
+
/**
|
|
11222
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
11223
|
+
* for these edges.
|
|
11224
|
+
*/
|
|
11225
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
9795
11226
|
/**
|
|
9796
11227
|
* Don't transition to this node
|
|
9797
11228
|
*/
|
|
@@ -9802,6 +11233,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
9802
11233
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
9803
11234
|
}
|
|
9804
11235
|
namespace GlobalNodeSetting {
|
|
11236
|
+
interface GoBackCondition {
|
|
11237
|
+
/**
|
|
11238
|
+
* Unique identifier for the edge
|
|
11239
|
+
*/
|
|
11240
|
+
id: string;
|
|
11241
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
11242
|
+
/**
|
|
11243
|
+
* ID of the destination node
|
|
11244
|
+
*/
|
|
11245
|
+
destination_node_id?: string;
|
|
11246
|
+
}
|
|
11247
|
+
namespace GoBackCondition {
|
|
11248
|
+
interface PromptCondition {
|
|
11249
|
+
/**
|
|
11250
|
+
* Prompt condition text
|
|
11251
|
+
*/
|
|
11252
|
+
prompt: string;
|
|
11253
|
+
type: 'prompt';
|
|
11254
|
+
}
|
|
11255
|
+
interface EquationCondition {
|
|
11256
|
+
equations: Array<EquationCondition.Equation>;
|
|
11257
|
+
operator: '||' | '&&';
|
|
11258
|
+
type: 'equation';
|
|
11259
|
+
}
|
|
11260
|
+
namespace EquationCondition {
|
|
11261
|
+
interface Equation {
|
|
11262
|
+
/**
|
|
11263
|
+
* Left side of the equation
|
|
11264
|
+
*/
|
|
11265
|
+
left: string;
|
|
11266
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
11267
|
+
/**
|
|
11268
|
+
* Right side of the equation. The right side of the equation not required when
|
|
11269
|
+
* "exists" or "not_exist" are selected.
|
|
11270
|
+
*/
|
|
11271
|
+
right?: string;
|
|
11272
|
+
}
|
|
11273
|
+
}
|
|
11274
|
+
}
|
|
9805
11275
|
interface NegativeFinetuneExample {
|
|
9806
11276
|
/**
|
|
9807
11277
|
* Find tune the transition condition to this global node
|
|
@@ -10004,6 +11474,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10004
11474
|
* Condition for global node activation, cannot be empty
|
|
10005
11475
|
*/
|
|
10006
11476
|
condition: string;
|
|
11477
|
+
/**
|
|
11478
|
+
* The same global node won't be triggered again within the next N node
|
|
11479
|
+
* transitions.
|
|
11480
|
+
*/
|
|
11481
|
+
cool_down?: number;
|
|
11482
|
+
/**
|
|
11483
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
11484
|
+
* for these edges.
|
|
11485
|
+
*/
|
|
11486
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
10007
11487
|
/**
|
|
10008
11488
|
* Don't transition to this node
|
|
10009
11489
|
*/
|
|
@@ -10014,6 +11494,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10014
11494
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
10015
11495
|
}
|
|
10016
11496
|
namespace GlobalNodeSetting {
|
|
11497
|
+
interface GoBackCondition {
|
|
11498
|
+
/**
|
|
11499
|
+
* Unique identifier for the edge
|
|
11500
|
+
*/
|
|
11501
|
+
id: string;
|
|
11502
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
11503
|
+
/**
|
|
11504
|
+
* ID of the destination node
|
|
11505
|
+
*/
|
|
11506
|
+
destination_node_id?: string;
|
|
11507
|
+
}
|
|
11508
|
+
namespace GoBackCondition {
|
|
11509
|
+
interface PromptCondition {
|
|
11510
|
+
/**
|
|
11511
|
+
* Prompt condition text
|
|
11512
|
+
*/
|
|
11513
|
+
prompt: string;
|
|
11514
|
+
type: 'prompt';
|
|
11515
|
+
}
|
|
11516
|
+
interface EquationCondition {
|
|
11517
|
+
equations: Array<EquationCondition.Equation>;
|
|
11518
|
+
operator: '||' | '&&';
|
|
11519
|
+
type: 'equation';
|
|
11520
|
+
}
|
|
11521
|
+
namespace EquationCondition {
|
|
11522
|
+
interface Equation {
|
|
11523
|
+
/**
|
|
11524
|
+
* Left side of the equation
|
|
11525
|
+
*/
|
|
11526
|
+
left: string;
|
|
11527
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
11528
|
+
/**
|
|
11529
|
+
* Right side of the equation. The right side of the equation not required when
|
|
11530
|
+
* "exists" or "not_exist" are selected.
|
|
11531
|
+
*/
|
|
11532
|
+
right?: string;
|
|
11533
|
+
}
|
|
11534
|
+
}
|
|
11535
|
+
}
|
|
10017
11536
|
interface NegativeFinetuneExample {
|
|
10018
11537
|
/**
|
|
10019
11538
|
* Find tune the transition condition to this global node
|
|
@@ -10231,6 +11750,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10231
11750
|
* Condition for global node activation, cannot be empty
|
|
10232
11751
|
*/
|
|
10233
11752
|
condition: string;
|
|
11753
|
+
/**
|
|
11754
|
+
* The same global node won't be triggered again within the next N node
|
|
11755
|
+
* transitions.
|
|
11756
|
+
*/
|
|
11757
|
+
cool_down?: number;
|
|
11758
|
+
/**
|
|
11759
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
11760
|
+
* for these edges.
|
|
11761
|
+
*/
|
|
11762
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
10234
11763
|
/**
|
|
10235
11764
|
* Don't transition to this node
|
|
10236
11765
|
*/
|
|
@@ -10241,6 +11770,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10241
11770
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
10242
11771
|
}
|
|
10243
11772
|
namespace GlobalNodeSetting {
|
|
11773
|
+
interface GoBackCondition {
|
|
11774
|
+
/**
|
|
11775
|
+
* Unique identifier for the edge
|
|
11776
|
+
*/
|
|
11777
|
+
id: string;
|
|
11778
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
11779
|
+
/**
|
|
11780
|
+
* ID of the destination node
|
|
11781
|
+
*/
|
|
11782
|
+
destination_node_id?: string;
|
|
11783
|
+
}
|
|
11784
|
+
namespace GoBackCondition {
|
|
11785
|
+
interface PromptCondition {
|
|
11786
|
+
/**
|
|
11787
|
+
* Prompt condition text
|
|
11788
|
+
*/
|
|
11789
|
+
prompt: string;
|
|
11790
|
+
type: 'prompt';
|
|
11791
|
+
}
|
|
11792
|
+
interface EquationCondition {
|
|
11793
|
+
equations: Array<EquationCondition.Equation>;
|
|
11794
|
+
operator: '||' | '&&';
|
|
11795
|
+
type: 'equation';
|
|
11796
|
+
}
|
|
11797
|
+
namespace EquationCondition {
|
|
11798
|
+
interface Equation {
|
|
11799
|
+
/**
|
|
11800
|
+
* Left side of the equation
|
|
11801
|
+
*/
|
|
11802
|
+
left: string;
|
|
11803
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
11804
|
+
/**
|
|
11805
|
+
* Right side of the equation. The right side of the equation not required when
|
|
11806
|
+
* "exists" or "not_exist" are selected.
|
|
11807
|
+
*/
|
|
11808
|
+
right?: string;
|
|
11809
|
+
}
|
|
11810
|
+
}
|
|
11811
|
+
}
|
|
10244
11812
|
interface NegativeFinetuneExample {
|
|
10245
11813
|
/**
|
|
10246
11814
|
* Find tune the transition condition to this global node
|
|
@@ -10444,6 +12012,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10444
12012
|
* Condition for global node activation, cannot be empty
|
|
10445
12013
|
*/
|
|
10446
12014
|
condition: string;
|
|
12015
|
+
/**
|
|
12016
|
+
* The same global node won't be triggered again within the next N node
|
|
12017
|
+
* transitions.
|
|
12018
|
+
*/
|
|
12019
|
+
cool_down?: number;
|
|
12020
|
+
/**
|
|
12021
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
12022
|
+
* for these edges.
|
|
12023
|
+
*/
|
|
12024
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
10447
12025
|
/**
|
|
10448
12026
|
* Don't transition to this node
|
|
10449
12027
|
*/
|
|
@@ -10454,6 +12032,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10454
12032
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
10455
12033
|
}
|
|
10456
12034
|
namespace GlobalNodeSetting {
|
|
12035
|
+
interface GoBackCondition {
|
|
12036
|
+
/**
|
|
12037
|
+
* Unique identifier for the edge
|
|
12038
|
+
*/
|
|
12039
|
+
id: string;
|
|
12040
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
12041
|
+
/**
|
|
12042
|
+
* ID of the destination node
|
|
12043
|
+
*/
|
|
12044
|
+
destination_node_id?: string;
|
|
12045
|
+
}
|
|
12046
|
+
namespace GoBackCondition {
|
|
12047
|
+
interface PromptCondition {
|
|
12048
|
+
/**
|
|
12049
|
+
* Prompt condition text
|
|
12050
|
+
*/
|
|
12051
|
+
prompt: string;
|
|
12052
|
+
type: 'prompt';
|
|
12053
|
+
}
|
|
12054
|
+
interface EquationCondition {
|
|
12055
|
+
equations: Array<EquationCondition.Equation>;
|
|
12056
|
+
operator: '||' | '&&';
|
|
12057
|
+
type: 'equation';
|
|
12058
|
+
}
|
|
12059
|
+
namespace EquationCondition {
|
|
12060
|
+
interface Equation {
|
|
12061
|
+
/**
|
|
12062
|
+
* Left side of the equation
|
|
12063
|
+
*/
|
|
12064
|
+
left: string;
|
|
12065
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
12066
|
+
/**
|
|
12067
|
+
* Right side of the equation. The right side of the equation not required when
|
|
12068
|
+
* "exists" or "not_exist" are selected.
|
|
12069
|
+
*/
|
|
12070
|
+
right?: string;
|
|
12071
|
+
}
|
|
12072
|
+
}
|
|
12073
|
+
}
|
|
10457
12074
|
interface NegativeFinetuneExample {
|
|
10458
12075
|
/**
|
|
10459
12076
|
* Find tune the transition condition to this global node
|
|
@@ -10723,6 +12340,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10723
12340
|
* Condition for global node activation, cannot be empty
|
|
10724
12341
|
*/
|
|
10725
12342
|
condition: string;
|
|
12343
|
+
/**
|
|
12344
|
+
* The same global node won't be triggered again within the next N node
|
|
12345
|
+
* transitions.
|
|
12346
|
+
*/
|
|
12347
|
+
cool_down?: number;
|
|
12348
|
+
/**
|
|
12349
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
12350
|
+
* for these edges.
|
|
12351
|
+
*/
|
|
12352
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
10726
12353
|
/**
|
|
10727
12354
|
* Don't transition to this node
|
|
10728
12355
|
*/
|
|
@@ -10733,6 +12360,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10733
12360
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
10734
12361
|
}
|
|
10735
12362
|
namespace GlobalNodeSetting {
|
|
12363
|
+
interface GoBackCondition {
|
|
12364
|
+
/**
|
|
12365
|
+
* Unique identifier for the edge
|
|
12366
|
+
*/
|
|
12367
|
+
id: string;
|
|
12368
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
12369
|
+
/**
|
|
12370
|
+
* ID of the destination node
|
|
12371
|
+
*/
|
|
12372
|
+
destination_node_id?: string;
|
|
12373
|
+
}
|
|
12374
|
+
namespace GoBackCondition {
|
|
12375
|
+
interface PromptCondition {
|
|
12376
|
+
/**
|
|
12377
|
+
* Prompt condition text
|
|
12378
|
+
*/
|
|
12379
|
+
prompt: string;
|
|
12380
|
+
type: 'prompt';
|
|
12381
|
+
}
|
|
12382
|
+
interface EquationCondition {
|
|
12383
|
+
equations: Array<EquationCondition.Equation>;
|
|
12384
|
+
operator: '||' | '&&';
|
|
12385
|
+
type: 'equation';
|
|
12386
|
+
}
|
|
12387
|
+
namespace EquationCondition {
|
|
12388
|
+
interface Equation {
|
|
12389
|
+
/**
|
|
12390
|
+
* Left side of the equation
|
|
12391
|
+
*/
|
|
12392
|
+
left: string;
|
|
12393
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
12394
|
+
/**
|
|
12395
|
+
* Right side of the equation. The right side of the equation not required when
|
|
12396
|
+
* "exists" or "not_exist" are selected.
|
|
12397
|
+
*/
|
|
12398
|
+
right?: string;
|
|
12399
|
+
}
|
|
12400
|
+
}
|
|
12401
|
+
}
|
|
10736
12402
|
interface NegativeFinetuneExample {
|
|
10737
12403
|
/**
|
|
10738
12404
|
* Find tune the transition condition to this global node
|
|
@@ -10913,6 +12579,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10913
12579
|
* Condition for global node activation, cannot be empty
|
|
10914
12580
|
*/
|
|
10915
12581
|
condition: string;
|
|
12582
|
+
/**
|
|
12583
|
+
* The same global node won't be triggered again within the next N node
|
|
12584
|
+
* transitions.
|
|
12585
|
+
*/
|
|
12586
|
+
cool_down?: number;
|
|
12587
|
+
/**
|
|
12588
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
12589
|
+
* for these edges.
|
|
12590
|
+
*/
|
|
12591
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
10916
12592
|
/**
|
|
10917
12593
|
* Don't transition to this node
|
|
10918
12594
|
*/
|
|
@@ -10923,6 +12599,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
10923
12599
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
10924
12600
|
}
|
|
10925
12601
|
namespace GlobalNodeSetting {
|
|
12602
|
+
interface GoBackCondition {
|
|
12603
|
+
/**
|
|
12604
|
+
* Unique identifier for the edge
|
|
12605
|
+
*/
|
|
12606
|
+
id: string;
|
|
12607
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
12608
|
+
/**
|
|
12609
|
+
* ID of the destination node
|
|
12610
|
+
*/
|
|
12611
|
+
destination_node_id?: string;
|
|
12612
|
+
}
|
|
12613
|
+
namespace GoBackCondition {
|
|
12614
|
+
interface PromptCondition {
|
|
12615
|
+
/**
|
|
12616
|
+
* Prompt condition text
|
|
12617
|
+
*/
|
|
12618
|
+
prompt: string;
|
|
12619
|
+
type: 'prompt';
|
|
12620
|
+
}
|
|
12621
|
+
interface EquationCondition {
|
|
12622
|
+
equations: Array<EquationCondition.Equation>;
|
|
12623
|
+
operator: '||' | '&&';
|
|
12624
|
+
type: 'equation';
|
|
12625
|
+
}
|
|
12626
|
+
namespace EquationCondition {
|
|
12627
|
+
interface Equation {
|
|
12628
|
+
/**
|
|
12629
|
+
* Left side of the equation
|
|
12630
|
+
*/
|
|
12631
|
+
left: string;
|
|
12632
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
12633
|
+
/**
|
|
12634
|
+
* Right side of the equation. The right side of the equation not required when
|
|
12635
|
+
* "exists" or "not_exist" are selected.
|
|
12636
|
+
*/
|
|
12637
|
+
right?: string;
|
|
12638
|
+
}
|
|
12639
|
+
}
|
|
12640
|
+
}
|
|
10926
12641
|
interface NegativeFinetuneExample {
|
|
10927
12642
|
/**
|
|
10928
12643
|
* Find tune the transition condition to this global node
|
|
@@ -11176,6 +12891,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
11176
12891
|
* Condition for global node activation, cannot be empty
|
|
11177
12892
|
*/
|
|
11178
12893
|
condition: string;
|
|
12894
|
+
/**
|
|
12895
|
+
* The same global node won't be triggered again within the next N node
|
|
12896
|
+
* transitions.
|
|
12897
|
+
*/
|
|
12898
|
+
cool_down?: number;
|
|
12899
|
+
/**
|
|
12900
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
12901
|
+
* for these edges.
|
|
12902
|
+
*/
|
|
12903
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
11179
12904
|
/**
|
|
11180
12905
|
* Don't transition to this node
|
|
11181
12906
|
*/
|
|
@@ -11186,6 +12911,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
11186
12911
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
11187
12912
|
}
|
|
11188
12913
|
namespace GlobalNodeSetting {
|
|
12914
|
+
interface GoBackCondition {
|
|
12915
|
+
/**
|
|
12916
|
+
* Unique identifier for the edge
|
|
12917
|
+
*/
|
|
12918
|
+
id: string;
|
|
12919
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
12920
|
+
/**
|
|
12921
|
+
* ID of the destination node
|
|
12922
|
+
*/
|
|
12923
|
+
destination_node_id?: string;
|
|
12924
|
+
}
|
|
12925
|
+
namespace GoBackCondition {
|
|
12926
|
+
interface PromptCondition {
|
|
12927
|
+
/**
|
|
12928
|
+
* Prompt condition text
|
|
12929
|
+
*/
|
|
12930
|
+
prompt: string;
|
|
12931
|
+
type: 'prompt';
|
|
12932
|
+
}
|
|
12933
|
+
interface EquationCondition {
|
|
12934
|
+
equations: Array<EquationCondition.Equation>;
|
|
12935
|
+
operator: '||' | '&&';
|
|
12936
|
+
type: 'equation';
|
|
12937
|
+
}
|
|
12938
|
+
namespace EquationCondition {
|
|
12939
|
+
interface Equation {
|
|
12940
|
+
/**
|
|
12941
|
+
* Left side of the equation
|
|
12942
|
+
*/
|
|
12943
|
+
left: string;
|
|
12944
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
12945
|
+
/**
|
|
12946
|
+
* Right side of the equation. The right side of the equation not required when
|
|
12947
|
+
* "exists" or "not_exist" are selected.
|
|
12948
|
+
*/
|
|
12949
|
+
right?: string;
|
|
12950
|
+
}
|
|
12951
|
+
}
|
|
12952
|
+
}
|
|
11189
12953
|
interface NegativeFinetuneExample {
|
|
11190
12954
|
/**
|
|
11191
12955
|
* Find tune the transition condition to this global node
|
|
@@ -11397,6 +13161,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
11397
13161
|
* Condition for global node activation, cannot be empty
|
|
11398
13162
|
*/
|
|
11399
13163
|
condition: string;
|
|
13164
|
+
/**
|
|
13165
|
+
* The same global node won't be triggered again within the next N node
|
|
13166
|
+
* transitions.
|
|
13167
|
+
*/
|
|
13168
|
+
cool_down?: number;
|
|
13169
|
+
/**
|
|
13170
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
13171
|
+
* for these edges.
|
|
13172
|
+
*/
|
|
13173
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
11400
13174
|
/**
|
|
11401
13175
|
* Don't transition to this node
|
|
11402
13176
|
*/
|
|
@@ -11407,6 +13181,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
11407
13181
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
11408
13182
|
}
|
|
11409
13183
|
namespace GlobalNodeSetting {
|
|
13184
|
+
interface GoBackCondition {
|
|
13185
|
+
/**
|
|
13186
|
+
* Unique identifier for the edge
|
|
13187
|
+
*/
|
|
13188
|
+
id: string;
|
|
13189
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
13190
|
+
/**
|
|
13191
|
+
* ID of the destination node
|
|
13192
|
+
*/
|
|
13193
|
+
destination_node_id?: string;
|
|
13194
|
+
}
|
|
13195
|
+
namespace GoBackCondition {
|
|
13196
|
+
interface PromptCondition {
|
|
13197
|
+
/**
|
|
13198
|
+
* Prompt condition text
|
|
13199
|
+
*/
|
|
13200
|
+
prompt: string;
|
|
13201
|
+
type: 'prompt';
|
|
13202
|
+
}
|
|
13203
|
+
interface EquationCondition {
|
|
13204
|
+
equations: Array<EquationCondition.Equation>;
|
|
13205
|
+
operator: '||' | '&&';
|
|
13206
|
+
type: 'equation';
|
|
13207
|
+
}
|
|
13208
|
+
namespace EquationCondition {
|
|
13209
|
+
interface Equation {
|
|
13210
|
+
/**
|
|
13211
|
+
* Left side of the equation
|
|
13212
|
+
*/
|
|
13213
|
+
left: string;
|
|
13214
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
13215
|
+
/**
|
|
13216
|
+
* Right side of the equation. The right side of the equation not required when
|
|
13217
|
+
* "exists" or "not_exist" are selected.
|
|
13218
|
+
*/
|
|
13219
|
+
right?: string;
|
|
13220
|
+
}
|
|
13221
|
+
}
|
|
13222
|
+
}
|
|
11410
13223
|
interface NegativeFinetuneExample {
|
|
11411
13224
|
/**
|
|
11412
13225
|
* Find tune the transition condition to this global node
|
|
@@ -11487,6 +13300,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
11487
13300
|
* Condition for global node activation, cannot be empty
|
|
11488
13301
|
*/
|
|
11489
13302
|
condition: string;
|
|
13303
|
+
/**
|
|
13304
|
+
* The same global node won't be triggered again within the next N node
|
|
13305
|
+
* transitions.
|
|
13306
|
+
*/
|
|
13307
|
+
cool_down?: number;
|
|
13308
|
+
/**
|
|
13309
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
13310
|
+
* for these edges.
|
|
13311
|
+
*/
|
|
13312
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
11490
13313
|
/**
|
|
11491
13314
|
* Don't transition to this node
|
|
11492
13315
|
*/
|
|
@@ -11497,6 +13320,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
11497
13320
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
11498
13321
|
}
|
|
11499
13322
|
namespace GlobalNodeSetting {
|
|
13323
|
+
interface GoBackCondition {
|
|
13324
|
+
/**
|
|
13325
|
+
* Unique identifier for the edge
|
|
13326
|
+
*/
|
|
13327
|
+
id: string;
|
|
13328
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
13329
|
+
/**
|
|
13330
|
+
* ID of the destination node
|
|
13331
|
+
*/
|
|
13332
|
+
destination_node_id?: string;
|
|
13333
|
+
}
|
|
13334
|
+
namespace GoBackCondition {
|
|
13335
|
+
interface PromptCondition {
|
|
13336
|
+
/**
|
|
13337
|
+
* Prompt condition text
|
|
13338
|
+
*/
|
|
13339
|
+
prompt: string;
|
|
13340
|
+
type: 'prompt';
|
|
13341
|
+
}
|
|
13342
|
+
interface EquationCondition {
|
|
13343
|
+
equations: Array<EquationCondition.Equation>;
|
|
13344
|
+
operator: '||' | '&&';
|
|
13345
|
+
type: 'equation';
|
|
13346
|
+
}
|
|
13347
|
+
namespace EquationCondition {
|
|
13348
|
+
interface Equation {
|
|
13349
|
+
/**
|
|
13350
|
+
* Left side of the equation
|
|
13351
|
+
*/
|
|
13352
|
+
left: string;
|
|
13353
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
13354
|
+
/**
|
|
13355
|
+
* Right side of the equation. The right side of the equation not required when
|
|
13356
|
+
* "exists" or "not_exist" are selected.
|
|
13357
|
+
*/
|
|
13358
|
+
right?: string;
|
|
13359
|
+
}
|
|
13360
|
+
}
|
|
13361
|
+
}
|
|
11500
13362
|
interface NegativeFinetuneExample {
|
|
11501
13363
|
/**
|
|
11502
13364
|
* Find tune the transition condition to this global node
|
|
@@ -11577,6 +13439,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
11577
13439
|
* Condition for global node activation, cannot be empty
|
|
11578
13440
|
*/
|
|
11579
13441
|
condition: string;
|
|
13442
|
+
/**
|
|
13443
|
+
* The same global node won't be triggered again within the next N node
|
|
13444
|
+
* transitions.
|
|
13445
|
+
*/
|
|
13446
|
+
cool_down?: number;
|
|
13447
|
+
/**
|
|
13448
|
+
* The conditions for global node go back. There would be no destination_node_id
|
|
13449
|
+
* for these edges.
|
|
13450
|
+
*/
|
|
13451
|
+
go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
|
|
11580
13452
|
/**
|
|
11581
13453
|
* Don't transition to this node
|
|
11582
13454
|
*/
|
|
@@ -11587,6 +13459,45 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
11587
13459
|
positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
|
|
11588
13460
|
}
|
|
11589
13461
|
namespace GlobalNodeSetting {
|
|
13462
|
+
interface GoBackCondition {
|
|
13463
|
+
/**
|
|
13464
|
+
* Unique identifier for the edge
|
|
13465
|
+
*/
|
|
13466
|
+
id: string;
|
|
13467
|
+
transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
|
|
13468
|
+
/**
|
|
13469
|
+
* ID of the destination node
|
|
13470
|
+
*/
|
|
13471
|
+
destination_node_id?: string;
|
|
13472
|
+
}
|
|
13473
|
+
namespace GoBackCondition {
|
|
13474
|
+
interface PromptCondition {
|
|
13475
|
+
/**
|
|
13476
|
+
* Prompt condition text
|
|
13477
|
+
*/
|
|
13478
|
+
prompt: string;
|
|
13479
|
+
type: 'prompt';
|
|
13480
|
+
}
|
|
13481
|
+
interface EquationCondition {
|
|
13482
|
+
equations: Array<EquationCondition.Equation>;
|
|
13483
|
+
operator: '||' | '&&';
|
|
13484
|
+
type: 'equation';
|
|
13485
|
+
}
|
|
13486
|
+
namespace EquationCondition {
|
|
13487
|
+
interface Equation {
|
|
13488
|
+
/**
|
|
13489
|
+
* Left side of the equation
|
|
13490
|
+
*/
|
|
13491
|
+
left: string;
|
|
13492
|
+
operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
|
|
13493
|
+
/**
|
|
13494
|
+
* Right side of the equation. The right side of the equation not required when
|
|
13495
|
+
* "exists" or "not_exist" are selected.
|
|
13496
|
+
*/
|
|
13497
|
+
right?: string;
|
|
13498
|
+
}
|
|
13499
|
+
}
|
|
13500
|
+
}
|
|
11590
13501
|
interface NegativeFinetuneExample {
|
|
11591
13502
|
/**
|
|
11592
13503
|
* Find tune the transition condition to this global node
|