@droz-js/sdk 0.19.29 → 0.19.31

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/src/sdks/ai.js CHANGED
@@ -1,14 +1,28 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
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;
4
+ exports.SaveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.ResolveAiAgentApprovalDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentMetricsByAgentDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentMetricsReportFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolEffect = exports.ToolAvailability = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = void 0;
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 = exports.AiAgentMetricsDocument = exports.CheckAiAgentVersionDocument = void 0;
5
6
  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 = {}));
6
14
  var AppInstanceStatus;
7
15
  (function (AppInstanceStatus) {
8
16
  AppInstanceStatus["Active"] = "Active";
9
17
  AppInstanceStatus["Failing"] = "Failing";
10
18
  AppInstanceStatus["Inactive"] = "Inactive";
11
19
  })(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 = {}));
12
26
  var Can;
13
27
  (function (Can) {
14
28
  Can["Manage"] = "manage";
@@ -16,8 +30,49 @@ var Can;
16
30
  Can["Remove"] = "remove";
17
31
  Can["Write"] = "write";
18
32
  })(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 = {}));
19
62
  var Typenames;
20
63
  (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";
21
76
  Typenames["Any"] = "Any";
22
77
  Typenames["GraphqlConnections"] = "GraphqlConnections";
23
78
  Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
@@ -25,6 +80,232 @@ var Typenames;
25
80
  Typenames["NlpEmbeddings"] = "NlpEmbeddings";
26
81
  Typenames["QnA"] = "QnA";
27
82
  })(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
+ exports.AiAgentMetricsReportFragmentDoc = `
233
+ fragment aiAgentMetricsReport on AiAgentMetrics {
234
+ agentId
235
+ from
236
+ to
237
+ truncated
238
+ conversations
239
+ conversationsResolved
240
+ conversationsInconclusive
241
+ conversationsHandoffRequested
242
+ resolutionRate
243
+ resolutionDefinition
244
+ escalatedToHuman
245
+ escalatedToFlow
246
+ escalatedTargetUndeclared
247
+ handoffsByReason {
248
+ key
249
+ count
250
+ }
251
+ humanRequestedTurns
252
+ costMicroUsd
253
+ costMicroUsdPerResolvedConversation
254
+ unpricedTurns
255
+ inputTokens
256
+ outputTokens
257
+ totalTokens
258
+ cachedInputTokens
259
+ cachedTurns
260
+ llmCalls
261
+ turnsByModel {
262
+ key
263
+ count
264
+ }
265
+ avgTurnDurationMs
266
+ p95TurnDurationMs
267
+ avgLlmLatencyMs
268
+ turns
269
+ answeredTurns
270
+ answeredWithFailedConnectionTurns
271
+ unansweredTurns
272
+ unansweredDefinition
273
+ topTopics {
274
+ key
275
+ count
276
+ }
277
+ topUnansweredQuestions {
278
+ key
279
+ count
280
+ }
281
+ blockedTurns
282
+ blocksByCategory {
283
+ key
284
+ count
285
+ }
286
+ haltedTurns
287
+ haltReasons {
288
+ key
289
+ count
290
+ }
291
+ budgetExceededTurns
292
+ identificationRequiredTurns
293
+ toolCalls
294
+ toolCallsFailed
295
+ toolErrorsByConnection {
296
+ key
297
+ count
298
+ }
299
+ toolErrorsByClass {
300
+ key
301
+ count
302
+ }
303
+ knowledgeRetrieved
304
+ knowledgeEmpty
305
+ knowledgeUnavailable
306
+ knowledgeSkipped
307
+ }
308
+ `;
28
309
  exports.NlpInstanceFragmentDoc = `
29
310
  fragment nlpInstance on NlpInstance {
30
311
  id
@@ -49,6 +330,273 @@ exports.QnaFragmentFragmentDoc = `
49
330
  updatedAt
50
331
  }
51
332
  `;
333
+ exports.ListAiAgentsDocument = `
334
+ query listAiAgents {
335
+ listAiAgents {
336
+ ...aiAgentSummary
337
+ }
338
+ }
339
+ ${exports.AiAgentSummaryFragmentDoc}`;
340
+ exports.ListAiAgentVersionsDocument = `
341
+ query listAiAgentVersions($agentId: ID!) {
342
+ listAiAgentVersions(agentId: $agentId) {
343
+ ...aiAgentVersion
344
+ }
345
+ }
346
+ ${exports.AiAgentVersionFragmentDoc}`;
347
+ exports.AiAgentMetricsByAgentDocument = `
348
+ query aiAgentMetricsByAgent($input: AiAgentMetricsWindowInput!) {
349
+ aiAgentMetricsByAgent(input: $input) {
350
+ ...aiAgentListingMetrics
351
+ }
352
+ }
353
+ ${exports.AiAgentListingMetricsFragmentDoc}`;
354
+ exports.DraftAiAgentDocument = `
355
+ mutation draftAiAgent($input: DraftAiAgentInput!) {
356
+ draftAiAgent(input: $input) {
357
+ ...aiAgentVersion
358
+ }
359
+ }
360
+ ${exports.AiAgentVersionFragmentDoc}`;
361
+ exports.PublishAiAgentVersionDocument = `
362
+ mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {
363
+ publishAiAgentVersion(input: $input) {
364
+ ...aiAgentVersion
365
+ }
366
+ }
367
+ ${exports.AiAgentVersionFragmentDoc}`;
368
+ exports.UnpublishAiAgentVersionDocument = `
369
+ mutation unpublishAiAgentVersion($input: AiAgentVersionRefInput!) {
370
+ unpublishAiAgentVersion(input: $input) {
371
+ ...aiAgentVersion
372
+ }
373
+ }
374
+ ${exports.AiAgentVersionFragmentDoc}`;
375
+ exports.RollbackAiAgentVersionDocument = `
376
+ mutation rollbackAiAgentVersion($input: AiAgentVersionRefInput!) {
377
+ rollbackAiAgentVersion(input: $input) {
378
+ ...aiAgentVersion
379
+ }
380
+ }
381
+ ${exports.AiAgentVersionFragmentDoc}`;
382
+ exports.RemoveAiAgentVersionDocument = `
383
+ mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {
384
+ removeAiAgentVersion(input: $input) {
385
+ ...aiAgentVersion
386
+ }
387
+ }
388
+ ${exports.AiAgentVersionFragmentDoc}`;
389
+ exports.RemoveAiAgentDocument = `
390
+ mutation removeAiAgent($input: AiAgentRefInput!) {
391
+ removeAiAgent(input: $input)
392
+ }
393
+ `;
394
+ exports.ListAiAgentUseCasesDocument = `
395
+ query listAiAgentUseCases($agentId: ID!) {
396
+ listAiAgentUseCases(agentId: $agentId) {
397
+ ...aiAgentUseCase
398
+ }
399
+ }
400
+ ${exports.AiAgentUseCaseFragmentDoc}`;
401
+ exports.ListAiAgentProceduresDocument = `
402
+ query listAiAgentProcedures($agentId: ID!) {
403
+ listAiAgentProcedures(agentId: $agentId) {
404
+ ...aiAgentProcedure
405
+ }
406
+ }
407
+ ${exports.AiAgentProcedureFragmentDoc}`;
408
+ exports.ListAiAgentToolsDocument = `
409
+ query listAiAgentTools {
410
+ listAiAgentTools {
411
+ ...aiAgentTool
412
+ }
413
+ }
414
+ ${exports.AiAgentToolFragmentDoc}`;
415
+ exports.AiAgentUseCaseOverlapDocument = `
416
+ query aiAgentUseCaseOverlap($agentId: ID!) {
417
+ aiAgentUseCaseOverlap(agentId: $agentId) {
418
+ threshold
419
+ pairs {
420
+ left
421
+ right
422
+ score
423
+ }
424
+ }
425
+ }
426
+ `;
427
+ exports.AiAgentTraceDocument = `
428
+ query aiAgentTrace($sessionId: ID!) {
429
+ aiAgentTrace(sessionId: $sessionId) {
430
+ ...aiAgentTrace
431
+ }
432
+ }
433
+ ${exports.AiAgentTraceFragmentDoc}`;
434
+ exports.ListAiAgentScenariosDocument = `
435
+ query listAiAgentScenarios($agentId: ID!) {
436
+ listAiAgentScenarios(agentId: $agentId) {
437
+ ...aiAgentScenario
438
+ }
439
+ }
440
+ ${exports.AiAgentScenarioFragmentDoc}`;
441
+ exports.SetAiAgentRetentionPolicyDocument = `
442
+ mutation setAiAgentRetentionPolicy($input: AiAgentRetentionPolicyInput!) {
443
+ setAiAgentRetentionPolicy(input: $input) {
444
+ days {
445
+ transcript
446
+ session_state
447
+ long_term_memory
448
+ }
449
+ masksPersonalData
450
+ }
451
+ }
452
+ `;
453
+ exports.AiAgentRetentionPolicyDocument = `
454
+ query aiAgentRetentionPolicy {
455
+ aiAgentRetentionPolicy {
456
+ days {
457
+ transcript
458
+ session_state
459
+ long_term_memory
460
+ }
461
+ masksPersonalData
462
+ }
463
+ }
464
+ `;
465
+ exports.AiAgentConversationMetricsDocument = `
466
+ query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {
467
+ aiAgentConversationMetrics(input: $input) {
468
+ sessionId
469
+ channel
470
+ turns
471
+ startedAt
472
+ lastTurnAt
473
+ totalTokens
474
+ costMicroUsd
475
+ durationMs
476
+ lastOutcome
477
+ }
478
+ }
479
+ `;
480
+ exports.AiAgentConversationOutcomeDocument = `
481
+ query aiAgentConversationOutcome($sessionId: ID!) {
482
+ aiAgentConversationOutcome(sessionId: $sessionId) {
483
+ sessionId
484
+ agentId
485
+ agentVersion
486
+ resolution
487
+ resolutionDefinition
488
+ collectedData
489
+ collectedDataAvailable
490
+ turns
491
+ startedAt
492
+ lastTurnAt
493
+ haltReason
494
+ }
495
+ }
496
+ `;
497
+ exports.SaveAiAgentUseCaseDocument = `
498
+ mutation saveAiAgentUseCase($input: SaveAiAgentUseCaseInput!) {
499
+ saveAiAgentUseCase(input: $input) {
500
+ ...aiAgentUseCase
501
+ }
502
+ }
503
+ ${exports.AiAgentUseCaseFragmentDoc}`;
504
+ exports.SaveAiAgentProcedureDocument = `
505
+ mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {
506
+ saveAiAgentProcedure(input: $input) {
507
+ ...aiAgentProcedure
508
+ }
509
+ }
510
+ ${exports.AiAgentProcedureFragmentDoc}`;
511
+ exports.RemoveAiAgentUseCaseDocument = `
512
+ mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {
513
+ removeAiAgentUseCase(input: $input)
514
+ }
515
+ `;
516
+ exports.RemoveAiAgentProcedureDocument = `
517
+ mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {
518
+ removeAiAgentProcedure(input: $input)
519
+ }
520
+ `;
521
+ exports.ResolveAiAgentApprovalDocument = `
522
+ mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {
523
+ resolveAiAgentApproval(input: $input)
524
+ }
525
+ `;
526
+ exports.RegisterAiAgentToolDocument = `
527
+ mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {
528
+ registerAiAgentTool(input: $input) {
529
+ ...aiAgentTool
530
+ }
531
+ }
532
+ ${exports.AiAgentToolFragmentDoc}`;
533
+ exports.UnregisterAiAgentToolDocument = `
534
+ mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {
535
+ unregisterAiAgentTool(input: $input)
536
+ }
537
+ `;
538
+ exports.SaveAiAgentScenarioDocument = `
539
+ mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {
540
+ saveAiAgentScenario(input: $input) {
541
+ ...aiAgentScenario
542
+ }
543
+ }
544
+ ${exports.AiAgentScenarioFragmentDoc}`;
545
+ exports.CheckAiAgentVersionDocument = `
546
+ mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {
547
+ checkAiAgentVersion(input: $input) {
548
+ safeToPublish
549
+ reports {
550
+ scenarioId
551
+ runs
552
+ passed
553
+ rate
554
+ }
555
+ regressions {
556
+ scenarioId
557
+ before
558
+ after
559
+ }
560
+ }
561
+ }
562
+ `;
563
+ exports.AiAgentMetricsDocument = `
564
+ query aiAgentMetrics($input: AiAgentMetricsInput!) {
565
+ aiAgentMetrics(input: $input) {
566
+ ...aiAgentMetricsReport
567
+ }
568
+ }
569
+ ${exports.AiAgentMetricsReportFragmentDoc}`;
570
+ exports.AiAgentVersionSpecDocument = `
571
+ query aiAgentVersionSpec($agentId: ID!) {
572
+ listAiAgentVersions(agentId: $agentId) {
573
+ ...aiAgentVersionWithSpec
574
+ }
575
+ }
576
+ ${exports.AiAgentVersionWithSpecFragmentDoc}
577
+ ${exports.AiAgentSpecFragmentDoc}`;
578
+ exports.AiAgentRoutingPreviewDocument = `
579
+ query aiAgentRoutingPreview($input: AiAgentRoutingPreviewInput!) {
580
+ aiAgentRoutingPreview(input: $input) {
581
+ high
582
+ medium
583
+ examples {
584
+ message
585
+ useCaseId
586
+ score
587
+ confidence
588
+ }
589
+ }
590
+ }
591
+ `;
592
+ exports.AiAgentKnowledgeBasesDocument = `
593
+ query aiAgentKnowledgeBases {
594
+ aiAgentKnowledgeBases {
595
+ id
596
+ title
597
+ }
598
+ }
599
+ `;
52
600
  exports.ExtractImageMetadataDocument = `
53
601
  mutation extractImageMetadata($input: ExtractImageMetadataInput!) {
54
602
  extractImageMetadata(input: $input) {
@@ -156,6 +704,102 @@ exports.RemoveQnAInstanceDocument = `
156
704
  ${exports.QnaFragmentFragmentDoc}`;
157
705
  function getSdk(requester) {
158
706
  return {
707
+ listAiAgents(variables, options) {
708
+ return requester(exports.ListAiAgentsDocument, variables, options);
709
+ },
710
+ listAiAgentVersions(variables, options) {
711
+ return requester(exports.ListAiAgentVersionsDocument, variables, options);
712
+ },
713
+ aiAgentMetricsByAgent(variables, options) {
714
+ return requester(exports.AiAgentMetricsByAgentDocument, variables, options);
715
+ },
716
+ draftAiAgent(variables, options) {
717
+ return requester(exports.DraftAiAgentDocument, variables, options);
718
+ },
719
+ publishAiAgentVersion(variables, options) {
720
+ return requester(exports.PublishAiAgentVersionDocument, variables, options);
721
+ },
722
+ unpublishAiAgentVersion(variables, options) {
723
+ return requester(exports.UnpublishAiAgentVersionDocument, variables, options);
724
+ },
725
+ rollbackAiAgentVersion(variables, options) {
726
+ return requester(exports.RollbackAiAgentVersionDocument, variables, options);
727
+ },
728
+ removeAiAgentVersion(variables, options) {
729
+ return requester(exports.RemoveAiAgentVersionDocument, variables, options);
730
+ },
731
+ removeAiAgent(variables, options) {
732
+ return requester(exports.RemoveAiAgentDocument, variables, options);
733
+ },
734
+ listAiAgentUseCases(variables, options) {
735
+ return requester(exports.ListAiAgentUseCasesDocument, variables, options);
736
+ },
737
+ listAiAgentProcedures(variables, options) {
738
+ return requester(exports.ListAiAgentProceduresDocument, variables, options);
739
+ },
740
+ listAiAgentTools(variables, options) {
741
+ return requester(exports.ListAiAgentToolsDocument, variables, options);
742
+ },
743
+ aiAgentUseCaseOverlap(variables, options) {
744
+ return requester(exports.AiAgentUseCaseOverlapDocument, variables, options);
745
+ },
746
+ aiAgentTrace(variables, options) {
747
+ return requester(exports.AiAgentTraceDocument, variables, options);
748
+ },
749
+ listAiAgentScenarios(variables, options) {
750
+ return requester(exports.ListAiAgentScenariosDocument, variables, options);
751
+ },
752
+ setAiAgentRetentionPolicy(variables, options) {
753
+ return requester(exports.SetAiAgentRetentionPolicyDocument, variables, options);
754
+ },
755
+ aiAgentRetentionPolicy(variables, options) {
756
+ return requester(exports.AiAgentRetentionPolicyDocument, variables, options);
757
+ },
758
+ aiAgentConversationMetrics(variables, options) {
759
+ return requester(exports.AiAgentConversationMetricsDocument, variables, options);
760
+ },
761
+ aiAgentConversationOutcome(variables, options) {
762
+ return requester(exports.AiAgentConversationOutcomeDocument, variables, options);
763
+ },
764
+ saveAiAgentUseCase(variables, options) {
765
+ return requester(exports.SaveAiAgentUseCaseDocument, variables, options);
766
+ },
767
+ saveAiAgentProcedure(variables, options) {
768
+ return requester(exports.SaveAiAgentProcedureDocument, variables, options);
769
+ },
770
+ removeAiAgentUseCase(variables, options) {
771
+ return requester(exports.RemoveAiAgentUseCaseDocument, variables, options);
772
+ },
773
+ removeAiAgentProcedure(variables, options) {
774
+ return requester(exports.RemoveAiAgentProcedureDocument, variables, options);
775
+ },
776
+ resolveAiAgentApproval(variables, options) {
777
+ return requester(exports.ResolveAiAgentApprovalDocument, variables, options);
778
+ },
779
+ registerAiAgentTool(variables, options) {
780
+ return requester(exports.RegisterAiAgentToolDocument, variables, options);
781
+ },
782
+ unregisterAiAgentTool(variables, options) {
783
+ return requester(exports.UnregisterAiAgentToolDocument, variables, options);
784
+ },
785
+ saveAiAgentScenario(variables, options) {
786
+ return requester(exports.SaveAiAgentScenarioDocument, variables, options);
787
+ },
788
+ checkAiAgentVersion(variables, options) {
789
+ return requester(exports.CheckAiAgentVersionDocument, variables, options);
790
+ },
791
+ aiAgentMetrics(variables, options) {
792
+ return requester(exports.AiAgentMetricsDocument, variables, options);
793
+ },
794
+ aiAgentVersionSpec(variables, options) {
795
+ return requester(exports.AiAgentVersionSpecDocument, variables, options);
796
+ },
797
+ aiAgentRoutingPreview(variables, options) {
798
+ return requester(exports.AiAgentRoutingPreviewDocument, variables, options);
799
+ },
800
+ aiAgentKnowledgeBases(variables, options) {
801
+ return requester(exports.AiAgentKnowledgeBasesDocument, variables, options);
802
+ },
159
803
  extractImageMetadata(variables, options) {
160
804
  return requester(exports.ExtractImageMetadataDocument, variables, options);
161
805
  },