@amigo-ai/platform-sdk 0.5.3 → 0.5.4
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/dist/types/generated/api.d.ts +13860 -13131
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +166 -166
- package/dist/types/resources/agents.d.ts +88 -88
- package/dist/types/resources/analytics.d.ts +39 -39
- package/dist/types/resources/api-keys.d.ts +29 -29
- package/dist/types/resources/audit.d.ts +73 -73
- package/dist/types/resources/billing.d.ts +36 -36
- package/dist/types/resources/calls.d.ts +106 -106
- package/dist/types/resources/compliance.d.ts +17 -17
- package/dist/types/resources/context-graphs.d.ts +633 -633
- package/dist/types/resources/data-sources.d.ts +81 -81
- package/dist/types/resources/functions.d.ts +22 -22
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +258 -258
- package/dist/types/resources/memory.d.ts +35 -35
- package/dist/types/resources/operators.d.ts +147 -147
- package/dist/types/resources/personas.d.ts +37 -37
- package/dist/types/resources/phone-numbers.d.ts +62 -62
- package/dist/types/resources/recordings.d.ts +9 -9
- package/dist/types/resources/review-queue.d.ts +331 -331
- package/dist/types/resources/safety.d.ts +33 -33
- package/dist/types/resources/services.d.ts +142 -142
- package/dist/types/resources/settings.d.ts +254 -254
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +73 -73
- package/dist/types/resources/skills.d.ts +163 -163
- package/dist/types/resources/triggers.d.ts +74 -74
- package/dist/types/resources/webhook-destinations.d.ts +57 -57
- package/dist/types/resources/workspaces.d.ts +50 -50
- package/dist/types/resources/world.d.ts +216 -216
- package/package.json +1 -1
|
@@ -12,1052 +12,1052 @@ export interface ListContextGraphsParams extends ListParams {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class ContextGraphsResource extends WorkspaceScopedResource {
|
|
14
14
|
create(body: components['schemas']['CreateContextGraphRequest']): Promise<{
|
|
15
|
-
|
|
16
|
-
workspace_id: string;
|
|
17
|
-
name: string;
|
|
15
|
+
created_at: string;
|
|
18
16
|
description: string;
|
|
17
|
+
id: string;
|
|
19
18
|
latest_version?: number | undefined;
|
|
19
|
+
name: string;
|
|
20
20
|
state_count?: number | undefined;
|
|
21
|
-
created_at: string;
|
|
22
21
|
updated_at: string;
|
|
22
|
+
workspace_id: string;
|
|
23
23
|
} & import("../index.js").ResponseMetadata>;
|
|
24
24
|
list(params?: ListContextGraphsParams): Promise<{
|
|
25
|
+
continuation_token?: number | null | undefined;
|
|
26
|
+
has_more: boolean;
|
|
25
27
|
items: {
|
|
26
|
-
|
|
27
|
-
workspace_id: string;
|
|
28
|
-
name: string;
|
|
28
|
+
created_at: string;
|
|
29
29
|
description: string;
|
|
30
|
+
id: string;
|
|
30
31
|
latest_version?: number | undefined;
|
|
32
|
+
name: string;
|
|
31
33
|
state_count?: number | undefined;
|
|
32
|
-
created_at: string;
|
|
33
34
|
updated_at: string;
|
|
35
|
+
workspace_id: string;
|
|
34
36
|
}[];
|
|
35
|
-
has_more: boolean;
|
|
36
|
-
continuation_token?: number | null | undefined;
|
|
37
37
|
total?: number | null | undefined;
|
|
38
38
|
} & import("../index.js").ResponseMetadata>;
|
|
39
39
|
listAutoPaging(params?: ListContextGraphsParams): AsyncGenerator<{
|
|
40
|
-
|
|
41
|
-
workspace_id: string;
|
|
42
|
-
name: string;
|
|
40
|
+
created_at: string;
|
|
43
41
|
description: string;
|
|
42
|
+
id: string;
|
|
44
43
|
latest_version?: number | undefined;
|
|
44
|
+
name: string;
|
|
45
45
|
state_count?: number | undefined;
|
|
46
|
-
created_at: string;
|
|
47
46
|
updated_at: string;
|
|
47
|
+
workspace_id: string;
|
|
48
48
|
}, any, any>;
|
|
49
49
|
get(contextGraphId: ContextGraphId | string): Promise<{
|
|
50
|
-
|
|
51
|
-
workspace_id: string;
|
|
52
|
-
name: string;
|
|
50
|
+
created_at: string;
|
|
53
51
|
description: string;
|
|
52
|
+
id: string;
|
|
54
53
|
latest_version?: number | undefined;
|
|
54
|
+
name: string;
|
|
55
55
|
state_count?: number | undefined;
|
|
56
|
-
created_at: string;
|
|
57
56
|
updated_at: string;
|
|
57
|
+
workspace_id: string;
|
|
58
58
|
} & import("../index.js").ResponseMetadata>;
|
|
59
59
|
update(contextGraphId: ContextGraphId | string, body: components['schemas']['UpdateContextGraphRequest']): Promise<{
|
|
60
|
-
|
|
61
|
-
workspace_id: string;
|
|
62
|
-
name: string;
|
|
60
|
+
created_at: string;
|
|
63
61
|
description: string;
|
|
62
|
+
id: string;
|
|
64
63
|
latest_version?: number | undefined;
|
|
64
|
+
name: string;
|
|
65
65
|
state_count?: number | undefined;
|
|
66
|
-
created_at: string;
|
|
67
66
|
updated_at: string;
|
|
67
|
+
workspace_id: string;
|
|
68
68
|
} & import("../index.js").ResponseMetadata>;
|
|
69
69
|
delete(contextGraphId: ContextGraphId | string): Promise<void>;
|
|
70
70
|
/** Create a version snapshot of the current context graph */
|
|
71
71
|
createVersion(contextGraphId: ContextGraphId | string, body: components['schemas']['CreateContextGraphVersionRequest']): Promise<{
|
|
72
|
-
id: string;
|
|
73
|
-
workspace_id: string;
|
|
74
72
|
context_graph_id: string;
|
|
75
|
-
|
|
73
|
+
created_at: string;
|
|
76
74
|
description: string;
|
|
75
|
+
global_action_guidelines: string[];
|
|
76
|
+
global_boundary_constraints: string[];
|
|
77
|
+
global_intra_state_navigation_guidelines: string[];
|
|
78
|
+
id: string;
|
|
79
|
+
new_user_initial_state: string;
|
|
80
|
+
returning_user_initial_state: string;
|
|
77
81
|
states: ({
|
|
78
|
-
type: "action";
|
|
79
|
-
name: string;
|
|
80
|
-
objective: string;
|
|
81
|
-
actions: {
|
|
82
|
-
description: string;
|
|
83
|
-
filler_hint?: string | null | undefined;
|
|
84
|
-
}[];
|
|
85
|
-
intra_state_navigation_guidelines: string[];
|
|
86
82
|
action_guidelines: string[];
|
|
87
|
-
boundary_constraints: string[];
|
|
88
|
-
exit_conditions: {
|
|
89
|
-
description: string;
|
|
90
|
-
next_state: string;
|
|
91
|
-
filler_hint?: string | null | undefined;
|
|
92
|
-
}[];
|
|
93
83
|
action_tool_call_specs?: {
|
|
94
|
-
tool_id: string;
|
|
95
84
|
additional_instruction?: string | undefined;
|
|
85
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
86
|
+
audio_fillers?: string[] | null | undefined;
|
|
96
87
|
navigate_on_completion?: boolean | undefined;
|
|
97
88
|
progress?: {
|
|
89
|
+
custom_phrase?: string | null | undefined;
|
|
98
90
|
deterministic?: boolean | undefined;
|
|
99
|
-
|
|
100
|
-
trigger_delay_ms?: number | null | undefined;
|
|
91
|
+
expected_latency_ms?: number | null | undefined;
|
|
101
92
|
interval_ms?: number | null | undefined;
|
|
102
93
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
94
|
+
phrases?: string[] | null | undefined;
|
|
103
95
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
104
|
-
|
|
105
|
-
custom_phrase?: string | null | undefined;
|
|
96
|
+
trigger_delay_ms?: number | null | undefined;
|
|
106
97
|
} | null | undefined;
|
|
107
|
-
|
|
108
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
98
|
+
tool_id: string;
|
|
109
99
|
}[] | undefined;
|
|
100
|
+
actions: {
|
|
101
|
+
description: string;
|
|
102
|
+
filler_hint?: string | null | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
boundary_constraints: string[];
|
|
105
|
+
channel_overrides?: {
|
|
106
|
+
[x: string]: {
|
|
107
|
+
action_guidelines?: string[] | undefined;
|
|
108
|
+
objective?: string | null | undefined;
|
|
109
|
+
progress?: {
|
|
110
|
+
custom_phrase?: string | null | undefined;
|
|
111
|
+
deterministic?: boolean | undefined;
|
|
112
|
+
expected_latency_ms?: number | null | undefined;
|
|
113
|
+
interval_ms?: number | null | undefined;
|
|
114
|
+
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
115
|
+
phrases?: string[] | null | undefined;
|
|
116
|
+
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
117
|
+
trigger_delay_ms?: number | null | undefined;
|
|
118
|
+
} | null | undefined;
|
|
119
|
+
};
|
|
120
|
+
} | undefined;
|
|
121
|
+
escalation_config?: {
|
|
122
|
+
auto_escalate_threshold?: number | null | undefined;
|
|
123
|
+
max_loop_count?: number | undefined;
|
|
124
|
+
operator_skill?: string | null | undefined;
|
|
125
|
+
topic_risk_score?: number | undefined;
|
|
126
|
+
} | null | undefined;
|
|
110
127
|
exit_condition_tool_call_specs?: {
|
|
111
|
-
tool_id: string;
|
|
112
128
|
additional_instruction?: string | undefined;
|
|
129
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
130
|
+
audio_fillers?: string[] | null | undefined;
|
|
113
131
|
navigate_on_completion?: boolean | undefined;
|
|
114
132
|
progress?: {
|
|
133
|
+
custom_phrase?: string | null | undefined;
|
|
115
134
|
deterministic?: boolean | undefined;
|
|
116
|
-
|
|
117
|
-
trigger_delay_ms?: number | null | undefined;
|
|
135
|
+
expected_latency_ms?: number | null | undefined;
|
|
118
136
|
interval_ms?: number | null | undefined;
|
|
119
137
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
138
|
+
phrases?: string[] | null | undefined;
|
|
120
139
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
121
|
-
|
|
122
|
-
custom_phrase?: string | null | undefined;
|
|
140
|
+
trigger_delay_ms?: number | null | undefined;
|
|
123
141
|
} | null | undefined;
|
|
124
|
-
|
|
125
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
142
|
+
tool_id: string;
|
|
126
143
|
}[] | undefined;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
} | null | undefined;
|
|
133
|
-
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
144
|
+
exit_conditions: {
|
|
145
|
+
description: string;
|
|
146
|
+
filler_hint?: string | null | undefined;
|
|
147
|
+
next_state: string;
|
|
148
|
+
}[];
|
|
134
149
|
guardrails?: {
|
|
135
|
-
name: string;
|
|
136
150
|
description: string;
|
|
137
151
|
enforcement?: "hard" | "soft" | undefined;
|
|
152
|
+
name: string;
|
|
138
153
|
}[] | undefined;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
action_guidelines?: string[] | undefined;
|
|
143
|
-
progress?: {
|
|
144
|
-
deterministic?: boolean | undefined;
|
|
145
|
-
phrases?: string[] | null | undefined;
|
|
146
|
-
trigger_delay_ms?: number | null | undefined;
|
|
147
|
-
interval_ms?: number | null | undefined;
|
|
148
|
-
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
149
|
-
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
150
|
-
expected_latency_ms?: number | null | undefined;
|
|
151
|
-
custom_phrase?: string | null | undefined;
|
|
152
|
-
} | null | undefined;
|
|
153
|
-
};
|
|
154
|
-
} | undefined;
|
|
154
|
+
intra_state_navigation_guidelines: string[];
|
|
155
|
+
name: string;
|
|
156
|
+
objective: string;
|
|
155
157
|
surface_spec_template?: {
|
|
156
158
|
[x: string]: unknown;
|
|
157
159
|
} | null | undefined;
|
|
158
160
|
turn_policy?: {
|
|
159
161
|
barge_in_enabled?: boolean | undefined;
|
|
160
|
-
greeting_shield_s?: number | undefined;
|
|
161
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
162
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
163
|
-
degradation_threshold?: number | undefined;
|
|
164
162
|
block_forward_call?: boolean | undefined;
|
|
165
163
|
block_forward_call_after_turns?: number | undefined;
|
|
166
|
-
|
|
164
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
165
|
+
degradation_threshold?: number | undefined;
|
|
166
|
+
greeting_shield_s?: number | undefined;
|
|
167
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
167
168
|
stt_eager_eot_threshold?: number | null | undefined;
|
|
169
|
+
stt_eot_threshold?: number | null | undefined;
|
|
168
170
|
stt_eot_timeout_ms?: number | null | undefined;
|
|
169
171
|
} | null | undefined;
|
|
172
|
+
type: "action";
|
|
173
|
+
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
170
174
|
} | {
|
|
171
|
-
type: "annotation";
|
|
172
|
-
name: string;
|
|
173
175
|
inner_thought: string;
|
|
176
|
+
name: string;
|
|
174
177
|
next_state: string;
|
|
178
|
+
type: "annotation";
|
|
175
179
|
} | {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
180
|
+
channel_overrides?: {
|
|
181
|
+
[x: string]: {
|
|
182
|
+
action_guidelines?: string[] | undefined;
|
|
183
|
+
objective?: string | null | undefined;
|
|
184
|
+
progress?: {
|
|
185
|
+
custom_phrase?: string | null | undefined;
|
|
186
|
+
deterministic?: boolean | undefined;
|
|
187
|
+
expected_latency_ms?: number | null | undefined;
|
|
188
|
+
interval_ms?: number | null | undefined;
|
|
189
|
+
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
190
|
+
phrases?: string[] | null | undefined;
|
|
191
|
+
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
192
|
+
trigger_delay_ms?: number | null | undefined;
|
|
193
|
+
} | null | undefined;
|
|
194
|
+
};
|
|
195
|
+
} | undefined;
|
|
196
|
+
decision_guidelines?: string[] | undefined;
|
|
179
197
|
exit_conditions: {
|
|
180
198
|
description: string;
|
|
181
|
-
next_state: string;
|
|
182
199
|
filler_hint?: string | null | undefined;
|
|
200
|
+
next_state: string;
|
|
183
201
|
}[];
|
|
184
|
-
|
|
202
|
+
guardrails?: {
|
|
203
|
+
description: string;
|
|
204
|
+
enforcement?: "hard" | "soft" | undefined;
|
|
205
|
+
name: string;
|
|
206
|
+
}[] | undefined;
|
|
207
|
+
name: string;
|
|
208
|
+
objective: string;
|
|
185
209
|
tool_call_specs?: {
|
|
186
|
-
tool_id: string;
|
|
187
210
|
additional_instruction?: string | undefined;
|
|
211
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
212
|
+
audio_fillers?: string[] | null | undefined;
|
|
188
213
|
navigate_on_completion?: boolean | undefined;
|
|
189
214
|
progress?: {
|
|
215
|
+
custom_phrase?: string | null | undefined;
|
|
190
216
|
deterministic?: boolean | undefined;
|
|
191
|
-
|
|
192
|
-
trigger_delay_ms?: number | null | undefined;
|
|
217
|
+
expected_latency_ms?: number | null | undefined;
|
|
193
218
|
interval_ms?: number | null | undefined;
|
|
194
219
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
220
|
+
phrases?: string[] | null | undefined;
|
|
195
221
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
196
|
-
|
|
197
|
-
custom_phrase?: string | null | undefined;
|
|
222
|
+
trigger_delay_ms?: number | null | undefined;
|
|
198
223
|
} | null | undefined;
|
|
199
|
-
|
|
200
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
224
|
+
tool_id: string;
|
|
201
225
|
}[] | undefined;
|
|
226
|
+
turn_policy?: {
|
|
227
|
+
barge_in_enabled?: boolean | undefined;
|
|
228
|
+
block_forward_call?: boolean | undefined;
|
|
229
|
+
block_forward_call_after_turns?: number | undefined;
|
|
230
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
231
|
+
degradation_threshold?: number | undefined;
|
|
232
|
+
greeting_shield_s?: number | undefined;
|
|
233
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
234
|
+
stt_eager_eot_threshold?: number | null | undefined;
|
|
235
|
+
stt_eot_threshold?: number | null | undefined;
|
|
236
|
+
stt_eot_timeout_ms?: number | null | undefined;
|
|
237
|
+
} | null | undefined;
|
|
238
|
+
type: "decision";
|
|
202
239
|
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
enforcement?: "hard" | "soft" | undefined;
|
|
207
|
-
}[] | undefined;
|
|
240
|
+
} | {
|
|
241
|
+
action_guidelines?: string[] | undefined;
|
|
242
|
+
boundary_constraints?: string[] | undefined;
|
|
208
243
|
channel_overrides?: {
|
|
209
244
|
[x: string]: {
|
|
210
|
-
objective?: string | null | undefined;
|
|
211
245
|
action_guidelines?: string[] | undefined;
|
|
246
|
+
objective?: string | null | undefined;
|
|
212
247
|
progress?: {
|
|
248
|
+
custom_phrase?: string | null | undefined;
|
|
213
249
|
deterministic?: boolean | undefined;
|
|
214
|
-
|
|
215
|
-
trigger_delay_ms?: number | null | undefined;
|
|
250
|
+
expected_latency_ms?: number | null | undefined;
|
|
216
251
|
interval_ms?: number | null | undefined;
|
|
217
252
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
253
|
+
phrases?: string[] | null | undefined;
|
|
218
254
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
219
|
-
|
|
220
|
-
custom_phrase?: string | null | undefined;
|
|
255
|
+
trigger_delay_ms?: number | null | undefined;
|
|
221
256
|
} | null | undefined;
|
|
222
257
|
};
|
|
223
258
|
} | undefined;
|
|
224
|
-
turn_policy?: {
|
|
225
|
-
barge_in_enabled?: boolean | undefined;
|
|
226
|
-
greeting_shield_s?: number | undefined;
|
|
227
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
228
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
229
|
-
degradation_threshold?: number | undefined;
|
|
230
|
-
block_forward_call?: boolean | undefined;
|
|
231
|
-
block_forward_call_after_turns?: number | undefined;
|
|
232
|
-
stt_eot_threshold?: number | null | undefined;
|
|
233
|
-
stt_eager_eot_threshold?: number | null | undefined;
|
|
234
|
-
stt_eot_timeout_ms?: number | null | undefined;
|
|
235
|
-
} | null | undefined;
|
|
236
|
-
} | {
|
|
237
|
-
type: "data_collection";
|
|
238
|
-
name: string;
|
|
239
|
-
objective: string;
|
|
240
259
|
fields: {
|
|
260
|
+
ask_prompt?: string | null | undefined;
|
|
261
|
+
fhir_path?: string | null | undefined;
|
|
241
262
|
key: string;
|
|
242
|
-
type: string;
|
|
243
263
|
label: string;
|
|
244
|
-
required?: boolean | undefined;
|
|
245
264
|
options?: string[] | null | undefined;
|
|
265
|
+
required?: boolean | undefined;
|
|
266
|
+
type: string;
|
|
246
267
|
validation?: string | null | undefined;
|
|
247
|
-
ask_prompt?: string | null | undefined;
|
|
248
|
-
fhir_path?: string | null | undefined;
|
|
249
268
|
}[];
|
|
250
|
-
on_complete: string;
|
|
251
|
-
action_guidelines?: string[] | undefined;
|
|
252
|
-
boundary_constraints?: string[] | undefined;
|
|
253
|
-
surface_fallback?: boolean | undefined;
|
|
254
|
-
surface_fallback_after_turns?: number | undefined;
|
|
255
|
-
max_turns?: number | undefined;
|
|
256
269
|
guardrails?: {
|
|
257
|
-
name: string;
|
|
258
270
|
description: string;
|
|
259
271
|
enforcement?: "hard" | "soft" | undefined;
|
|
272
|
+
name: string;
|
|
260
273
|
}[] | undefined;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
phrases?: string[] | null | undefined;
|
|
268
|
-
trigger_delay_ms?: number | null | undefined;
|
|
269
|
-
interval_ms?: number | null | undefined;
|
|
270
|
-
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
271
|
-
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
272
|
-
expected_latency_ms?: number | null | undefined;
|
|
273
|
-
custom_phrase?: string | null | undefined;
|
|
274
|
-
} | null | undefined;
|
|
275
|
-
};
|
|
276
|
-
} | undefined;
|
|
277
|
-
turn_policy?: {
|
|
278
|
-
barge_in_enabled?: boolean | undefined;
|
|
279
|
-
greeting_shield_s?: number | undefined;
|
|
280
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
281
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
282
|
-
degradation_threshold?: number | undefined;
|
|
283
|
-
block_forward_call?: boolean | undefined;
|
|
284
|
-
block_forward_call_after_turns?: number | undefined;
|
|
285
|
-
stt_eot_threshold?: number | null | undefined;
|
|
286
|
-
stt_eager_eot_threshold?: number | null | undefined;
|
|
287
|
-
stt_eot_timeout_ms?: number | null | undefined;
|
|
288
|
-
} | null | undefined;
|
|
274
|
+
max_turns?: number | undefined;
|
|
275
|
+
name: string;
|
|
276
|
+
objective: string;
|
|
277
|
+
on_complete: string;
|
|
278
|
+
surface_fallback?: boolean | undefined;
|
|
279
|
+
surface_fallback_after_turns?: number | undefined;
|
|
289
280
|
tool_call_specs?: {
|
|
290
|
-
tool_id: string;
|
|
291
281
|
additional_instruction?: string | undefined;
|
|
282
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
283
|
+
audio_fillers?: string[] | null | undefined;
|
|
292
284
|
navigate_on_completion?: boolean | undefined;
|
|
293
285
|
progress?: {
|
|
286
|
+
custom_phrase?: string | null | undefined;
|
|
294
287
|
deterministic?: boolean | undefined;
|
|
295
|
-
|
|
296
|
-
trigger_delay_ms?: number | null | undefined;
|
|
288
|
+
expected_latency_ms?: number | null | undefined;
|
|
297
289
|
interval_ms?: number | null | undefined;
|
|
298
290
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
291
|
+
phrases?: string[] | null | undefined;
|
|
299
292
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
300
|
-
|
|
301
|
-
custom_phrase?: string | null | undefined;
|
|
293
|
+
trigger_delay_ms?: number | null | undefined;
|
|
302
294
|
} | null | undefined;
|
|
303
|
-
|
|
304
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
295
|
+
tool_id: string;
|
|
305
296
|
}[] | undefined;
|
|
297
|
+
turn_policy?: {
|
|
298
|
+
barge_in_enabled?: boolean | undefined;
|
|
299
|
+
block_forward_call?: boolean | undefined;
|
|
300
|
+
block_forward_call_after_turns?: number | undefined;
|
|
301
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
302
|
+
degradation_threshold?: number | undefined;
|
|
303
|
+
greeting_shield_s?: number | undefined;
|
|
304
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
305
|
+
stt_eager_eot_threshold?: number | null | undefined;
|
|
306
|
+
stt_eot_threshold?: number | null | undefined;
|
|
307
|
+
stt_eot_timeout_ms?: number | null | undefined;
|
|
308
|
+
} | null | undefined;
|
|
309
|
+
type: "data_collection";
|
|
306
310
|
})[];
|
|
307
|
-
new_user_initial_state: string;
|
|
308
|
-
returning_user_initial_state: string;
|
|
309
311
|
terminal_state: string;
|
|
310
|
-
global_intra_state_navigation_guidelines: string[];
|
|
311
|
-
global_action_guidelines: string[];
|
|
312
|
-
global_boundary_constraints: string[];
|
|
313
312
|
topology_description: string | null;
|
|
314
|
-
created_at: string;
|
|
315
313
|
updated_at: string;
|
|
314
|
+
version: number;
|
|
315
|
+
workspace_id: string;
|
|
316
316
|
} & import("../index.js").ResponseMetadata>;
|
|
317
317
|
/** List all versions of a context graph */
|
|
318
318
|
listVersions(contextGraphId: ContextGraphId | string, params?: ListParams): Promise<{
|
|
319
|
+
continuation_token?: number | null | undefined;
|
|
320
|
+
has_more: boolean;
|
|
319
321
|
items: {
|
|
320
|
-
id: string;
|
|
321
|
-
workspace_id: string;
|
|
322
322
|
context_graph_id: string;
|
|
323
|
-
|
|
323
|
+
created_at: string;
|
|
324
324
|
description: string;
|
|
325
|
+
global_action_guidelines: string[];
|
|
326
|
+
global_boundary_constraints: string[];
|
|
327
|
+
global_intra_state_navigation_guidelines: string[];
|
|
328
|
+
id: string;
|
|
329
|
+
new_user_initial_state: string;
|
|
330
|
+
returning_user_initial_state: string;
|
|
325
331
|
states: ({
|
|
326
|
-
type: "action";
|
|
327
|
-
name: string;
|
|
328
|
-
objective: string;
|
|
329
|
-
actions: {
|
|
330
|
-
description: string;
|
|
331
|
-
filler_hint?: string | null | undefined;
|
|
332
|
-
}[];
|
|
333
|
-
intra_state_navigation_guidelines: string[];
|
|
334
332
|
action_guidelines: string[];
|
|
335
|
-
boundary_constraints: string[];
|
|
336
|
-
exit_conditions: {
|
|
337
|
-
description: string;
|
|
338
|
-
next_state: string;
|
|
339
|
-
filler_hint?: string | null | undefined;
|
|
340
|
-
}[];
|
|
341
333
|
action_tool_call_specs?: {
|
|
342
|
-
tool_id: string;
|
|
343
334
|
additional_instruction?: string | undefined;
|
|
335
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
336
|
+
audio_fillers?: string[] | null | undefined;
|
|
344
337
|
navigate_on_completion?: boolean | undefined;
|
|
345
338
|
progress?: {
|
|
339
|
+
custom_phrase?: string | null | undefined;
|
|
346
340
|
deterministic?: boolean | undefined;
|
|
347
|
-
|
|
348
|
-
trigger_delay_ms?: number | null | undefined;
|
|
341
|
+
expected_latency_ms?: number | null | undefined;
|
|
349
342
|
interval_ms?: number | null | undefined;
|
|
350
343
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
344
|
+
phrases?: string[] | null | undefined;
|
|
351
345
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
352
|
-
|
|
353
|
-
custom_phrase?: string | null | undefined;
|
|
346
|
+
trigger_delay_ms?: number | null | undefined;
|
|
354
347
|
} | null | undefined;
|
|
355
|
-
|
|
356
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
348
|
+
tool_id: string;
|
|
357
349
|
}[] | undefined;
|
|
350
|
+
actions: {
|
|
351
|
+
description: string;
|
|
352
|
+
filler_hint?: string | null | undefined;
|
|
353
|
+
}[];
|
|
354
|
+
boundary_constraints: string[];
|
|
355
|
+
channel_overrides?: {
|
|
356
|
+
[x: string]: {
|
|
357
|
+
action_guidelines?: string[] | undefined;
|
|
358
|
+
objective?: string | null | undefined;
|
|
359
|
+
progress?: {
|
|
360
|
+
custom_phrase?: string | null | undefined;
|
|
361
|
+
deterministic?: boolean | undefined;
|
|
362
|
+
expected_latency_ms?: number | null | undefined;
|
|
363
|
+
interval_ms?: number | null | undefined;
|
|
364
|
+
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
365
|
+
phrases?: string[] | null | undefined;
|
|
366
|
+
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
367
|
+
trigger_delay_ms?: number | null | undefined;
|
|
368
|
+
} | null | undefined;
|
|
369
|
+
};
|
|
370
|
+
} | undefined;
|
|
371
|
+
escalation_config?: {
|
|
372
|
+
auto_escalate_threshold?: number | null | undefined;
|
|
373
|
+
max_loop_count?: number | undefined;
|
|
374
|
+
operator_skill?: string | null | undefined;
|
|
375
|
+
topic_risk_score?: number | undefined;
|
|
376
|
+
} | null | undefined;
|
|
358
377
|
exit_condition_tool_call_specs?: {
|
|
359
|
-
tool_id: string;
|
|
360
378
|
additional_instruction?: string | undefined;
|
|
379
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
380
|
+
audio_fillers?: string[] | null | undefined;
|
|
361
381
|
navigate_on_completion?: boolean | undefined;
|
|
362
382
|
progress?: {
|
|
383
|
+
custom_phrase?: string | null | undefined;
|
|
363
384
|
deterministic?: boolean | undefined;
|
|
364
|
-
|
|
365
|
-
trigger_delay_ms?: number | null | undefined;
|
|
385
|
+
expected_latency_ms?: number | null | undefined;
|
|
366
386
|
interval_ms?: number | null | undefined;
|
|
367
387
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
388
|
+
phrases?: string[] | null | undefined;
|
|
368
389
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
369
|
-
|
|
370
|
-
custom_phrase?: string | null | undefined;
|
|
390
|
+
trigger_delay_ms?: number | null | undefined;
|
|
371
391
|
} | null | undefined;
|
|
372
|
-
|
|
373
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
392
|
+
tool_id: string;
|
|
374
393
|
}[] | undefined;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
} | null | undefined;
|
|
381
|
-
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
394
|
+
exit_conditions: {
|
|
395
|
+
description: string;
|
|
396
|
+
filler_hint?: string | null | undefined;
|
|
397
|
+
next_state: string;
|
|
398
|
+
}[];
|
|
382
399
|
guardrails?: {
|
|
383
|
-
name: string;
|
|
384
400
|
description: string;
|
|
385
401
|
enforcement?: "hard" | "soft" | undefined;
|
|
402
|
+
name: string;
|
|
386
403
|
}[] | undefined;
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
action_guidelines?: string[] | undefined;
|
|
391
|
-
progress?: {
|
|
392
|
-
deterministic?: boolean | undefined;
|
|
393
|
-
phrases?: string[] | null | undefined;
|
|
394
|
-
trigger_delay_ms?: number | null | undefined;
|
|
395
|
-
interval_ms?: number | null | undefined;
|
|
396
|
-
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
397
|
-
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
398
|
-
expected_latency_ms?: number | null | undefined;
|
|
399
|
-
custom_phrase?: string | null | undefined;
|
|
400
|
-
} | null | undefined;
|
|
401
|
-
};
|
|
402
|
-
} | undefined;
|
|
404
|
+
intra_state_navigation_guidelines: string[];
|
|
405
|
+
name: string;
|
|
406
|
+
objective: string;
|
|
403
407
|
surface_spec_template?: {
|
|
404
408
|
[x: string]: unknown;
|
|
405
409
|
} | null | undefined;
|
|
406
410
|
turn_policy?: {
|
|
407
411
|
barge_in_enabled?: boolean | undefined;
|
|
408
|
-
greeting_shield_s?: number | undefined;
|
|
409
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
410
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
411
|
-
degradation_threshold?: number | undefined;
|
|
412
412
|
block_forward_call?: boolean | undefined;
|
|
413
413
|
block_forward_call_after_turns?: number | undefined;
|
|
414
|
-
|
|
414
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
415
|
+
degradation_threshold?: number | undefined;
|
|
416
|
+
greeting_shield_s?: number | undefined;
|
|
417
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
415
418
|
stt_eager_eot_threshold?: number | null | undefined;
|
|
419
|
+
stt_eot_threshold?: number | null | undefined;
|
|
416
420
|
stt_eot_timeout_ms?: number | null | undefined;
|
|
417
421
|
} | null | undefined;
|
|
422
|
+
type: "action";
|
|
423
|
+
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
418
424
|
} | {
|
|
419
|
-
type: "annotation";
|
|
420
|
-
name: string;
|
|
421
425
|
inner_thought: string;
|
|
426
|
+
name: string;
|
|
422
427
|
next_state: string;
|
|
428
|
+
type: "annotation";
|
|
423
429
|
} | {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
430
|
+
channel_overrides?: {
|
|
431
|
+
[x: string]: {
|
|
432
|
+
action_guidelines?: string[] | undefined;
|
|
433
|
+
objective?: string | null | undefined;
|
|
434
|
+
progress?: {
|
|
435
|
+
custom_phrase?: string | null | undefined;
|
|
436
|
+
deterministic?: boolean | undefined;
|
|
437
|
+
expected_latency_ms?: number | null | undefined;
|
|
438
|
+
interval_ms?: number | null | undefined;
|
|
439
|
+
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
440
|
+
phrases?: string[] | null | undefined;
|
|
441
|
+
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
442
|
+
trigger_delay_ms?: number | null | undefined;
|
|
443
|
+
} | null | undefined;
|
|
444
|
+
};
|
|
445
|
+
} | undefined;
|
|
446
|
+
decision_guidelines?: string[] | undefined;
|
|
427
447
|
exit_conditions: {
|
|
428
448
|
description: string;
|
|
429
|
-
next_state: string;
|
|
430
449
|
filler_hint?: string | null | undefined;
|
|
450
|
+
next_state: string;
|
|
431
451
|
}[];
|
|
432
|
-
|
|
452
|
+
guardrails?: {
|
|
453
|
+
description: string;
|
|
454
|
+
enforcement?: "hard" | "soft" | undefined;
|
|
455
|
+
name: string;
|
|
456
|
+
}[] | undefined;
|
|
457
|
+
name: string;
|
|
458
|
+
objective: string;
|
|
433
459
|
tool_call_specs?: {
|
|
434
|
-
tool_id: string;
|
|
435
460
|
additional_instruction?: string | undefined;
|
|
461
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
462
|
+
audio_fillers?: string[] | null | undefined;
|
|
436
463
|
navigate_on_completion?: boolean | undefined;
|
|
437
464
|
progress?: {
|
|
465
|
+
custom_phrase?: string | null | undefined;
|
|
438
466
|
deterministic?: boolean | undefined;
|
|
439
|
-
|
|
440
|
-
trigger_delay_ms?: number | null | undefined;
|
|
467
|
+
expected_latency_ms?: number | null | undefined;
|
|
441
468
|
interval_ms?: number | null | undefined;
|
|
442
469
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
470
|
+
phrases?: string[] | null | undefined;
|
|
443
471
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
444
|
-
|
|
445
|
-
custom_phrase?: string | null | undefined;
|
|
472
|
+
trigger_delay_ms?: number | null | undefined;
|
|
446
473
|
} | null | undefined;
|
|
447
|
-
|
|
448
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
474
|
+
tool_id: string;
|
|
449
475
|
}[] | undefined;
|
|
476
|
+
turn_policy?: {
|
|
477
|
+
barge_in_enabled?: boolean | undefined;
|
|
478
|
+
block_forward_call?: boolean | undefined;
|
|
479
|
+
block_forward_call_after_turns?: number | undefined;
|
|
480
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
481
|
+
degradation_threshold?: number | undefined;
|
|
482
|
+
greeting_shield_s?: number | undefined;
|
|
483
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
484
|
+
stt_eager_eot_threshold?: number | null | undefined;
|
|
485
|
+
stt_eot_threshold?: number | null | undefined;
|
|
486
|
+
stt_eot_timeout_ms?: number | null | undefined;
|
|
487
|
+
} | null | undefined;
|
|
488
|
+
type: "decision";
|
|
450
489
|
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
enforcement?: "hard" | "soft" | undefined;
|
|
455
|
-
}[] | undefined;
|
|
490
|
+
} | {
|
|
491
|
+
action_guidelines?: string[] | undefined;
|
|
492
|
+
boundary_constraints?: string[] | undefined;
|
|
456
493
|
channel_overrides?: {
|
|
457
494
|
[x: string]: {
|
|
458
|
-
objective?: string | null | undefined;
|
|
459
495
|
action_guidelines?: string[] | undefined;
|
|
496
|
+
objective?: string | null | undefined;
|
|
460
497
|
progress?: {
|
|
498
|
+
custom_phrase?: string | null | undefined;
|
|
461
499
|
deterministic?: boolean | undefined;
|
|
462
|
-
|
|
463
|
-
trigger_delay_ms?: number | null | undefined;
|
|
500
|
+
expected_latency_ms?: number | null | undefined;
|
|
464
501
|
interval_ms?: number | null | undefined;
|
|
465
502
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
503
|
+
phrases?: string[] | null | undefined;
|
|
466
504
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
467
|
-
|
|
468
|
-
custom_phrase?: string | null | undefined;
|
|
505
|
+
trigger_delay_ms?: number | null | undefined;
|
|
469
506
|
} | null | undefined;
|
|
470
507
|
};
|
|
471
508
|
} | undefined;
|
|
472
|
-
turn_policy?: {
|
|
473
|
-
barge_in_enabled?: boolean | undefined;
|
|
474
|
-
greeting_shield_s?: number | undefined;
|
|
475
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
476
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
477
|
-
degradation_threshold?: number | undefined;
|
|
478
|
-
block_forward_call?: boolean | undefined;
|
|
479
|
-
block_forward_call_after_turns?: number | undefined;
|
|
480
|
-
stt_eot_threshold?: number | null | undefined;
|
|
481
|
-
stt_eager_eot_threshold?: number | null | undefined;
|
|
482
|
-
stt_eot_timeout_ms?: number | null | undefined;
|
|
483
|
-
} | null | undefined;
|
|
484
|
-
} | {
|
|
485
|
-
type: "data_collection";
|
|
486
|
-
name: string;
|
|
487
|
-
objective: string;
|
|
488
509
|
fields: {
|
|
510
|
+
ask_prompt?: string | null | undefined;
|
|
511
|
+
fhir_path?: string | null | undefined;
|
|
489
512
|
key: string;
|
|
490
|
-
type: string;
|
|
491
513
|
label: string;
|
|
492
|
-
required?: boolean | undefined;
|
|
493
514
|
options?: string[] | null | undefined;
|
|
515
|
+
required?: boolean | undefined;
|
|
516
|
+
type: string;
|
|
494
517
|
validation?: string | null | undefined;
|
|
495
|
-
ask_prompt?: string | null | undefined;
|
|
496
|
-
fhir_path?: string | null | undefined;
|
|
497
518
|
}[];
|
|
498
|
-
on_complete: string;
|
|
499
|
-
action_guidelines?: string[] | undefined;
|
|
500
|
-
boundary_constraints?: string[] | undefined;
|
|
501
|
-
surface_fallback?: boolean | undefined;
|
|
502
|
-
surface_fallback_after_turns?: number | undefined;
|
|
503
|
-
max_turns?: number | undefined;
|
|
504
519
|
guardrails?: {
|
|
505
|
-
name: string;
|
|
506
520
|
description: string;
|
|
507
521
|
enforcement?: "hard" | "soft" | undefined;
|
|
522
|
+
name: string;
|
|
508
523
|
}[] | undefined;
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
phrases?: string[] | null | undefined;
|
|
516
|
-
trigger_delay_ms?: number | null | undefined;
|
|
517
|
-
interval_ms?: number | null | undefined;
|
|
518
|
-
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
519
|
-
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
520
|
-
expected_latency_ms?: number | null | undefined;
|
|
521
|
-
custom_phrase?: string | null | undefined;
|
|
522
|
-
} | null | undefined;
|
|
523
|
-
};
|
|
524
|
-
} | undefined;
|
|
525
|
-
turn_policy?: {
|
|
526
|
-
barge_in_enabled?: boolean | undefined;
|
|
527
|
-
greeting_shield_s?: number | undefined;
|
|
528
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
529
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
530
|
-
degradation_threshold?: number | undefined;
|
|
531
|
-
block_forward_call?: boolean | undefined;
|
|
532
|
-
block_forward_call_after_turns?: number | undefined;
|
|
533
|
-
stt_eot_threshold?: number | null | undefined;
|
|
534
|
-
stt_eager_eot_threshold?: number | null | undefined;
|
|
535
|
-
stt_eot_timeout_ms?: number | null | undefined;
|
|
536
|
-
} | null | undefined;
|
|
524
|
+
max_turns?: number | undefined;
|
|
525
|
+
name: string;
|
|
526
|
+
objective: string;
|
|
527
|
+
on_complete: string;
|
|
528
|
+
surface_fallback?: boolean | undefined;
|
|
529
|
+
surface_fallback_after_turns?: number | undefined;
|
|
537
530
|
tool_call_specs?: {
|
|
538
|
-
tool_id: string;
|
|
539
531
|
additional_instruction?: string | undefined;
|
|
532
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
533
|
+
audio_fillers?: string[] | null | undefined;
|
|
540
534
|
navigate_on_completion?: boolean | undefined;
|
|
541
535
|
progress?: {
|
|
536
|
+
custom_phrase?: string | null | undefined;
|
|
542
537
|
deterministic?: boolean | undefined;
|
|
543
|
-
|
|
544
|
-
trigger_delay_ms?: number | null | undefined;
|
|
538
|
+
expected_latency_ms?: number | null | undefined;
|
|
545
539
|
interval_ms?: number | null | undefined;
|
|
546
540
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
541
|
+
phrases?: string[] | null | undefined;
|
|
547
542
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
548
|
-
|
|
549
|
-
custom_phrase?: string | null | undefined;
|
|
543
|
+
trigger_delay_ms?: number | null | undefined;
|
|
550
544
|
} | null | undefined;
|
|
551
|
-
|
|
552
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
545
|
+
tool_id: string;
|
|
553
546
|
}[] | undefined;
|
|
547
|
+
turn_policy?: {
|
|
548
|
+
barge_in_enabled?: boolean | undefined;
|
|
549
|
+
block_forward_call?: boolean | undefined;
|
|
550
|
+
block_forward_call_after_turns?: number | undefined;
|
|
551
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
552
|
+
degradation_threshold?: number | undefined;
|
|
553
|
+
greeting_shield_s?: number | undefined;
|
|
554
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
555
|
+
stt_eager_eot_threshold?: number | null | undefined;
|
|
556
|
+
stt_eot_threshold?: number | null | undefined;
|
|
557
|
+
stt_eot_timeout_ms?: number | null | undefined;
|
|
558
|
+
} | null | undefined;
|
|
559
|
+
type: "data_collection";
|
|
554
560
|
})[];
|
|
555
|
-
new_user_initial_state: string;
|
|
556
|
-
returning_user_initial_state: string;
|
|
557
561
|
terminal_state: string;
|
|
558
|
-
global_intra_state_navigation_guidelines: string[];
|
|
559
|
-
global_action_guidelines: string[];
|
|
560
|
-
global_boundary_constraints: string[];
|
|
561
562
|
topology_description: string | null;
|
|
562
|
-
created_at: string;
|
|
563
563
|
updated_at: string;
|
|
564
|
+
version: number;
|
|
565
|
+
workspace_id: string;
|
|
564
566
|
}[];
|
|
565
|
-
has_more: boolean;
|
|
566
|
-
continuation_token?: number | null | undefined;
|
|
567
567
|
total?: number | null | undefined;
|
|
568
568
|
} & import("../index.js").ResponseMetadata>;
|
|
569
569
|
listVersionsAutoPaging(contextGraphId: ContextGraphId | string, params?: ListParams): AsyncGenerator<{
|
|
570
|
-
id: string;
|
|
571
|
-
workspace_id: string;
|
|
572
570
|
context_graph_id: string;
|
|
573
|
-
|
|
571
|
+
created_at: string;
|
|
574
572
|
description: string;
|
|
573
|
+
global_action_guidelines: string[];
|
|
574
|
+
global_boundary_constraints: string[];
|
|
575
|
+
global_intra_state_navigation_guidelines: string[];
|
|
576
|
+
id: string;
|
|
577
|
+
new_user_initial_state: string;
|
|
578
|
+
returning_user_initial_state: string;
|
|
575
579
|
states: ({
|
|
576
|
-
type: "action";
|
|
577
|
-
name: string;
|
|
578
|
-
objective: string;
|
|
579
|
-
actions: {
|
|
580
|
-
description: string;
|
|
581
|
-
filler_hint?: string | null | undefined;
|
|
582
|
-
}[];
|
|
583
|
-
intra_state_navigation_guidelines: string[];
|
|
584
580
|
action_guidelines: string[];
|
|
585
|
-
boundary_constraints: string[];
|
|
586
|
-
exit_conditions: {
|
|
587
|
-
description: string;
|
|
588
|
-
next_state: string;
|
|
589
|
-
filler_hint?: string | null | undefined;
|
|
590
|
-
}[];
|
|
591
581
|
action_tool_call_specs?: {
|
|
592
|
-
tool_id: string;
|
|
593
582
|
additional_instruction?: string | undefined;
|
|
583
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
584
|
+
audio_fillers?: string[] | null | undefined;
|
|
594
585
|
navigate_on_completion?: boolean | undefined;
|
|
595
586
|
progress?: {
|
|
587
|
+
custom_phrase?: string | null | undefined;
|
|
596
588
|
deterministic?: boolean | undefined;
|
|
597
|
-
|
|
598
|
-
trigger_delay_ms?: number | null | undefined;
|
|
589
|
+
expected_latency_ms?: number | null | undefined;
|
|
599
590
|
interval_ms?: number | null | undefined;
|
|
600
591
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
592
|
+
phrases?: string[] | null | undefined;
|
|
601
593
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
602
|
-
|
|
603
|
-
custom_phrase?: string | null | undefined;
|
|
594
|
+
trigger_delay_ms?: number | null | undefined;
|
|
604
595
|
} | null | undefined;
|
|
605
|
-
|
|
606
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
596
|
+
tool_id: string;
|
|
607
597
|
}[] | undefined;
|
|
598
|
+
actions: {
|
|
599
|
+
description: string;
|
|
600
|
+
filler_hint?: string | null | undefined;
|
|
601
|
+
}[];
|
|
602
|
+
boundary_constraints: string[];
|
|
603
|
+
channel_overrides?: {
|
|
604
|
+
[x: string]: {
|
|
605
|
+
action_guidelines?: string[] | undefined;
|
|
606
|
+
objective?: string | null | undefined;
|
|
607
|
+
progress?: {
|
|
608
|
+
custom_phrase?: string | null | undefined;
|
|
609
|
+
deterministic?: boolean | undefined;
|
|
610
|
+
expected_latency_ms?: number | null | undefined;
|
|
611
|
+
interval_ms?: number | null | undefined;
|
|
612
|
+
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
613
|
+
phrases?: string[] | null | undefined;
|
|
614
|
+
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
615
|
+
trigger_delay_ms?: number | null | undefined;
|
|
616
|
+
} | null | undefined;
|
|
617
|
+
};
|
|
618
|
+
} | undefined;
|
|
619
|
+
escalation_config?: {
|
|
620
|
+
auto_escalate_threshold?: number | null | undefined;
|
|
621
|
+
max_loop_count?: number | undefined;
|
|
622
|
+
operator_skill?: string | null | undefined;
|
|
623
|
+
topic_risk_score?: number | undefined;
|
|
624
|
+
} | null | undefined;
|
|
608
625
|
exit_condition_tool_call_specs?: {
|
|
609
|
-
tool_id: string;
|
|
610
626
|
additional_instruction?: string | undefined;
|
|
627
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
628
|
+
audio_fillers?: string[] | null | undefined;
|
|
611
629
|
navigate_on_completion?: boolean | undefined;
|
|
612
630
|
progress?: {
|
|
631
|
+
custom_phrase?: string | null | undefined;
|
|
613
632
|
deterministic?: boolean | undefined;
|
|
614
|
-
|
|
615
|
-
trigger_delay_ms?: number | null | undefined;
|
|
633
|
+
expected_latency_ms?: number | null | undefined;
|
|
616
634
|
interval_ms?: number | null | undefined;
|
|
617
635
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
636
|
+
phrases?: string[] | null | undefined;
|
|
618
637
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
619
|
-
|
|
620
|
-
custom_phrase?: string | null | undefined;
|
|
638
|
+
trigger_delay_ms?: number | null | undefined;
|
|
621
639
|
} | null | undefined;
|
|
622
|
-
|
|
623
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
640
|
+
tool_id: string;
|
|
624
641
|
}[] | undefined;
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
} | null | undefined;
|
|
631
|
-
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
642
|
+
exit_conditions: {
|
|
643
|
+
description: string;
|
|
644
|
+
filler_hint?: string | null | undefined;
|
|
645
|
+
next_state: string;
|
|
646
|
+
}[];
|
|
632
647
|
guardrails?: {
|
|
633
|
-
name: string;
|
|
634
648
|
description: string;
|
|
635
649
|
enforcement?: "hard" | "soft" | undefined;
|
|
650
|
+
name: string;
|
|
636
651
|
}[] | undefined;
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
action_guidelines?: string[] | undefined;
|
|
641
|
-
progress?: {
|
|
642
|
-
deterministic?: boolean | undefined;
|
|
643
|
-
phrases?: string[] | null | undefined;
|
|
644
|
-
trigger_delay_ms?: number | null | undefined;
|
|
645
|
-
interval_ms?: number | null | undefined;
|
|
646
|
-
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
647
|
-
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
648
|
-
expected_latency_ms?: number | null | undefined;
|
|
649
|
-
custom_phrase?: string | null | undefined;
|
|
650
|
-
} | null | undefined;
|
|
651
|
-
};
|
|
652
|
-
} | undefined;
|
|
652
|
+
intra_state_navigation_guidelines: string[];
|
|
653
|
+
name: string;
|
|
654
|
+
objective: string;
|
|
653
655
|
surface_spec_template?: {
|
|
654
656
|
[x: string]: unknown;
|
|
655
657
|
} | null | undefined;
|
|
656
658
|
turn_policy?: {
|
|
657
659
|
barge_in_enabled?: boolean | undefined;
|
|
658
|
-
greeting_shield_s?: number | undefined;
|
|
659
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
660
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
661
|
-
degradation_threshold?: number | undefined;
|
|
662
660
|
block_forward_call?: boolean | undefined;
|
|
663
661
|
block_forward_call_after_turns?: number | undefined;
|
|
664
|
-
|
|
662
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
663
|
+
degradation_threshold?: number | undefined;
|
|
664
|
+
greeting_shield_s?: number | undefined;
|
|
665
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
665
666
|
stt_eager_eot_threshold?: number | null | undefined;
|
|
667
|
+
stt_eot_threshold?: number | null | undefined;
|
|
666
668
|
stt_eot_timeout_ms?: number | null | undefined;
|
|
667
669
|
} | null | undefined;
|
|
670
|
+
type: "action";
|
|
671
|
+
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
668
672
|
} | {
|
|
669
|
-
type: "annotation";
|
|
670
|
-
name: string;
|
|
671
673
|
inner_thought: string;
|
|
674
|
+
name: string;
|
|
672
675
|
next_state: string;
|
|
676
|
+
type: "annotation";
|
|
673
677
|
} | {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
678
|
+
channel_overrides?: {
|
|
679
|
+
[x: string]: {
|
|
680
|
+
action_guidelines?: string[] | undefined;
|
|
681
|
+
objective?: string | null | undefined;
|
|
682
|
+
progress?: {
|
|
683
|
+
custom_phrase?: string | null | undefined;
|
|
684
|
+
deterministic?: boolean | undefined;
|
|
685
|
+
expected_latency_ms?: number | null | undefined;
|
|
686
|
+
interval_ms?: number | null | undefined;
|
|
687
|
+
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
688
|
+
phrases?: string[] | null | undefined;
|
|
689
|
+
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
690
|
+
trigger_delay_ms?: number | null | undefined;
|
|
691
|
+
} | null | undefined;
|
|
692
|
+
};
|
|
693
|
+
} | undefined;
|
|
694
|
+
decision_guidelines?: string[] | undefined;
|
|
677
695
|
exit_conditions: {
|
|
678
696
|
description: string;
|
|
679
|
-
next_state: string;
|
|
680
697
|
filler_hint?: string | null | undefined;
|
|
698
|
+
next_state: string;
|
|
681
699
|
}[];
|
|
682
|
-
|
|
700
|
+
guardrails?: {
|
|
701
|
+
description: string;
|
|
702
|
+
enforcement?: "hard" | "soft" | undefined;
|
|
703
|
+
name: string;
|
|
704
|
+
}[] | undefined;
|
|
705
|
+
name: string;
|
|
706
|
+
objective: string;
|
|
683
707
|
tool_call_specs?: {
|
|
684
|
-
tool_id: string;
|
|
685
708
|
additional_instruction?: string | undefined;
|
|
709
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
710
|
+
audio_fillers?: string[] | null | undefined;
|
|
686
711
|
navigate_on_completion?: boolean | undefined;
|
|
687
712
|
progress?: {
|
|
713
|
+
custom_phrase?: string | null | undefined;
|
|
688
714
|
deterministic?: boolean | undefined;
|
|
689
|
-
|
|
690
|
-
trigger_delay_ms?: number | null | undefined;
|
|
715
|
+
expected_latency_ms?: number | null | undefined;
|
|
691
716
|
interval_ms?: number | null | undefined;
|
|
692
717
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
718
|
+
phrases?: string[] | null | undefined;
|
|
693
719
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
694
|
-
|
|
695
|
-
custom_phrase?: string | null | undefined;
|
|
720
|
+
trigger_delay_ms?: number | null | undefined;
|
|
696
721
|
} | null | undefined;
|
|
697
|
-
|
|
698
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
722
|
+
tool_id: string;
|
|
699
723
|
}[] | undefined;
|
|
724
|
+
turn_policy?: {
|
|
725
|
+
barge_in_enabled?: boolean | undefined;
|
|
726
|
+
block_forward_call?: boolean | undefined;
|
|
727
|
+
block_forward_call_after_turns?: number | undefined;
|
|
728
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
729
|
+
degradation_threshold?: number | undefined;
|
|
730
|
+
greeting_shield_s?: number | undefined;
|
|
731
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
732
|
+
stt_eager_eot_threshold?: number | null | undefined;
|
|
733
|
+
stt_eot_threshold?: number | null | undefined;
|
|
734
|
+
stt_eot_timeout_ms?: number | null | undefined;
|
|
735
|
+
} | null | undefined;
|
|
736
|
+
type: "decision";
|
|
700
737
|
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
enforcement?: "hard" | "soft" | undefined;
|
|
705
|
-
}[] | undefined;
|
|
738
|
+
} | {
|
|
739
|
+
action_guidelines?: string[] | undefined;
|
|
740
|
+
boundary_constraints?: string[] | undefined;
|
|
706
741
|
channel_overrides?: {
|
|
707
742
|
[x: string]: {
|
|
708
|
-
objective?: string | null | undefined;
|
|
709
743
|
action_guidelines?: string[] | undefined;
|
|
744
|
+
objective?: string | null | undefined;
|
|
710
745
|
progress?: {
|
|
746
|
+
custom_phrase?: string | null | undefined;
|
|
711
747
|
deterministic?: boolean | undefined;
|
|
712
|
-
|
|
713
|
-
trigger_delay_ms?: number | null | undefined;
|
|
748
|
+
expected_latency_ms?: number | null | undefined;
|
|
714
749
|
interval_ms?: number | null | undefined;
|
|
715
750
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
751
|
+
phrases?: string[] | null | undefined;
|
|
716
752
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
717
|
-
|
|
718
|
-
custom_phrase?: string | null | undefined;
|
|
753
|
+
trigger_delay_ms?: number | null | undefined;
|
|
719
754
|
} | null | undefined;
|
|
720
755
|
};
|
|
721
756
|
} | undefined;
|
|
722
|
-
turn_policy?: {
|
|
723
|
-
barge_in_enabled?: boolean | undefined;
|
|
724
|
-
greeting_shield_s?: number | undefined;
|
|
725
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
726
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
727
|
-
degradation_threshold?: number | undefined;
|
|
728
|
-
block_forward_call?: boolean | undefined;
|
|
729
|
-
block_forward_call_after_turns?: number | undefined;
|
|
730
|
-
stt_eot_threshold?: number | null | undefined;
|
|
731
|
-
stt_eager_eot_threshold?: number | null | undefined;
|
|
732
|
-
stt_eot_timeout_ms?: number | null | undefined;
|
|
733
|
-
} | null | undefined;
|
|
734
|
-
} | {
|
|
735
|
-
type: "data_collection";
|
|
736
|
-
name: string;
|
|
737
|
-
objective: string;
|
|
738
757
|
fields: {
|
|
758
|
+
ask_prompt?: string | null | undefined;
|
|
759
|
+
fhir_path?: string | null | undefined;
|
|
739
760
|
key: string;
|
|
740
|
-
type: string;
|
|
741
761
|
label: string;
|
|
742
|
-
required?: boolean | undefined;
|
|
743
762
|
options?: string[] | null | undefined;
|
|
763
|
+
required?: boolean | undefined;
|
|
764
|
+
type: string;
|
|
744
765
|
validation?: string | null | undefined;
|
|
745
|
-
ask_prompt?: string | null | undefined;
|
|
746
|
-
fhir_path?: string | null | undefined;
|
|
747
766
|
}[];
|
|
748
|
-
on_complete: string;
|
|
749
|
-
action_guidelines?: string[] | undefined;
|
|
750
|
-
boundary_constraints?: string[] | undefined;
|
|
751
|
-
surface_fallback?: boolean | undefined;
|
|
752
|
-
surface_fallback_after_turns?: number | undefined;
|
|
753
|
-
max_turns?: number | undefined;
|
|
754
767
|
guardrails?: {
|
|
755
|
-
name: string;
|
|
756
768
|
description: string;
|
|
757
769
|
enforcement?: "hard" | "soft" | undefined;
|
|
770
|
+
name: string;
|
|
758
771
|
}[] | undefined;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
phrases?: string[] | null | undefined;
|
|
766
|
-
trigger_delay_ms?: number | null | undefined;
|
|
767
|
-
interval_ms?: number | null | undefined;
|
|
768
|
-
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
769
|
-
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
770
|
-
expected_latency_ms?: number | null | undefined;
|
|
771
|
-
custom_phrase?: string | null | undefined;
|
|
772
|
-
} | null | undefined;
|
|
773
|
-
};
|
|
774
|
-
} | undefined;
|
|
775
|
-
turn_policy?: {
|
|
776
|
-
barge_in_enabled?: boolean | undefined;
|
|
777
|
-
greeting_shield_s?: number | undefined;
|
|
778
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
779
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
780
|
-
degradation_threshold?: number | undefined;
|
|
781
|
-
block_forward_call?: boolean | undefined;
|
|
782
|
-
block_forward_call_after_turns?: number | undefined;
|
|
783
|
-
stt_eot_threshold?: number | null | undefined;
|
|
784
|
-
stt_eager_eot_threshold?: number | null | undefined;
|
|
785
|
-
stt_eot_timeout_ms?: number | null | undefined;
|
|
786
|
-
} | null | undefined;
|
|
772
|
+
max_turns?: number | undefined;
|
|
773
|
+
name: string;
|
|
774
|
+
objective: string;
|
|
775
|
+
on_complete: string;
|
|
776
|
+
surface_fallback?: boolean | undefined;
|
|
777
|
+
surface_fallback_after_turns?: number | undefined;
|
|
787
778
|
tool_call_specs?: {
|
|
788
|
-
tool_id: string;
|
|
789
779
|
additional_instruction?: string | undefined;
|
|
780
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
781
|
+
audio_fillers?: string[] | null | undefined;
|
|
790
782
|
navigate_on_completion?: boolean | undefined;
|
|
791
783
|
progress?: {
|
|
784
|
+
custom_phrase?: string | null | undefined;
|
|
792
785
|
deterministic?: boolean | undefined;
|
|
793
|
-
|
|
794
|
-
trigger_delay_ms?: number | null | undefined;
|
|
786
|
+
expected_latency_ms?: number | null | undefined;
|
|
795
787
|
interval_ms?: number | null | undefined;
|
|
796
788
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
789
|
+
phrases?: string[] | null | undefined;
|
|
797
790
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
798
|
-
|
|
799
|
-
custom_phrase?: string | null | undefined;
|
|
791
|
+
trigger_delay_ms?: number | null | undefined;
|
|
800
792
|
} | null | undefined;
|
|
801
|
-
|
|
802
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
793
|
+
tool_id: string;
|
|
803
794
|
}[] | undefined;
|
|
795
|
+
turn_policy?: {
|
|
796
|
+
barge_in_enabled?: boolean | undefined;
|
|
797
|
+
block_forward_call?: boolean | undefined;
|
|
798
|
+
block_forward_call_after_turns?: number | undefined;
|
|
799
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
800
|
+
degradation_threshold?: number | undefined;
|
|
801
|
+
greeting_shield_s?: number | undefined;
|
|
802
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
803
|
+
stt_eager_eot_threshold?: number | null | undefined;
|
|
804
|
+
stt_eot_threshold?: number | null | undefined;
|
|
805
|
+
stt_eot_timeout_ms?: number | null | undefined;
|
|
806
|
+
} | null | undefined;
|
|
807
|
+
type: "data_collection";
|
|
804
808
|
})[];
|
|
805
|
-
new_user_initial_state: string;
|
|
806
|
-
returning_user_initial_state: string;
|
|
807
809
|
terminal_state: string;
|
|
808
|
-
global_intra_state_navigation_guidelines: string[];
|
|
809
|
-
global_action_guidelines: string[];
|
|
810
|
-
global_boundary_constraints: string[];
|
|
811
810
|
topology_description: string | null;
|
|
812
|
-
created_at: string;
|
|
813
811
|
updated_at: string;
|
|
812
|
+
version: number;
|
|
813
|
+
workspace_id: string;
|
|
814
814
|
}, any, any>;
|
|
815
815
|
/** Get a specific version by number, or pass "latest" for the most recent */
|
|
816
816
|
getVersion(contextGraphId: ContextGraphId | string, version: number | 'latest'): Promise<{
|
|
817
|
-
id: string;
|
|
818
|
-
workspace_id: string;
|
|
819
817
|
context_graph_id: string;
|
|
820
|
-
|
|
818
|
+
created_at: string;
|
|
821
819
|
description: string;
|
|
820
|
+
global_action_guidelines: string[];
|
|
821
|
+
global_boundary_constraints: string[];
|
|
822
|
+
global_intra_state_navigation_guidelines: string[];
|
|
823
|
+
id: string;
|
|
824
|
+
new_user_initial_state: string;
|
|
825
|
+
returning_user_initial_state: string;
|
|
822
826
|
states: ({
|
|
823
|
-
type: "action";
|
|
824
|
-
name: string;
|
|
825
|
-
objective: string;
|
|
826
|
-
actions: {
|
|
827
|
-
description: string;
|
|
828
|
-
filler_hint?: string | null | undefined;
|
|
829
|
-
}[];
|
|
830
|
-
intra_state_navigation_guidelines: string[];
|
|
831
827
|
action_guidelines: string[];
|
|
832
|
-
boundary_constraints: string[];
|
|
833
|
-
exit_conditions: {
|
|
834
|
-
description: string;
|
|
835
|
-
next_state: string;
|
|
836
|
-
filler_hint?: string | null | undefined;
|
|
837
|
-
}[];
|
|
838
828
|
action_tool_call_specs?: {
|
|
839
|
-
tool_id: string;
|
|
840
829
|
additional_instruction?: string | undefined;
|
|
841
|
-
navigate_on_completion?: boolean | undefined;
|
|
842
|
-
progress?: {
|
|
843
|
-
deterministic?: boolean | undefined;
|
|
844
|
-
phrases?: string[] | null | undefined;
|
|
845
|
-
trigger_delay_ms?: number | null | undefined;
|
|
846
|
-
interval_ms?: number | null | undefined;
|
|
847
|
-
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
848
|
-
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
849
|
-
expected_latency_ms?: number | null | undefined;
|
|
850
|
-
custom_phrase?: string | null | undefined;
|
|
851
|
-
} | null | undefined;
|
|
852
|
-
audio_fillers?: string[] | null | undefined;
|
|
853
830
|
audio_filler_triggered_after?: number | null | undefined;
|
|
854
|
-
|
|
855
|
-
exit_condition_tool_call_specs?: {
|
|
856
|
-
tool_id: string;
|
|
857
|
-
additional_instruction?: string | undefined;
|
|
831
|
+
audio_fillers?: string[] | null | undefined;
|
|
858
832
|
navigate_on_completion?: boolean | undefined;
|
|
859
833
|
progress?: {
|
|
834
|
+
custom_phrase?: string | null | undefined;
|
|
860
835
|
deterministic?: boolean | undefined;
|
|
861
|
-
|
|
862
|
-
trigger_delay_ms?: number | null | undefined;
|
|
836
|
+
expected_latency_ms?: number | null | undefined;
|
|
863
837
|
interval_ms?: number | null | undefined;
|
|
864
838
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
839
|
+
phrases?: string[] | null | undefined;
|
|
865
840
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
866
|
-
|
|
867
|
-
custom_phrase?: string | null | undefined;
|
|
841
|
+
trigger_delay_ms?: number | null | undefined;
|
|
868
842
|
} | null | undefined;
|
|
869
|
-
|
|
870
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
843
|
+
tool_id: string;
|
|
871
844
|
}[] | undefined;
|
|
872
|
-
|
|
873
|
-
topic_risk_score?: number | undefined;
|
|
874
|
-
auto_escalate_threshold?: number | null | undefined;
|
|
875
|
-
max_loop_count?: number | undefined;
|
|
876
|
-
operator_skill?: string | null | undefined;
|
|
877
|
-
} | null | undefined;
|
|
878
|
-
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
879
|
-
guardrails?: {
|
|
880
|
-
name: string;
|
|
845
|
+
actions: {
|
|
881
846
|
description: string;
|
|
882
|
-
|
|
883
|
-
}[]
|
|
847
|
+
filler_hint?: string | null | undefined;
|
|
848
|
+
}[];
|
|
849
|
+
boundary_constraints: string[];
|
|
884
850
|
channel_overrides?: {
|
|
885
851
|
[x: string]: {
|
|
886
|
-
objective?: string | null | undefined;
|
|
887
852
|
action_guidelines?: string[] | undefined;
|
|
853
|
+
objective?: string | null | undefined;
|
|
888
854
|
progress?: {
|
|
855
|
+
custom_phrase?: string | null | undefined;
|
|
889
856
|
deterministic?: boolean | undefined;
|
|
890
|
-
|
|
891
|
-
trigger_delay_ms?: number | null | undefined;
|
|
857
|
+
expected_latency_ms?: number | null | undefined;
|
|
892
858
|
interval_ms?: number | null | undefined;
|
|
893
859
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
860
|
+
phrases?: string[] | null | undefined;
|
|
894
861
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
895
|
-
|
|
896
|
-
custom_phrase?: string | null | undefined;
|
|
862
|
+
trigger_delay_ms?: number | null | undefined;
|
|
897
863
|
} | null | undefined;
|
|
898
864
|
};
|
|
899
865
|
} | undefined;
|
|
866
|
+
escalation_config?: {
|
|
867
|
+
auto_escalate_threshold?: number | null | undefined;
|
|
868
|
+
max_loop_count?: number | undefined;
|
|
869
|
+
operator_skill?: string | null | undefined;
|
|
870
|
+
topic_risk_score?: number | undefined;
|
|
871
|
+
} | null | undefined;
|
|
872
|
+
exit_condition_tool_call_specs?: {
|
|
873
|
+
additional_instruction?: string | undefined;
|
|
874
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
875
|
+
audio_fillers?: string[] | null | undefined;
|
|
876
|
+
navigate_on_completion?: boolean | undefined;
|
|
877
|
+
progress?: {
|
|
878
|
+
custom_phrase?: string | null | undefined;
|
|
879
|
+
deterministic?: boolean | undefined;
|
|
880
|
+
expected_latency_ms?: number | null | undefined;
|
|
881
|
+
interval_ms?: number | null | undefined;
|
|
882
|
+
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
883
|
+
phrases?: string[] | null | undefined;
|
|
884
|
+
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
885
|
+
trigger_delay_ms?: number | null | undefined;
|
|
886
|
+
} | null | undefined;
|
|
887
|
+
tool_id: string;
|
|
888
|
+
}[] | undefined;
|
|
889
|
+
exit_conditions: {
|
|
890
|
+
description: string;
|
|
891
|
+
filler_hint?: string | null | undefined;
|
|
892
|
+
next_state: string;
|
|
893
|
+
}[];
|
|
894
|
+
guardrails?: {
|
|
895
|
+
description: string;
|
|
896
|
+
enforcement?: "hard" | "soft" | undefined;
|
|
897
|
+
name: string;
|
|
898
|
+
}[] | undefined;
|
|
899
|
+
intra_state_navigation_guidelines: string[];
|
|
900
|
+
name: string;
|
|
901
|
+
objective: string;
|
|
900
902
|
surface_spec_template?: {
|
|
901
903
|
[x: string]: unknown;
|
|
902
904
|
} | null | undefined;
|
|
903
905
|
turn_policy?: {
|
|
904
906
|
barge_in_enabled?: boolean | undefined;
|
|
905
|
-
greeting_shield_s?: number | undefined;
|
|
906
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
907
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
908
|
-
degradation_threshold?: number | undefined;
|
|
909
907
|
block_forward_call?: boolean | undefined;
|
|
910
908
|
block_forward_call_after_turns?: number | undefined;
|
|
911
|
-
|
|
909
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
910
|
+
degradation_threshold?: number | undefined;
|
|
911
|
+
greeting_shield_s?: number | undefined;
|
|
912
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
912
913
|
stt_eager_eot_threshold?: number | null | undefined;
|
|
914
|
+
stt_eot_threshold?: number | null | undefined;
|
|
913
915
|
stt_eot_timeout_ms?: number | null | undefined;
|
|
914
916
|
} | null | undefined;
|
|
917
|
+
type: "action";
|
|
918
|
+
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
915
919
|
} | {
|
|
916
|
-
type: "annotation";
|
|
917
|
-
name: string;
|
|
918
920
|
inner_thought: string;
|
|
921
|
+
name: string;
|
|
919
922
|
next_state: string;
|
|
923
|
+
type: "annotation";
|
|
920
924
|
} | {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
925
|
+
channel_overrides?: {
|
|
926
|
+
[x: string]: {
|
|
927
|
+
action_guidelines?: string[] | undefined;
|
|
928
|
+
objective?: string | null | undefined;
|
|
929
|
+
progress?: {
|
|
930
|
+
custom_phrase?: string | null | undefined;
|
|
931
|
+
deterministic?: boolean | undefined;
|
|
932
|
+
expected_latency_ms?: number | null | undefined;
|
|
933
|
+
interval_ms?: number | null | undefined;
|
|
934
|
+
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
935
|
+
phrases?: string[] | null | undefined;
|
|
936
|
+
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
937
|
+
trigger_delay_ms?: number | null | undefined;
|
|
938
|
+
} | null | undefined;
|
|
939
|
+
};
|
|
940
|
+
} | undefined;
|
|
941
|
+
decision_guidelines?: string[] | undefined;
|
|
924
942
|
exit_conditions: {
|
|
925
943
|
description: string;
|
|
926
|
-
next_state: string;
|
|
927
944
|
filler_hint?: string | null | undefined;
|
|
945
|
+
next_state: string;
|
|
928
946
|
}[];
|
|
929
|
-
|
|
947
|
+
guardrails?: {
|
|
948
|
+
description: string;
|
|
949
|
+
enforcement?: "hard" | "soft" | undefined;
|
|
950
|
+
name: string;
|
|
951
|
+
}[] | undefined;
|
|
952
|
+
name: string;
|
|
953
|
+
objective: string;
|
|
930
954
|
tool_call_specs?: {
|
|
931
|
-
tool_id: string;
|
|
932
955
|
additional_instruction?: string | undefined;
|
|
956
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
957
|
+
audio_fillers?: string[] | null | undefined;
|
|
933
958
|
navigate_on_completion?: boolean | undefined;
|
|
934
959
|
progress?: {
|
|
960
|
+
custom_phrase?: string | null | undefined;
|
|
935
961
|
deterministic?: boolean | undefined;
|
|
936
|
-
|
|
937
|
-
trigger_delay_ms?: number | null | undefined;
|
|
962
|
+
expected_latency_ms?: number | null | undefined;
|
|
938
963
|
interval_ms?: number | null | undefined;
|
|
939
964
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
965
|
+
phrases?: string[] | null | undefined;
|
|
940
966
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
941
|
-
|
|
942
|
-
custom_phrase?: string | null | undefined;
|
|
967
|
+
trigger_delay_ms?: number | null | undefined;
|
|
943
968
|
} | null | undefined;
|
|
944
|
-
|
|
945
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
969
|
+
tool_id: string;
|
|
946
970
|
}[] | undefined;
|
|
971
|
+
turn_policy?: {
|
|
972
|
+
barge_in_enabled?: boolean | undefined;
|
|
973
|
+
block_forward_call?: boolean | undefined;
|
|
974
|
+
block_forward_call_after_turns?: number | undefined;
|
|
975
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
976
|
+
degradation_threshold?: number | undefined;
|
|
977
|
+
greeting_shield_s?: number | undefined;
|
|
978
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
979
|
+
stt_eager_eot_threshold?: number | null | undefined;
|
|
980
|
+
stt_eot_threshold?: number | null | undefined;
|
|
981
|
+
stt_eot_timeout_ms?: number | null | undefined;
|
|
982
|
+
} | null | undefined;
|
|
983
|
+
type: "decision";
|
|
947
984
|
wait_for?: ("surface_submission" | "human_approval") | null | undefined;
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
enforcement?: "hard" | "soft" | undefined;
|
|
952
|
-
}[] | undefined;
|
|
985
|
+
} | {
|
|
986
|
+
action_guidelines?: string[] | undefined;
|
|
987
|
+
boundary_constraints?: string[] | undefined;
|
|
953
988
|
channel_overrides?: {
|
|
954
989
|
[x: string]: {
|
|
955
|
-
objective?: string | null | undefined;
|
|
956
990
|
action_guidelines?: string[] | undefined;
|
|
991
|
+
objective?: string | null | undefined;
|
|
957
992
|
progress?: {
|
|
993
|
+
custom_phrase?: string | null | undefined;
|
|
958
994
|
deterministic?: boolean | undefined;
|
|
959
|
-
|
|
960
|
-
trigger_delay_ms?: number | null | undefined;
|
|
995
|
+
expected_latency_ms?: number | null | undefined;
|
|
961
996
|
interval_ms?: number | null | undefined;
|
|
962
997
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
998
|
+
phrases?: string[] | null | undefined;
|
|
963
999
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
964
|
-
|
|
965
|
-
custom_phrase?: string | null | undefined;
|
|
1000
|
+
trigger_delay_ms?: number | null | undefined;
|
|
966
1001
|
} | null | undefined;
|
|
967
1002
|
};
|
|
968
1003
|
} | undefined;
|
|
969
|
-
turn_policy?: {
|
|
970
|
-
barge_in_enabled?: boolean | undefined;
|
|
971
|
-
greeting_shield_s?: number | undefined;
|
|
972
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
973
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
974
|
-
degradation_threshold?: number | undefined;
|
|
975
|
-
block_forward_call?: boolean | undefined;
|
|
976
|
-
block_forward_call_after_turns?: number | undefined;
|
|
977
|
-
stt_eot_threshold?: number | null | undefined;
|
|
978
|
-
stt_eager_eot_threshold?: number | null | undefined;
|
|
979
|
-
stt_eot_timeout_ms?: number | null | undefined;
|
|
980
|
-
} | null | undefined;
|
|
981
|
-
} | {
|
|
982
|
-
type: "data_collection";
|
|
983
|
-
name: string;
|
|
984
|
-
objective: string;
|
|
985
1004
|
fields: {
|
|
1005
|
+
ask_prompt?: string | null | undefined;
|
|
1006
|
+
fhir_path?: string | null | undefined;
|
|
986
1007
|
key: string;
|
|
987
|
-
type: string;
|
|
988
1008
|
label: string;
|
|
989
|
-
required?: boolean | undefined;
|
|
990
1009
|
options?: string[] | null | undefined;
|
|
1010
|
+
required?: boolean | undefined;
|
|
1011
|
+
type: string;
|
|
991
1012
|
validation?: string | null | undefined;
|
|
992
|
-
ask_prompt?: string | null | undefined;
|
|
993
|
-
fhir_path?: string | null | undefined;
|
|
994
1013
|
}[];
|
|
995
|
-
on_complete: string;
|
|
996
|
-
action_guidelines?: string[] | undefined;
|
|
997
|
-
boundary_constraints?: string[] | undefined;
|
|
998
|
-
surface_fallback?: boolean | undefined;
|
|
999
|
-
surface_fallback_after_turns?: number | undefined;
|
|
1000
|
-
max_turns?: number | undefined;
|
|
1001
1014
|
guardrails?: {
|
|
1002
|
-
name: string;
|
|
1003
1015
|
description: string;
|
|
1004
1016
|
enforcement?: "hard" | "soft" | undefined;
|
|
1017
|
+
name: string;
|
|
1005
1018
|
}[] | undefined;
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
phrases?: string[] | null | undefined;
|
|
1013
|
-
trigger_delay_ms?: number | null | undefined;
|
|
1014
|
-
interval_ms?: number | null | undefined;
|
|
1015
|
-
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
1016
|
-
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
1017
|
-
expected_latency_ms?: number | null | undefined;
|
|
1018
|
-
custom_phrase?: string | null | undefined;
|
|
1019
|
-
} | null | undefined;
|
|
1020
|
-
};
|
|
1021
|
-
} | undefined;
|
|
1022
|
-
turn_policy?: {
|
|
1023
|
-
barge_in_enabled?: boolean | undefined;
|
|
1024
|
-
greeting_shield_s?: number | undefined;
|
|
1025
|
-
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
1026
|
-
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
1027
|
-
degradation_threshold?: number | undefined;
|
|
1028
|
-
block_forward_call?: boolean | undefined;
|
|
1029
|
-
block_forward_call_after_turns?: number | undefined;
|
|
1030
|
-
stt_eot_threshold?: number | null | undefined;
|
|
1031
|
-
stt_eager_eot_threshold?: number | null | undefined;
|
|
1032
|
-
stt_eot_timeout_ms?: number | null | undefined;
|
|
1033
|
-
} | null | undefined;
|
|
1019
|
+
max_turns?: number | undefined;
|
|
1020
|
+
name: string;
|
|
1021
|
+
objective: string;
|
|
1022
|
+
on_complete: string;
|
|
1023
|
+
surface_fallback?: boolean | undefined;
|
|
1024
|
+
surface_fallback_after_turns?: number | undefined;
|
|
1034
1025
|
tool_call_specs?: {
|
|
1035
|
-
tool_id: string;
|
|
1036
1026
|
additional_instruction?: string | undefined;
|
|
1027
|
+
audio_filler_triggered_after?: number | null | undefined;
|
|
1028
|
+
audio_fillers?: string[] | null | undefined;
|
|
1037
1029
|
navigate_on_completion?: boolean | undefined;
|
|
1038
1030
|
progress?: {
|
|
1031
|
+
custom_phrase?: string | null | undefined;
|
|
1039
1032
|
deterministic?: boolean | undefined;
|
|
1040
|
-
|
|
1041
|
-
trigger_delay_ms?: number | null | undefined;
|
|
1033
|
+
expected_latency_ms?: number | null | undefined;
|
|
1042
1034
|
interval_ms?: number | null | undefined;
|
|
1043
1035
|
mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
|
|
1036
|
+
phrases?: string[] | null | undefined;
|
|
1044
1037
|
progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
|
|
1045
|
-
|
|
1046
|
-
custom_phrase?: string | null | undefined;
|
|
1038
|
+
trigger_delay_ms?: number | null | undefined;
|
|
1047
1039
|
} | null | undefined;
|
|
1048
|
-
|
|
1049
|
-
audio_filler_triggered_after?: number | null | undefined;
|
|
1040
|
+
tool_id: string;
|
|
1050
1041
|
}[] | undefined;
|
|
1042
|
+
turn_policy?: {
|
|
1043
|
+
barge_in_enabled?: boolean | undefined;
|
|
1044
|
+
block_forward_call?: boolean | undefined;
|
|
1045
|
+
block_forward_call_after_turns?: number | undefined;
|
|
1046
|
+
context_strategy?: "full" | "summarize" | "compact" | undefined;
|
|
1047
|
+
degradation_threshold?: number | undefined;
|
|
1048
|
+
greeting_shield_s?: number | undefined;
|
|
1049
|
+
safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
|
|
1050
|
+
stt_eager_eot_threshold?: number | null | undefined;
|
|
1051
|
+
stt_eot_threshold?: number | null | undefined;
|
|
1052
|
+
stt_eot_timeout_ms?: number | null | undefined;
|
|
1053
|
+
} | null | undefined;
|
|
1054
|
+
type: "data_collection";
|
|
1051
1055
|
})[];
|
|
1052
|
-
new_user_initial_state: string;
|
|
1053
|
-
returning_user_initial_state: string;
|
|
1054
1056
|
terminal_state: string;
|
|
1055
|
-
global_intra_state_navigation_guidelines: string[];
|
|
1056
|
-
global_action_guidelines: string[];
|
|
1057
|
-
global_boundary_constraints: string[];
|
|
1058
1057
|
topology_description: string | null;
|
|
1059
|
-
created_at: string;
|
|
1060
1058
|
updated_at: string;
|
|
1059
|
+
version: number;
|
|
1060
|
+
workspace_id: string;
|
|
1061
1061
|
} & import("../index.js").ResponseMetadata>;
|
|
1062
1062
|
}
|
|
1063
1063
|
//# sourceMappingURL=context-graphs.d.ts.map
|