@droz-js/sdk 0.19.28 → 0.19.29
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/package.json +1 -1
- package/src/drozai.d.ts +0 -93
- package/src/sdks/ai.d.ts +0 -978
- package/src/sdks/ai.js +1 -553
package/src/sdks/ai.js
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = void 0;
|
|
4
|
+
exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
6
5
|
exports.getSdk = getSdk;
|
|
7
|
-
var AiAgentVersionStatus;
|
|
8
|
-
(function (AiAgentVersionStatus) {
|
|
9
|
-
AiAgentVersionStatus["Draft"] = "draft";
|
|
10
|
-
AiAgentVersionStatus["Live"] = "live";
|
|
11
|
-
AiAgentVersionStatus["Published"] = "published";
|
|
12
|
-
AiAgentVersionStatus["Removed"] = "removed";
|
|
13
|
-
})(AiAgentVersionStatus || (exports.AiAgentVersionStatus = AiAgentVersionStatus = {}));
|
|
14
6
|
var AppInstanceStatus;
|
|
15
7
|
(function (AppInstanceStatus) {
|
|
16
8
|
AppInstanceStatus["Active"] = "Active";
|
|
17
9
|
AppInstanceStatus["Failing"] = "Failing";
|
|
18
10
|
AppInstanceStatus["Inactive"] = "Inactive";
|
|
19
11
|
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
20
|
-
var BudgetExceededAction;
|
|
21
|
-
(function (BudgetExceededAction) {
|
|
22
|
-
BudgetExceededAction["DegradeModel"] = "degrade_model";
|
|
23
|
-
BudgetExceededAction["EndWithNotice"] = "end_with_notice";
|
|
24
|
-
BudgetExceededAction["TransferToHuman"] = "transfer_to_human";
|
|
25
|
-
})(BudgetExceededAction || (exports.BudgetExceededAction = BudgetExceededAction = {}));
|
|
26
12
|
var Can;
|
|
27
13
|
(function (Can) {
|
|
28
14
|
Can["Manage"] = "manage";
|
|
@@ -30,49 +16,8 @@ var Can;
|
|
|
30
16
|
Can["Remove"] = "remove";
|
|
31
17
|
Can["Write"] = "write";
|
|
32
18
|
})(Can || (exports.Can = Can = {}));
|
|
33
|
-
var ParameterGrounding;
|
|
34
|
-
(function (ParameterGrounding) {
|
|
35
|
-
ParameterGrounding["Free"] = "free";
|
|
36
|
-
ParameterGrounding["Required"] = "required";
|
|
37
|
-
})(ParameterGrounding || (exports.ParameterGrounding = ParameterGrounding = {}));
|
|
38
|
-
var TonePreset;
|
|
39
|
-
(function (TonePreset) {
|
|
40
|
-
TonePreset["Cordial"] = "cordial";
|
|
41
|
-
TonePreset["Descontraido"] = "descontraido";
|
|
42
|
-
TonePreset["Direto"] = "direto";
|
|
43
|
-
TonePreset["Formal"] = "formal";
|
|
44
|
-
TonePreset["Tecnico"] = "tecnico";
|
|
45
|
-
})(TonePreset || (exports.TonePreset = TonePreset = {}));
|
|
46
|
-
var ToolAvailability;
|
|
47
|
-
(function (ToolAvailability) {
|
|
48
|
-
ToolAvailability["Available"] = "available";
|
|
49
|
-
ToolAvailability["Unavailable"] = "unavailable";
|
|
50
|
-
})(ToolAvailability || (exports.ToolAvailability = ToolAvailability = {}));
|
|
51
|
-
var ToolEffect;
|
|
52
|
-
(function (ToolEffect) {
|
|
53
|
-
ToolEffect["Read"] = "read";
|
|
54
|
-
ToolEffect["Write"] = "write";
|
|
55
|
-
})(ToolEffect || (exports.ToolEffect = ToolEffect = {}));
|
|
56
|
-
var ToolParameterType;
|
|
57
|
-
(function (ToolParameterType) {
|
|
58
|
-
ToolParameterType["Boolean"] = "boolean";
|
|
59
|
-
ToolParameterType["Number"] = "number";
|
|
60
|
-
ToolParameterType["String"] = "string";
|
|
61
|
-
})(ToolParameterType || (exports.ToolParameterType = ToolParameterType = {}));
|
|
62
19
|
var Typenames;
|
|
63
20
|
(function (Typenames) {
|
|
64
|
-
Typenames["AiAgentAnswerCache"] = "AiAgentAnswerCache";
|
|
65
|
-
Typenames["AiAgentApproval"] = "AiAgentApproval";
|
|
66
|
-
Typenames["AiAgentEvalReport"] = "AiAgentEvalReport";
|
|
67
|
-
Typenames["AiAgentProcedure"] = "AiAgentProcedure";
|
|
68
|
-
Typenames["AiAgentRetentionPolicy"] = "AiAgentRetentionPolicy";
|
|
69
|
-
Typenames["AiAgentScenario"] = "AiAgentScenario";
|
|
70
|
-
Typenames["AiAgentSession"] = "AiAgentSession";
|
|
71
|
-
Typenames["AiAgentSpend"] = "AiAgentSpend";
|
|
72
|
-
Typenames["AiAgentTool"] = "AiAgentTool";
|
|
73
|
-
Typenames["AiAgentTrace"] = "AiAgentTrace";
|
|
74
|
-
Typenames["AiAgentUseCase"] = "AiAgentUseCase";
|
|
75
|
-
Typenames["AiAgentVersion"] = "AiAgentVersion";
|
|
76
21
|
Typenames["Any"] = "Any";
|
|
77
22
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
78
23
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
@@ -80,155 +25,6 @@ var Typenames;
|
|
|
80
25
|
Typenames["NlpEmbeddings"] = "NlpEmbeddings";
|
|
81
26
|
Typenames["QnA"] = "QnA";
|
|
82
27
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
83
|
-
exports.AiAgentSummaryFragmentDoc = `
|
|
84
|
-
fragment aiAgentSummary on AiAgentSummary {
|
|
85
|
-
agentId
|
|
86
|
-
name
|
|
87
|
-
liveVersion
|
|
88
|
-
channels
|
|
89
|
-
updatedAt
|
|
90
|
-
queuedApprovals
|
|
91
|
-
status
|
|
92
|
-
}
|
|
93
|
-
`;
|
|
94
|
-
exports.AiAgentVersionFragmentDoc = `
|
|
95
|
-
fragment aiAgentVersion on AiAgentVersion {
|
|
96
|
-
agentId
|
|
97
|
-
version
|
|
98
|
-
status
|
|
99
|
-
createdAt
|
|
100
|
-
}
|
|
101
|
-
`;
|
|
102
|
-
exports.AiAgentSpecFragmentDoc = `
|
|
103
|
-
fragment aiAgentSpec on AiAgentSpec {
|
|
104
|
-
identity {
|
|
105
|
-
displayName
|
|
106
|
-
role
|
|
107
|
-
tone
|
|
108
|
-
toneNotes
|
|
109
|
-
openingMessage
|
|
110
|
-
outOfScopeBehaviour
|
|
111
|
-
}
|
|
112
|
-
can
|
|
113
|
-
cannot
|
|
114
|
-
knowledgeBaseIds
|
|
115
|
-
knowledgeFallback
|
|
116
|
-
toolIds
|
|
117
|
-
budget {
|
|
118
|
-
maxSteps
|
|
119
|
-
maxToolCalls
|
|
120
|
-
maxTokens
|
|
121
|
-
maxCostMicroUsd
|
|
122
|
-
maxPeriodCostMicroUsd
|
|
123
|
-
onExceeded
|
|
124
|
-
}
|
|
125
|
-
handoff {
|
|
126
|
-
transition
|
|
127
|
-
target
|
|
128
|
-
}
|
|
129
|
-
channels
|
|
130
|
-
}
|
|
131
|
-
`;
|
|
132
|
-
exports.AiAgentVersionWithSpecFragmentDoc = `
|
|
133
|
-
fragment aiAgentVersionWithSpec on AiAgentVersion {
|
|
134
|
-
agentId
|
|
135
|
-
version
|
|
136
|
-
status
|
|
137
|
-
createdAt
|
|
138
|
-
spec {
|
|
139
|
-
...aiAgentSpec
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
`;
|
|
143
|
-
exports.AiAgentListingMetricsFragmentDoc = `
|
|
144
|
-
fragment aiAgentListingMetrics on AiAgentMetrics {
|
|
145
|
-
agentId
|
|
146
|
-
conversations
|
|
147
|
-
conversationsResolved
|
|
148
|
-
conversationsHandoffRequested
|
|
149
|
-
resolutionRate
|
|
150
|
-
resolutionDefinition
|
|
151
|
-
costMicroUsd
|
|
152
|
-
}
|
|
153
|
-
`;
|
|
154
|
-
exports.AiAgentUseCaseFragmentDoc = `
|
|
155
|
-
fragment aiAgentUseCase on AiAgentUseCase {
|
|
156
|
-
id
|
|
157
|
-
name
|
|
158
|
-
subjectDescription
|
|
159
|
-
procedureId
|
|
160
|
-
status
|
|
161
|
-
updatedAt
|
|
162
|
-
}
|
|
163
|
-
`;
|
|
164
|
-
exports.AiAgentProcedureFragmentDoc = `
|
|
165
|
-
fragment aiAgentProcedure on AiAgentProcedure {
|
|
166
|
-
id
|
|
167
|
-
name
|
|
168
|
-
guidanceSteps
|
|
169
|
-
toolIds
|
|
170
|
-
contingency
|
|
171
|
-
executionAutonomy
|
|
172
|
-
status
|
|
173
|
-
updatedAt
|
|
174
|
-
}
|
|
175
|
-
`;
|
|
176
|
-
exports.AiAgentToolFragmentDoc = `
|
|
177
|
-
fragment aiAgentTool on AiAgentTool {
|
|
178
|
-
toolId
|
|
179
|
-
name
|
|
180
|
-
description
|
|
181
|
-
effect
|
|
182
|
-
availability
|
|
183
|
-
requiresAuthenticatedCustomer
|
|
184
|
-
onFailure
|
|
185
|
-
customerScope
|
|
186
|
-
returns
|
|
187
|
-
approval
|
|
188
|
-
parameters {
|
|
189
|
-
name
|
|
190
|
-
type
|
|
191
|
-
required
|
|
192
|
-
description
|
|
193
|
-
grounding
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
`;
|
|
197
|
-
exports.AiAgentTraceFragmentDoc = `
|
|
198
|
-
fragment aiAgentTrace on AiAgentTrace {
|
|
199
|
-
sessionId
|
|
200
|
-
turn
|
|
201
|
-
agentId
|
|
202
|
-
agentVersion
|
|
203
|
-
input
|
|
204
|
-
promptBuilderVersion
|
|
205
|
-
masterRuleVersion
|
|
206
|
-
identificationRequired
|
|
207
|
-
promptFingerprint
|
|
208
|
-
knowledgeOrigins
|
|
209
|
-
outcome
|
|
210
|
-
haltReason
|
|
211
|
-
steps
|
|
212
|
-
answer
|
|
213
|
-
startedAt
|
|
214
|
-
toolCalls {
|
|
215
|
-
toolId
|
|
216
|
-
name
|
|
217
|
-
result
|
|
218
|
-
ok
|
|
219
|
-
connection
|
|
220
|
-
errorClass
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
`;
|
|
224
|
-
exports.AiAgentScenarioFragmentDoc = `
|
|
225
|
-
fragment aiAgentScenario on AiAgentScenario {
|
|
226
|
-
scenarioId
|
|
227
|
-
description
|
|
228
|
-
turns
|
|
229
|
-
expectations
|
|
230
|
-
}
|
|
231
|
-
`;
|
|
232
28
|
exports.NlpInstanceFragmentDoc = `
|
|
233
29
|
fragment nlpInstance on NlpInstance {
|
|
234
30
|
id
|
|
@@ -253,261 +49,6 @@ exports.QnaFragmentFragmentDoc = `
|
|
|
253
49
|
updatedAt
|
|
254
50
|
}
|
|
255
51
|
`;
|
|
256
|
-
exports.ListAiAgentsDocument = `
|
|
257
|
-
query listAiAgents {
|
|
258
|
-
listAiAgents {
|
|
259
|
-
...aiAgentSummary
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
${exports.AiAgentSummaryFragmentDoc}`;
|
|
263
|
-
exports.ListAiAgentVersionsDocument = `
|
|
264
|
-
query listAiAgentVersions($agentId: ID!) {
|
|
265
|
-
listAiAgentVersions(agentId: $agentId) {
|
|
266
|
-
...aiAgentVersion
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
270
|
-
exports.AiAgentMetricsByAgentDocument = `
|
|
271
|
-
query aiAgentMetricsByAgent($input: AiAgentMetricsWindowInput!) {
|
|
272
|
-
aiAgentMetricsByAgent(input: $input) {
|
|
273
|
-
...aiAgentListingMetrics
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
${exports.AiAgentListingMetricsFragmentDoc}`;
|
|
277
|
-
exports.DraftAiAgentDocument = `
|
|
278
|
-
mutation draftAiAgent($input: DraftAiAgentInput!) {
|
|
279
|
-
draftAiAgent(input: $input) {
|
|
280
|
-
...aiAgentVersion
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
284
|
-
exports.PublishAiAgentVersionDocument = `
|
|
285
|
-
mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
286
|
-
publishAiAgentVersion(input: $input) {
|
|
287
|
-
...aiAgentVersion
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
291
|
-
exports.UnpublishAiAgentVersionDocument = `
|
|
292
|
-
mutation unpublishAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
293
|
-
unpublishAiAgentVersion(input: $input) {
|
|
294
|
-
...aiAgentVersion
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
298
|
-
exports.RollbackAiAgentVersionDocument = `
|
|
299
|
-
mutation rollbackAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
300
|
-
rollbackAiAgentVersion(input: $input) {
|
|
301
|
-
...aiAgentVersion
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
305
|
-
exports.RemoveAiAgentVersionDocument = `
|
|
306
|
-
mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
307
|
-
removeAiAgentVersion(input: $input) {
|
|
308
|
-
...aiAgentVersion
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
312
|
-
exports.RemoveAiAgentDocument = `
|
|
313
|
-
mutation removeAiAgent($input: AiAgentRefInput!) {
|
|
314
|
-
removeAiAgent(input: $input)
|
|
315
|
-
}
|
|
316
|
-
`;
|
|
317
|
-
exports.ListAiAgentUseCasesDocument = `
|
|
318
|
-
query listAiAgentUseCases($agentId: ID!) {
|
|
319
|
-
listAiAgentUseCases(agentId: $agentId) {
|
|
320
|
-
...aiAgentUseCase
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
${exports.AiAgentUseCaseFragmentDoc}`;
|
|
324
|
-
exports.ListAiAgentProceduresDocument = `
|
|
325
|
-
query listAiAgentProcedures($agentId: ID!) {
|
|
326
|
-
listAiAgentProcedures(agentId: $agentId) {
|
|
327
|
-
...aiAgentProcedure
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
${exports.AiAgentProcedureFragmentDoc}`;
|
|
331
|
-
exports.ListAiAgentToolsDocument = `
|
|
332
|
-
query listAiAgentTools {
|
|
333
|
-
listAiAgentTools {
|
|
334
|
-
...aiAgentTool
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
${exports.AiAgentToolFragmentDoc}`;
|
|
338
|
-
exports.AiAgentUseCaseOverlapDocument = `
|
|
339
|
-
query aiAgentUseCaseOverlap($agentId: ID!) {
|
|
340
|
-
aiAgentUseCaseOverlap(agentId: $agentId) {
|
|
341
|
-
threshold
|
|
342
|
-
pairs {
|
|
343
|
-
left
|
|
344
|
-
right
|
|
345
|
-
score
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
`;
|
|
350
|
-
exports.AiAgentTraceDocument = `
|
|
351
|
-
query aiAgentTrace($sessionId: ID!) {
|
|
352
|
-
aiAgentTrace(sessionId: $sessionId) {
|
|
353
|
-
...aiAgentTrace
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
${exports.AiAgentTraceFragmentDoc}`;
|
|
357
|
-
exports.ListAiAgentScenariosDocument = `
|
|
358
|
-
query listAiAgentScenarios($agentId: ID!) {
|
|
359
|
-
listAiAgentScenarios(agentId: $agentId) {
|
|
360
|
-
...aiAgentScenario
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
${exports.AiAgentScenarioFragmentDoc}`;
|
|
364
|
-
exports.AiAgentRetentionPolicyDocument = `
|
|
365
|
-
query aiAgentRetentionPolicy {
|
|
366
|
-
aiAgentRetentionPolicy {
|
|
367
|
-
days {
|
|
368
|
-
transcript
|
|
369
|
-
session_state
|
|
370
|
-
long_term_memory
|
|
371
|
-
}
|
|
372
|
-
masksPersonalData
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
`;
|
|
376
|
-
exports.AiAgentConversationMetricsDocument = `
|
|
377
|
-
query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {
|
|
378
|
-
aiAgentConversationMetrics(input: $input) {
|
|
379
|
-
sessionId
|
|
380
|
-
channel
|
|
381
|
-
turns
|
|
382
|
-
startedAt
|
|
383
|
-
lastTurnAt
|
|
384
|
-
totalTokens
|
|
385
|
-
costMicroUsd
|
|
386
|
-
durationMs
|
|
387
|
-
lastOutcome
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
`;
|
|
391
|
-
exports.AiAgentConversationOutcomeDocument = `
|
|
392
|
-
query aiAgentConversationOutcome($sessionId: ID!) {
|
|
393
|
-
aiAgentConversationOutcome(sessionId: $sessionId) {
|
|
394
|
-
sessionId
|
|
395
|
-
agentId
|
|
396
|
-
agentVersion
|
|
397
|
-
resolution
|
|
398
|
-
resolutionDefinition
|
|
399
|
-
collectedData
|
|
400
|
-
collectedDataAvailable
|
|
401
|
-
turns
|
|
402
|
-
startedAt
|
|
403
|
-
lastTurnAt
|
|
404
|
-
haltReason
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
`;
|
|
408
|
-
exports.SaveAiAgentUseCaseDocument = `
|
|
409
|
-
mutation saveAiAgentUseCase($input: SaveAiAgentUseCaseInput!) {
|
|
410
|
-
saveAiAgentUseCase(input: $input) {
|
|
411
|
-
...aiAgentUseCase
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
${exports.AiAgentUseCaseFragmentDoc}`;
|
|
415
|
-
exports.SaveAiAgentProcedureDocument = `
|
|
416
|
-
mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {
|
|
417
|
-
saveAiAgentProcedure(input: $input) {
|
|
418
|
-
...aiAgentProcedure
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
${exports.AiAgentProcedureFragmentDoc}`;
|
|
422
|
-
exports.RemoveAiAgentUseCaseDocument = `
|
|
423
|
-
mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {
|
|
424
|
-
removeAiAgentUseCase(input: $input)
|
|
425
|
-
}
|
|
426
|
-
`;
|
|
427
|
-
exports.RemoveAiAgentProcedureDocument = `
|
|
428
|
-
mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {
|
|
429
|
-
removeAiAgentProcedure(input: $input)
|
|
430
|
-
}
|
|
431
|
-
`;
|
|
432
|
-
exports.ResolveAiAgentApprovalDocument = `
|
|
433
|
-
mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {
|
|
434
|
-
resolveAiAgentApproval(input: $input)
|
|
435
|
-
}
|
|
436
|
-
`;
|
|
437
|
-
exports.RegisterAiAgentToolDocument = `
|
|
438
|
-
mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {
|
|
439
|
-
registerAiAgentTool(input: $input) {
|
|
440
|
-
...aiAgentTool
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
${exports.AiAgentToolFragmentDoc}`;
|
|
444
|
-
exports.UnregisterAiAgentToolDocument = `
|
|
445
|
-
mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {
|
|
446
|
-
unregisterAiAgentTool(input: $input)
|
|
447
|
-
}
|
|
448
|
-
`;
|
|
449
|
-
exports.SaveAiAgentScenarioDocument = `
|
|
450
|
-
mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {
|
|
451
|
-
saveAiAgentScenario(input: $input) {
|
|
452
|
-
...aiAgentScenario
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
${exports.AiAgentScenarioFragmentDoc}`;
|
|
456
|
-
exports.CheckAiAgentVersionDocument = `
|
|
457
|
-
mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {
|
|
458
|
-
checkAiAgentVersion(input: $input) {
|
|
459
|
-
safeToPublish
|
|
460
|
-
reports {
|
|
461
|
-
scenarioId
|
|
462
|
-
runs
|
|
463
|
-
passed
|
|
464
|
-
rate
|
|
465
|
-
}
|
|
466
|
-
regressions {
|
|
467
|
-
scenarioId
|
|
468
|
-
before
|
|
469
|
-
after
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
`;
|
|
474
|
-
exports.AiAgentMetricsDocument = `
|
|
475
|
-
query aiAgentMetrics($input: AiAgentMetricsInput!) {
|
|
476
|
-
aiAgentMetrics(input: $input) {
|
|
477
|
-
...aiAgentListingMetrics
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
${exports.AiAgentListingMetricsFragmentDoc}`;
|
|
481
|
-
exports.AiAgentVersionSpecDocument = `
|
|
482
|
-
query aiAgentVersionSpec($agentId: ID!) {
|
|
483
|
-
listAiAgentVersions(agentId: $agentId) {
|
|
484
|
-
...aiAgentVersionWithSpec
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
${exports.AiAgentVersionWithSpecFragmentDoc}
|
|
488
|
-
${exports.AiAgentSpecFragmentDoc}`;
|
|
489
|
-
exports.AiAgentRoutingPreviewDocument = `
|
|
490
|
-
query aiAgentRoutingPreview($input: AiAgentRoutingPreviewInput!) {
|
|
491
|
-
aiAgentRoutingPreview(input: $input) {
|
|
492
|
-
high
|
|
493
|
-
medium
|
|
494
|
-
examples {
|
|
495
|
-
message
|
|
496
|
-
useCaseId
|
|
497
|
-
score
|
|
498
|
-
confidence
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
`;
|
|
503
|
-
exports.AiAgentKnowledgeBasesDocument = `
|
|
504
|
-
query aiAgentKnowledgeBases {
|
|
505
|
-
aiAgentKnowledgeBases {
|
|
506
|
-
id
|
|
507
|
-
title
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
`;
|
|
511
52
|
exports.ExtractImageMetadataDocument = `
|
|
512
53
|
mutation extractImageMetadata($input: ExtractImageMetadataInput!) {
|
|
513
54
|
extractImageMetadata(input: $input) {
|
|
@@ -615,99 +156,6 @@ exports.RemoveQnAInstanceDocument = `
|
|
|
615
156
|
${exports.QnaFragmentFragmentDoc}`;
|
|
616
157
|
function getSdk(requester) {
|
|
617
158
|
return {
|
|
618
|
-
listAiAgents(variables, options) {
|
|
619
|
-
return requester(exports.ListAiAgentsDocument, variables, options);
|
|
620
|
-
},
|
|
621
|
-
listAiAgentVersions(variables, options) {
|
|
622
|
-
return requester(exports.ListAiAgentVersionsDocument, variables, options);
|
|
623
|
-
},
|
|
624
|
-
aiAgentMetricsByAgent(variables, options) {
|
|
625
|
-
return requester(exports.AiAgentMetricsByAgentDocument, variables, options);
|
|
626
|
-
},
|
|
627
|
-
draftAiAgent(variables, options) {
|
|
628
|
-
return requester(exports.DraftAiAgentDocument, variables, options);
|
|
629
|
-
},
|
|
630
|
-
publishAiAgentVersion(variables, options) {
|
|
631
|
-
return requester(exports.PublishAiAgentVersionDocument, variables, options);
|
|
632
|
-
},
|
|
633
|
-
unpublishAiAgentVersion(variables, options) {
|
|
634
|
-
return requester(exports.UnpublishAiAgentVersionDocument, variables, options);
|
|
635
|
-
},
|
|
636
|
-
rollbackAiAgentVersion(variables, options) {
|
|
637
|
-
return requester(exports.RollbackAiAgentVersionDocument, variables, options);
|
|
638
|
-
},
|
|
639
|
-
removeAiAgentVersion(variables, options) {
|
|
640
|
-
return requester(exports.RemoveAiAgentVersionDocument, variables, options);
|
|
641
|
-
},
|
|
642
|
-
removeAiAgent(variables, options) {
|
|
643
|
-
return requester(exports.RemoveAiAgentDocument, variables, options);
|
|
644
|
-
},
|
|
645
|
-
listAiAgentUseCases(variables, options) {
|
|
646
|
-
return requester(exports.ListAiAgentUseCasesDocument, variables, options);
|
|
647
|
-
},
|
|
648
|
-
listAiAgentProcedures(variables, options) {
|
|
649
|
-
return requester(exports.ListAiAgentProceduresDocument, variables, options);
|
|
650
|
-
},
|
|
651
|
-
listAiAgentTools(variables, options) {
|
|
652
|
-
return requester(exports.ListAiAgentToolsDocument, variables, options);
|
|
653
|
-
},
|
|
654
|
-
aiAgentUseCaseOverlap(variables, options) {
|
|
655
|
-
return requester(exports.AiAgentUseCaseOverlapDocument, variables, options);
|
|
656
|
-
},
|
|
657
|
-
aiAgentTrace(variables, options) {
|
|
658
|
-
return requester(exports.AiAgentTraceDocument, variables, options);
|
|
659
|
-
},
|
|
660
|
-
listAiAgentScenarios(variables, options) {
|
|
661
|
-
return requester(exports.ListAiAgentScenariosDocument, variables, options);
|
|
662
|
-
},
|
|
663
|
-
aiAgentRetentionPolicy(variables, options) {
|
|
664
|
-
return requester(exports.AiAgentRetentionPolicyDocument, variables, options);
|
|
665
|
-
},
|
|
666
|
-
aiAgentConversationMetrics(variables, options) {
|
|
667
|
-
return requester(exports.AiAgentConversationMetricsDocument, variables, options);
|
|
668
|
-
},
|
|
669
|
-
aiAgentConversationOutcome(variables, options) {
|
|
670
|
-
return requester(exports.AiAgentConversationOutcomeDocument, variables, options);
|
|
671
|
-
},
|
|
672
|
-
saveAiAgentUseCase(variables, options) {
|
|
673
|
-
return requester(exports.SaveAiAgentUseCaseDocument, variables, options);
|
|
674
|
-
},
|
|
675
|
-
saveAiAgentProcedure(variables, options) {
|
|
676
|
-
return requester(exports.SaveAiAgentProcedureDocument, variables, options);
|
|
677
|
-
},
|
|
678
|
-
removeAiAgentUseCase(variables, options) {
|
|
679
|
-
return requester(exports.RemoveAiAgentUseCaseDocument, variables, options);
|
|
680
|
-
},
|
|
681
|
-
removeAiAgentProcedure(variables, options) {
|
|
682
|
-
return requester(exports.RemoveAiAgentProcedureDocument, variables, options);
|
|
683
|
-
},
|
|
684
|
-
resolveAiAgentApproval(variables, options) {
|
|
685
|
-
return requester(exports.ResolveAiAgentApprovalDocument, variables, options);
|
|
686
|
-
},
|
|
687
|
-
registerAiAgentTool(variables, options) {
|
|
688
|
-
return requester(exports.RegisterAiAgentToolDocument, variables, options);
|
|
689
|
-
},
|
|
690
|
-
unregisterAiAgentTool(variables, options) {
|
|
691
|
-
return requester(exports.UnregisterAiAgentToolDocument, variables, options);
|
|
692
|
-
},
|
|
693
|
-
saveAiAgentScenario(variables, options) {
|
|
694
|
-
return requester(exports.SaveAiAgentScenarioDocument, variables, options);
|
|
695
|
-
},
|
|
696
|
-
checkAiAgentVersion(variables, options) {
|
|
697
|
-
return requester(exports.CheckAiAgentVersionDocument, variables, options);
|
|
698
|
-
},
|
|
699
|
-
aiAgentMetrics(variables, options) {
|
|
700
|
-
return requester(exports.AiAgentMetricsDocument, variables, options);
|
|
701
|
-
},
|
|
702
|
-
aiAgentVersionSpec(variables, options) {
|
|
703
|
-
return requester(exports.AiAgentVersionSpecDocument, variables, options);
|
|
704
|
-
},
|
|
705
|
-
aiAgentRoutingPreview(variables, options) {
|
|
706
|
-
return requester(exports.AiAgentRoutingPreviewDocument, variables, options);
|
|
707
|
-
},
|
|
708
|
-
aiAgentKnowledgeBases(variables, options) {
|
|
709
|
-
return requester(exports.AiAgentKnowledgeBasesDocument, variables, options);
|
|
710
|
-
},
|
|
711
159
|
extractImageMetadata(variables, options) {
|
|
712
160
|
return requester(exports.ExtractImageMetadataDocument, variables, options);
|
|
713
161
|
},
|