@droz-js/sdk 0.19.26 → 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 -983
- package/src/sdks/ai.js +1 -554
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,156 +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
|
-
knowledgeCredentialRef
|
|
116
|
-
knowledgeFallback
|
|
117
|
-
toolIds
|
|
118
|
-
budget {
|
|
119
|
-
maxSteps
|
|
120
|
-
maxToolCalls
|
|
121
|
-
maxTokens
|
|
122
|
-
maxCostMicroUsd
|
|
123
|
-
maxPeriodCostMicroUsd
|
|
124
|
-
onExceeded
|
|
125
|
-
}
|
|
126
|
-
handoff {
|
|
127
|
-
transition
|
|
128
|
-
target
|
|
129
|
-
}
|
|
130
|
-
channels
|
|
131
|
-
}
|
|
132
|
-
`;
|
|
133
|
-
exports.AiAgentVersionWithSpecFragmentDoc = `
|
|
134
|
-
fragment aiAgentVersionWithSpec on AiAgentVersion {
|
|
135
|
-
agentId
|
|
136
|
-
version
|
|
137
|
-
status
|
|
138
|
-
createdAt
|
|
139
|
-
spec {
|
|
140
|
-
...aiAgentSpec
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
`;
|
|
144
|
-
exports.AiAgentListingMetricsFragmentDoc = `
|
|
145
|
-
fragment aiAgentListingMetrics on AiAgentMetrics {
|
|
146
|
-
agentId
|
|
147
|
-
conversations
|
|
148
|
-
conversationsResolved
|
|
149
|
-
conversationsHandoffRequested
|
|
150
|
-
resolutionRate
|
|
151
|
-
resolutionDefinition
|
|
152
|
-
costMicroUsd
|
|
153
|
-
}
|
|
154
|
-
`;
|
|
155
|
-
exports.AiAgentUseCaseFragmentDoc = `
|
|
156
|
-
fragment aiAgentUseCase on AiAgentUseCase {
|
|
157
|
-
id
|
|
158
|
-
name
|
|
159
|
-
subjectDescription
|
|
160
|
-
procedureId
|
|
161
|
-
status
|
|
162
|
-
updatedAt
|
|
163
|
-
}
|
|
164
|
-
`;
|
|
165
|
-
exports.AiAgentProcedureFragmentDoc = `
|
|
166
|
-
fragment aiAgentProcedure on AiAgentProcedure {
|
|
167
|
-
id
|
|
168
|
-
name
|
|
169
|
-
guidanceSteps
|
|
170
|
-
toolIds
|
|
171
|
-
contingency
|
|
172
|
-
executionAutonomy
|
|
173
|
-
status
|
|
174
|
-
updatedAt
|
|
175
|
-
}
|
|
176
|
-
`;
|
|
177
|
-
exports.AiAgentToolFragmentDoc = `
|
|
178
|
-
fragment aiAgentTool on AiAgentTool {
|
|
179
|
-
toolId
|
|
180
|
-
name
|
|
181
|
-
description
|
|
182
|
-
effect
|
|
183
|
-
availability
|
|
184
|
-
requiresAuthenticatedCustomer
|
|
185
|
-
onFailure
|
|
186
|
-
customerScope
|
|
187
|
-
returns
|
|
188
|
-
approval
|
|
189
|
-
parameters {
|
|
190
|
-
name
|
|
191
|
-
type
|
|
192
|
-
required
|
|
193
|
-
description
|
|
194
|
-
grounding
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
`;
|
|
198
|
-
exports.AiAgentTraceFragmentDoc = `
|
|
199
|
-
fragment aiAgentTrace on AiAgentTrace {
|
|
200
|
-
sessionId
|
|
201
|
-
turn
|
|
202
|
-
agentId
|
|
203
|
-
agentVersion
|
|
204
|
-
input
|
|
205
|
-
promptBuilderVersion
|
|
206
|
-
masterRuleVersion
|
|
207
|
-
identificationRequired
|
|
208
|
-
promptFingerprint
|
|
209
|
-
knowledgeOrigins
|
|
210
|
-
outcome
|
|
211
|
-
haltReason
|
|
212
|
-
steps
|
|
213
|
-
answer
|
|
214
|
-
startedAt
|
|
215
|
-
toolCalls {
|
|
216
|
-
toolId
|
|
217
|
-
name
|
|
218
|
-
result
|
|
219
|
-
ok
|
|
220
|
-
connection
|
|
221
|
-
errorClass
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
`;
|
|
225
|
-
exports.AiAgentScenarioFragmentDoc = `
|
|
226
|
-
fragment aiAgentScenario on AiAgentScenario {
|
|
227
|
-
scenarioId
|
|
228
|
-
description
|
|
229
|
-
turns
|
|
230
|
-
expectations
|
|
231
|
-
}
|
|
232
|
-
`;
|
|
233
28
|
exports.NlpInstanceFragmentDoc = `
|
|
234
29
|
fragment nlpInstance on NlpInstance {
|
|
235
30
|
id
|
|
@@ -254,261 +49,6 @@ exports.QnaFragmentFragmentDoc = `
|
|
|
254
49
|
updatedAt
|
|
255
50
|
}
|
|
256
51
|
`;
|
|
257
|
-
exports.ListAiAgentsDocument = `
|
|
258
|
-
query listAiAgents {
|
|
259
|
-
listAiAgents {
|
|
260
|
-
...aiAgentSummary
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
${exports.AiAgentSummaryFragmentDoc}`;
|
|
264
|
-
exports.ListAiAgentVersionsDocument = `
|
|
265
|
-
query listAiAgentVersions($agentId: ID!) {
|
|
266
|
-
listAiAgentVersions(agentId: $agentId) {
|
|
267
|
-
...aiAgentVersion
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
271
|
-
exports.AiAgentMetricsByAgentDocument = `
|
|
272
|
-
query aiAgentMetricsByAgent($input: AiAgentMetricsWindowInput!) {
|
|
273
|
-
aiAgentMetricsByAgent(input: $input) {
|
|
274
|
-
...aiAgentListingMetrics
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
${exports.AiAgentListingMetricsFragmentDoc}`;
|
|
278
|
-
exports.DraftAiAgentDocument = `
|
|
279
|
-
mutation draftAiAgent($input: DraftAiAgentInput!) {
|
|
280
|
-
draftAiAgent(input: $input) {
|
|
281
|
-
...aiAgentVersion
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
285
|
-
exports.PublishAiAgentVersionDocument = `
|
|
286
|
-
mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
287
|
-
publishAiAgentVersion(input: $input) {
|
|
288
|
-
...aiAgentVersion
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
292
|
-
exports.UnpublishAiAgentVersionDocument = `
|
|
293
|
-
mutation unpublishAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
294
|
-
unpublishAiAgentVersion(input: $input) {
|
|
295
|
-
...aiAgentVersion
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
299
|
-
exports.RollbackAiAgentVersionDocument = `
|
|
300
|
-
mutation rollbackAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
301
|
-
rollbackAiAgentVersion(input: $input) {
|
|
302
|
-
...aiAgentVersion
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
306
|
-
exports.RemoveAiAgentVersionDocument = `
|
|
307
|
-
mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
308
|
-
removeAiAgentVersion(input: $input) {
|
|
309
|
-
...aiAgentVersion
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
${exports.AiAgentVersionFragmentDoc}`;
|
|
313
|
-
exports.RemoveAiAgentDocument = `
|
|
314
|
-
mutation removeAiAgent($input: AiAgentRefInput!) {
|
|
315
|
-
removeAiAgent(input: $input)
|
|
316
|
-
}
|
|
317
|
-
`;
|
|
318
|
-
exports.ListAiAgentUseCasesDocument = `
|
|
319
|
-
query listAiAgentUseCases($agentId: ID!) {
|
|
320
|
-
listAiAgentUseCases(agentId: $agentId) {
|
|
321
|
-
...aiAgentUseCase
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
${exports.AiAgentUseCaseFragmentDoc}`;
|
|
325
|
-
exports.ListAiAgentProceduresDocument = `
|
|
326
|
-
query listAiAgentProcedures($agentId: ID!) {
|
|
327
|
-
listAiAgentProcedures(agentId: $agentId) {
|
|
328
|
-
...aiAgentProcedure
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
${exports.AiAgentProcedureFragmentDoc}`;
|
|
332
|
-
exports.ListAiAgentToolsDocument = `
|
|
333
|
-
query listAiAgentTools {
|
|
334
|
-
listAiAgentTools {
|
|
335
|
-
...aiAgentTool
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
${exports.AiAgentToolFragmentDoc}`;
|
|
339
|
-
exports.AiAgentUseCaseOverlapDocument = `
|
|
340
|
-
query aiAgentUseCaseOverlap($agentId: ID!) {
|
|
341
|
-
aiAgentUseCaseOverlap(agentId: $agentId) {
|
|
342
|
-
threshold
|
|
343
|
-
pairs {
|
|
344
|
-
left
|
|
345
|
-
right
|
|
346
|
-
score
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
`;
|
|
351
|
-
exports.AiAgentTraceDocument = `
|
|
352
|
-
query aiAgentTrace($sessionId: ID!) {
|
|
353
|
-
aiAgentTrace(sessionId: $sessionId) {
|
|
354
|
-
...aiAgentTrace
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
${exports.AiAgentTraceFragmentDoc}`;
|
|
358
|
-
exports.ListAiAgentScenariosDocument = `
|
|
359
|
-
query listAiAgentScenarios($agentId: ID!) {
|
|
360
|
-
listAiAgentScenarios(agentId: $agentId) {
|
|
361
|
-
...aiAgentScenario
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
${exports.AiAgentScenarioFragmentDoc}`;
|
|
365
|
-
exports.AiAgentRetentionPolicyDocument = `
|
|
366
|
-
query aiAgentRetentionPolicy {
|
|
367
|
-
aiAgentRetentionPolicy {
|
|
368
|
-
days {
|
|
369
|
-
transcript
|
|
370
|
-
session_state
|
|
371
|
-
long_term_memory
|
|
372
|
-
}
|
|
373
|
-
masksPersonalData
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
`;
|
|
377
|
-
exports.AiAgentConversationMetricsDocument = `
|
|
378
|
-
query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {
|
|
379
|
-
aiAgentConversationMetrics(input: $input) {
|
|
380
|
-
sessionId
|
|
381
|
-
channel
|
|
382
|
-
turns
|
|
383
|
-
startedAt
|
|
384
|
-
lastTurnAt
|
|
385
|
-
totalTokens
|
|
386
|
-
costMicroUsd
|
|
387
|
-
durationMs
|
|
388
|
-
lastOutcome
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
`;
|
|
392
|
-
exports.AiAgentConversationOutcomeDocument = `
|
|
393
|
-
query aiAgentConversationOutcome($sessionId: ID!) {
|
|
394
|
-
aiAgentConversationOutcome(sessionId: $sessionId) {
|
|
395
|
-
sessionId
|
|
396
|
-
agentId
|
|
397
|
-
agentVersion
|
|
398
|
-
resolution
|
|
399
|
-
resolutionDefinition
|
|
400
|
-
collectedData
|
|
401
|
-
collectedDataAvailable
|
|
402
|
-
turns
|
|
403
|
-
startedAt
|
|
404
|
-
lastTurnAt
|
|
405
|
-
haltReason
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
`;
|
|
409
|
-
exports.SaveAiAgentUseCaseDocument = `
|
|
410
|
-
mutation saveAiAgentUseCase($input: SaveAiAgentUseCaseInput!) {
|
|
411
|
-
saveAiAgentUseCase(input: $input) {
|
|
412
|
-
...aiAgentUseCase
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
${exports.AiAgentUseCaseFragmentDoc}`;
|
|
416
|
-
exports.SaveAiAgentProcedureDocument = `
|
|
417
|
-
mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {
|
|
418
|
-
saveAiAgentProcedure(input: $input) {
|
|
419
|
-
...aiAgentProcedure
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
${exports.AiAgentProcedureFragmentDoc}`;
|
|
423
|
-
exports.RemoveAiAgentUseCaseDocument = `
|
|
424
|
-
mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {
|
|
425
|
-
removeAiAgentUseCase(input: $input)
|
|
426
|
-
}
|
|
427
|
-
`;
|
|
428
|
-
exports.RemoveAiAgentProcedureDocument = `
|
|
429
|
-
mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {
|
|
430
|
-
removeAiAgentProcedure(input: $input)
|
|
431
|
-
}
|
|
432
|
-
`;
|
|
433
|
-
exports.ResolveAiAgentApprovalDocument = `
|
|
434
|
-
mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {
|
|
435
|
-
resolveAiAgentApproval(input: $input)
|
|
436
|
-
}
|
|
437
|
-
`;
|
|
438
|
-
exports.RegisterAiAgentToolDocument = `
|
|
439
|
-
mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {
|
|
440
|
-
registerAiAgentTool(input: $input) {
|
|
441
|
-
...aiAgentTool
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
${exports.AiAgentToolFragmentDoc}`;
|
|
445
|
-
exports.UnregisterAiAgentToolDocument = `
|
|
446
|
-
mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {
|
|
447
|
-
unregisterAiAgentTool(input: $input)
|
|
448
|
-
}
|
|
449
|
-
`;
|
|
450
|
-
exports.SaveAiAgentScenarioDocument = `
|
|
451
|
-
mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {
|
|
452
|
-
saveAiAgentScenario(input: $input) {
|
|
453
|
-
...aiAgentScenario
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
${exports.AiAgentScenarioFragmentDoc}`;
|
|
457
|
-
exports.CheckAiAgentVersionDocument = `
|
|
458
|
-
mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {
|
|
459
|
-
checkAiAgentVersion(input: $input) {
|
|
460
|
-
safeToPublish
|
|
461
|
-
reports {
|
|
462
|
-
scenarioId
|
|
463
|
-
runs
|
|
464
|
-
passed
|
|
465
|
-
rate
|
|
466
|
-
}
|
|
467
|
-
regressions {
|
|
468
|
-
scenarioId
|
|
469
|
-
before
|
|
470
|
-
after
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
`;
|
|
475
|
-
exports.AiAgentMetricsDocument = `
|
|
476
|
-
query aiAgentMetrics($input: AiAgentMetricsInput!) {
|
|
477
|
-
aiAgentMetrics(input: $input) {
|
|
478
|
-
...aiAgentListingMetrics
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
${exports.AiAgentListingMetricsFragmentDoc}`;
|
|
482
|
-
exports.AiAgentVersionSpecDocument = `
|
|
483
|
-
query aiAgentVersionSpec($agentId: ID!) {
|
|
484
|
-
listAiAgentVersions(agentId: $agentId) {
|
|
485
|
-
...aiAgentVersionWithSpec
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
${exports.AiAgentVersionWithSpecFragmentDoc}
|
|
489
|
-
${exports.AiAgentSpecFragmentDoc}`;
|
|
490
|
-
exports.AiAgentRoutingPreviewDocument = `
|
|
491
|
-
query aiAgentRoutingPreview($input: AiAgentRoutingPreviewInput!) {
|
|
492
|
-
aiAgentRoutingPreview(input: $input) {
|
|
493
|
-
high
|
|
494
|
-
medium
|
|
495
|
-
examples {
|
|
496
|
-
message
|
|
497
|
-
useCaseId
|
|
498
|
-
score
|
|
499
|
-
confidence
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
`;
|
|
504
|
-
exports.AiAgentKnowledgeBasesDocument = `
|
|
505
|
-
query aiAgentKnowledgeBases($credentialRef: ID!) {
|
|
506
|
-
aiAgentKnowledgeBases(credentialRef: $credentialRef) {
|
|
507
|
-
id
|
|
508
|
-
title
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
`;
|
|
512
52
|
exports.ExtractImageMetadataDocument = `
|
|
513
53
|
mutation extractImageMetadata($input: ExtractImageMetadataInput!) {
|
|
514
54
|
extractImageMetadata(input: $input) {
|
|
@@ -616,99 +156,6 @@ exports.RemoveQnAInstanceDocument = `
|
|
|
616
156
|
${exports.QnaFragmentFragmentDoc}`;
|
|
617
157
|
function getSdk(requester) {
|
|
618
158
|
return {
|
|
619
|
-
listAiAgents(variables, options) {
|
|
620
|
-
return requester(exports.ListAiAgentsDocument, variables, options);
|
|
621
|
-
},
|
|
622
|
-
listAiAgentVersions(variables, options) {
|
|
623
|
-
return requester(exports.ListAiAgentVersionsDocument, variables, options);
|
|
624
|
-
},
|
|
625
|
-
aiAgentMetricsByAgent(variables, options) {
|
|
626
|
-
return requester(exports.AiAgentMetricsByAgentDocument, variables, options);
|
|
627
|
-
},
|
|
628
|
-
draftAiAgent(variables, options) {
|
|
629
|
-
return requester(exports.DraftAiAgentDocument, variables, options);
|
|
630
|
-
},
|
|
631
|
-
publishAiAgentVersion(variables, options) {
|
|
632
|
-
return requester(exports.PublishAiAgentVersionDocument, variables, options);
|
|
633
|
-
},
|
|
634
|
-
unpublishAiAgentVersion(variables, options) {
|
|
635
|
-
return requester(exports.UnpublishAiAgentVersionDocument, variables, options);
|
|
636
|
-
},
|
|
637
|
-
rollbackAiAgentVersion(variables, options) {
|
|
638
|
-
return requester(exports.RollbackAiAgentVersionDocument, variables, options);
|
|
639
|
-
},
|
|
640
|
-
removeAiAgentVersion(variables, options) {
|
|
641
|
-
return requester(exports.RemoveAiAgentVersionDocument, variables, options);
|
|
642
|
-
},
|
|
643
|
-
removeAiAgent(variables, options) {
|
|
644
|
-
return requester(exports.RemoveAiAgentDocument, variables, options);
|
|
645
|
-
},
|
|
646
|
-
listAiAgentUseCases(variables, options) {
|
|
647
|
-
return requester(exports.ListAiAgentUseCasesDocument, variables, options);
|
|
648
|
-
},
|
|
649
|
-
listAiAgentProcedures(variables, options) {
|
|
650
|
-
return requester(exports.ListAiAgentProceduresDocument, variables, options);
|
|
651
|
-
},
|
|
652
|
-
listAiAgentTools(variables, options) {
|
|
653
|
-
return requester(exports.ListAiAgentToolsDocument, variables, options);
|
|
654
|
-
},
|
|
655
|
-
aiAgentUseCaseOverlap(variables, options) {
|
|
656
|
-
return requester(exports.AiAgentUseCaseOverlapDocument, variables, options);
|
|
657
|
-
},
|
|
658
|
-
aiAgentTrace(variables, options) {
|
|
659
|
-
return requester(exports.AiAgentTraceDocument, variables, options);
|
|
660
|
-
},
|
|
661
|
-
listAiAgentScenarios(variables, options) {
|
|
662
|
-
return requester(exports.ListAiAgentScenariosDocument, variables, options);
|
|
663
|
-
},
|
|
664
|
-
aiAgentRetentionPolicy(variables, options) {
|
|
665
|
-
return requester(exports.AiAgentRetentionPolicyDocument, variables, options);
|
|
666
|
-
},
|
|
667
|
-
aiAgentConversationMetrics(variables, options) {
|
|
668
|
-
return requester(exports.AiAgentConversationMetricsDocument, variables, options);
|
|
669
|
-
},
|
|
670
|
-
aiAgentConversationOutcome(variables, options) {
|
|
671
|
-
return requester(exports.AiAgentConversationOutcomeDocument, variables, options);
|
|
672
|
-
},
|
|
673
|
-
saveAiAgentUseCase(variables, options) {
|
|
674
|
-
return requester(exports.SaveAiAgentUseCaseDocument, variables, options);
|
|
675
|
-
},
|
|
676
|
-
saveAiAgentProcedure(variables, options) {
|
|
677
|
-
return requester(exports.SaveAiAgentProcedureDocument, variables, options);
|
|
678
|
-
},
|
|
679
|
-
removeAiAgentUseCase(variables, options) {
|
|
680
|
-
return requester(exports.RemoveAiAgentUseCaseDocument, variables, options);
|
|
681
|
-
},
|
|
682
|
-
removeAiAgentProcedure(variables, options) {
|
|
683
|
-
return requester(exports.RemoveAiAgentProcedureDocument, variables, options);
|
|
684
|
-
},
|
|
685
|
-
resolveAiAgentApproval(variables, options) {
|
|
686
|
-
return requester(exports.ResolveAiAgentApprovalDocument, variables, options);
|
|
687
|
-
},
|
|
688
|
-
registerAiAgentTool(variables, options) {
|
|
689
|
-
return requester(exports.RegisterAiAgentToolDocument, variables, options);
|
|
690
|
-
},
|
|
691
|
-
unregisterAiAgentTool(variables, options) {
|
|
692
|
-
return requester(exports.UnregisterAiAgentToolDocument, variables, options);
|
|
693
|
-
},
|
|
694
|
-
saveAiAgentScenario(variables, options) {
|
|
695
|
-
return requester(exports.SaveAiAgentScenarioDocument, variables, options);
|
|
696
|
-
},
|
|
697
|
-
checkAiAgentVersion(variables, options) {
|
|
698
|
-
return requester(exports.CheckAiAgentVersionDocument, variables, options);
|
|
699
|
-
},
|
|
700
|
-
aiAgentMetrics(variables, options) {
|
|
701
|
-
return requester(exports.AiAgentMetricsDocument, variables, options);
|
|
702
|
-
},
|
|
703
|
-
aiAgentVersionSpec(variables, options) {
|
|
704
|
-
return requester(exports.AiAgentVersionSpecDocument, variables, options);
|
|
705
|
-
},
|
|
706
|
-
aiAgentRoutingPreview(variables, options) {
|
|
707
|
-
return requester(exports.AiAgentRoutingPreviewDocument, variables, options);
|
|
708
|
-
},
|
|
709
|
-
aiAgentKnowledgeBases(variables, options) {
|
|
710
|
-
return requester(exports.AiAgentKnowledgeBasesDocument, variables, options);
|
|
711
|
-
},
|
|
712
159
|
extractImageMetadata(variables, options) {
|
|
713
160
|
return requester(exports.ExtractImageMetadataDocument, variables, options);
|
|
714
161
|
},
|