@droz-js/sdk 0.25.17 → 0.25.19
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/nucleus.d.ts +4 -0
- package/src/sdks/ai.d.ts +25 -298
- package/src/sdks/ai.js +12 -1
- package/src/sdks/chatwidget.d.ts +6 -4
- package/src/sdks/chatwidget.js +2 -0
- package/src/sdks/nucleus.d.ts +36 -16
- package/src/sdks/nucleus.js +17 -2
package/src/sdks/ai.d.ts
CHANGED
|
@@ -138,12 +138,9 @@ export type AiAgentApproval = {
|
|
|
138
138
|
customerId?: Maybe<Scalars['String']['output']>;
|
|
139
139
|
decidedAt?: Maybe<Scalars['Number']['output']>;
|
|
140
140
|
decidedBy?: Maybe<Scalars['String']['output']>;
|
|
141
|
-
/** Epoch ms. Depois disso a pendencia nao pode mais ser decidida. */
|
|
142
141
|
expiresAt: Scalars['Number']['output'];
|
|
143
|
-
/** Epoch ms. Junto de `sessionId`, identifica a pendencia em `resolveAiAgentApproval`. */
|
|
144
142
|
requestedAt: Scalars['Number']['output'];
|
|
145
143
|
sessionId: Scalars['ID']['output'];
|
|
146
|
-
/** `pending`, `approved`, `rejected` ou `expired`. */
|
|
147
144
|
status: Scalars['String']['output'];
|
|
148
145
|
toolId: Scalars['ID']['output'];
|
|
149
146
|
toolName: Scalars['String']['output'];
|
|
@@ -153,19 +150,9 @@ export type AiAgentAuthoringRefInput = {
|
|
|
153
150
|
id: Scalars['ID']['input'];
|
|
154
151
|
};
|
|
155
152
|
export type AiAgentBudget = {
|
|
156
|
-
/**
|
|
157
|
-
* Teto de gasto da conversa em micro-dolar (1e-6 USD). So vale para chamada com preco conhecido:
|
|
158
|
-
* modelo fora da tabela de preco produz custo desconhecido, nunca zero. Combine com `maxTokens`,
|
|
159
|
-
* que sempre vale.
|
|
160
|
-
*/
|
|
161
153
|
maxCostMicroUsd?: Maybe<Scalars['Int']['output']>;
|
|
162
|
-
/**
|
|
163
|
-
* Teto de gasto do agente no periodo (mes calendario UTC), em micro-dolar. Ausente = sem teto de
|
|
164
|
-
* periodo. Independe de `maxCostMicroUsd`, que vale por conversa.
|
|
165
|
-
*/
|
|
166
154
|
maxPeriodCostMicroUsd?: Maybe<Scalars['Int']['output']>;
|
|
167
155
|
maxSteps: Scalars['Int']['output'];
|
|
168
|
-
/** Teto de token da conversa inteira. Ausente = sem teto de token. */
|
|
169
156
|
maxTokens?: Maybe<Scalars['Int']['output']>;
|
|
170
157
|
maxToolCalls: Scalars['Int']['output'];
|
|
171
158
|
onExceeded: BudgetExceededAction;
|
|
@@ -205,9 +192,7 @@ export type AiAgentCheckAuthoring = {
|
|
|
205
192
|
useCases: Scalars['Int']['output'];
|
|
206
193
|
};
|
|
207
194
|
export type AiAgentCheckLimits = {
|
|
208
|
-
/** Já dividido pelos cenários deste agente: é o maior valor que a suíte dele sustenta. */
|
|
209
195
|
maxRunsPerScenario: Scalars['Int']['output'];
|
|
210
|
-
/** Teto do total, cenários × execuções. */
|
|
211
196
|
maxSuiteRuns: Scalars['Int']['output'];
|
|
212
197
|
minRunsPerScenario: Scalars['Int']['output'];
|
|
213
198
|
scenarioCount: Scalars['Int']['output'];
|
|
@@ -216,25 +201,19 @@ export type AiAgentCheckResult = {
|
|
|
216
201
|
authoring?: Maybe<AiAgentCheckAuthoring>;
|
|
217
202
|
regressions: Array<AiAgentRegression>;
|
|
218
203
|
reports: Array<AiAgentScenarioReport>;
|
|
219
|
-
/** Falso quando um cenário piorou além da tolerância em relação à versão live. */
|
|
220
204
|
safeToPublish: Scalars['Boolean']['output'];
|
|
221
205
|
};
|
|
222
206
|
export type AiAgentCheckRun = {
|
|
223
207
|
agentId: Scalars['ID']['output'];
|
|
224
|
-
/** Execuções já terminadas. Avança durante a suíte, não só no fim. */
|
|
225
208
|
completedRuns: Scalars['Int']['output'];
|
|
226
|
-
/** Presente só quando a execução falhou. */
|
|
227
209
|
error?: Maybe<Scalars['String']['output']>;
|
|
228
|
-
/** Ferramentas vinculadas que a versão avaliada não oferece ao modelo, pelo catálogo atual. Nulo quando a versão foi removida. */
|
|
229
210
|
excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
|
|
230
211
|
finishedAt?: Maybe<Scalars['Number']['output']>;
|
|
231
212
|
requestedAt: Scalars['Number']['output'];
|
|
232
|
-
/** Presente só quando a execução terminou bem. */
|
|
233
213
|
result?: Maybe<AiAgentCheckResult>;
|
|
234
214
|
runId: Scalars['ID']['output'];
|
|
235
215
|
startedAt?: Maybe<Scalars['Number']['output']>;
|
|
236
216
|
status: AiAgentCheckRunStatus;
|
|
237
|
-
/** Execuções que a suíte terá ao todo, definido no momento do pedido. */
|
|
238
217
|
totalRuns: Scalars['Int']['output'];
|
|
239
218
|
version: Scalars['Int']['output'];
|
|
240
219
|
};
|
|
@@ -253,13 +232,10 @@ export type AiAgentClassificationCount = {
|
|
|
253
232
|
export type AiAgentCompetingPair = {
|
|
254
233
|
left: Scalars['ID']['output'];
|
|
255
234
|
right: Scalars['ID']['output'];
|
|
256
|
-
/** Similaridade entre as duas descricoes, de 0 a 1. */
|
|
257
235
|
score: Scalars['Number']['output'];
|
|
258
236
|
};
|
|
259
237
|
export type AiAgentContactReason = {
|
|
260
|
-
/** Nome do caso de uso publicado, item do `can` ou `Outro`. Analise anterior a versao 2 pode trazer `Fora do escopo`. */
|
|
261
238
|
name: Scalars['String']['output'];
|
|
262
|
-
/** Mascarado quando a politica de retencao pede. */
|
|
263
239
|
other?: Maybe<Scalars['String']['output']>;
|
|
264
240
|
source: AiAgentContactReasonSource;
|
|
265
241
|
tag?: Maybe<Scalars['String']['output']>;
|
|
@@ -278,14 +254,12 @@ export type AiAgentConversationAction = {
|
|
|
278
254
|
at: Scalars['Number']['output'];
|
|
279
255
|
name: Scalars['String']['output'];
|
|
280
256
|
ok: Scalars['Boolean']['output'];
|
|
281
|
-
/** Campos que a ferramenta declarou devolver; mascarado quando a politica de retencao pede. */
|
|
282
257
|
result: Scalars['String']['output'];
|
|
283
258
|
toolId: Scalars['ID']['output'];
|
|
284
259
|
};
|
|
285
260
|
export type AiAgentConversationAnalysis = {
|
|
286
261
|
agentClarity?: Maybe<Scalars['Int']['output']>;
|
|
287
262
|
agentScore?: Maybe<Scalars['Int']['output']>;
|
|
288
|
-
/** `excelente` a partir de 85, `bom` de 60, `regular` de 40. */
|
|
289
263
|
agentScoreBand?: Maybe<AiAgentScoreBand>;
|
|
290
264
|
analysisVersion: Scalars['Int']['output'];
|
|
291
265
|
analyzedAt: Scalars['Number']['output'];
|
|
@@ -295,21 +269,17 @@ export type AiAgentConversationAnalysis = {
|
|
|
295
269
|
contactReasonSource?: Maybe<AiAgentContactReasonSource>;
|
|
296
270
|
contactReasonTag?: Maybe<Scalars['String']['output']>;
|
|
297
271
|
costMicroUsd?: Maybe<Scalars['Number']['output']>;
|
|
298
|
-
/** De 0 a 100; 100 e o cliente nao ter precisado se esforcar. */
|
|
299
272
|
customerEffortScore?: Maybe<Scalars['Int']['output']>;
|
|
300
|
-
/** Estimativa do modelo, de 1 a 5; nao e a pesquisa respondida pelo cliente. */
|
|
301
273
|
estimatedSatisfaction?: Maybe<Scalars['Int']['output']>;
|
|
302
274
|
failed?: Maybe<Scalars['Boolean']['output']>;
|
|
303
275
|
failureReason?: Maybe<AiAgentAnalysisFailureReason>;
|
|
304
276
|
humanRequests?: Maybe<Scalars['Int']['output']>;
|
|
305
|
-
/** Mascaradas quando a politica de retencao pede. */
|
|
306
277
|
knowledgeGaps: Array<Scalars['String']['output']>;
|
|
307
278
|
model?: Maybe<Scalars['String']['output']>;
|
|
308
279
|
repeatedInformation?: Maybe<Scalars['Boolean']['output']>;
|
|
309
280
|
riskAlerts: Array<AiAgentRiskAlert>;
|
|
310
281
|
sentimentEnd?: Maybe<AiAgentSentiment>;
|
|
311
282
|
sentimentStart?: Maybe<AiAgentSentiment>;
|
|
312
|
-
/** Mascarado quando a politica de retencao pede. */
|
|
313
283
|
summary?: Maybe<Scalars['String']['output']>;
|
|
314
284
|
};
|
|
315
285
|
export declare enum AiAgentConversationClass {
|
|
@@ -318,7 +288,6 @@ export declare enum AiAgentConversationClass {
|
|
|
318
288
|
Unresolved = "UNRESOLVED"
|
|
319
289
|
}
|
|
320
290
|
export type AiAgentConversationClassification = {
|
|
321
|
-
/** Ausente enquanto a conversa esta em andamento. */
|
|
322
291
|
classification?: Maybe<AiAgentConversationClass>;
|
|
323
292
|
consumesAllowance: Scalars['Boolean']['output'];
|
|
324
293
|
definitionVersion: Scalars['String']['output'];
|
|
@@ -346,7 +315,6 @@ export type AiAgentConversationMetrics = {
|
|
|
346
315
|
channelType?: Maybe<AiAgentChannelType>;
|
|
347
316
|
contactReason?: Maybe<Scalars['String']['output']>;
|
|
348
317
|
contactReasonTag?: Maybe<Scalars['String']['output']>;
|
|
349
|
-
/** Ausente quando a sessão não tem conversa registrada: a linha cobre a sessão inteira. */
|
|
350
318
|
conversationId?: Maybe<Scalars['ID']['output']>;
|
|
351
319
|
costMicroUsd: Scalars['Number']['output'];
|
|
352
320
|
durationMs: Scalars['Number']['output'];
|
|
@@ -384,49 +352,33 @@ export type AiAgentConversationMetricsInput = {
|
|
|
384
352
|
useCaseId?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
385
353
|
};
|
|
386
354
|
export type AiAgentConversationMetricsPage = {
|
|
387
|
-
/** Intervalo de `lastTurnAt` do conjunto filtrado pelos outros filtros, sem `dateFrom` e `dateTo`. Ausente quando o conjunto é vazio. */
|
|
388
355
|
dateRange?: Maybe<AiAgentConversationDateRange>;
|
|
389
|
-
/** Cada faceta conta sobre o conjunto filtrado pelos outros filtros, sem o seu próprio. */
|
|
390
356
|
facets: Array<AiAgentConversationFacet>;
|
|
391
|
-
/** true quando há conversa com alerta de risco no conjunto filtrado pelos outros filtros, sem `hasRiskAlert`. Mesma base do facet `riskAlert`. */
|
|
392
357
|
hasRiskAlerts: Scalars['Boolean']['output'];
|
|
393
358
|
items: Array<AiAgentConversationMetrics>;
|
|
394
359
|
limit: Scalars['Number']['output'];
|
|
395
360
|
offset: Scalars['Number']['output'];
|
|
396
361
|
total: Scalars['Number']['output'];
|
|
397
|
-
/** true quando o teto de leitura foi atingido: a página cobre parte do período. */
|
|
398
362
|
truncated: Scalars['Boolean']['output'];
|
|
399
363
|
};
|
|
400
364
|
export type AiAgentConversationOutcome = {
|
|
401
365
|
actions: Array<AiAgentConversationAction>;
|
|
402
366
|
agentId: Scalars['ID']['output'];
|
|
403
|
-
/** Escrito pelo modelo ao transferir ou encerrar; nao substitui o que foi medido. */
|
|
404
367
|
agentSummary?: Maybe<Scalars['String']['output']>;
|
|
405
368
|
agentVersion: Scalars['String']['output'];
|
|
406
|
-
/** Ausente ate a conversa encerrada ser analisada. */
|
|
407
369
|
analysis?: Maybe<AiAgentConversationAnalysis>;
|
|
408
370
|
channelType?: Maybe<AiAgentChannelType>;
|
|
409
371
|
classification: AiAgentConversationClassification;
|
|
410
|
-
/** Fatos da sessao; chave e valor mascarados quando a politica de retencao pede. */
|
|
411
372
|
collectedData: Scalars['JSON']['output'];
|
|
412
|
-
/** false quando a retencao ja apagou a sessao. */
|
|
413
373
|
collectedDataAvailable: Scalars['Boolean']['output'];
|
|
414
374
|
contactReason?: Maybe<AiAgentContactReason>;
|
|
415
|
-
/**
|
|
416
|
-
* Presente quando a ficha foi pedida por conversa: turnos, classificação e resolução só dela. A análise é
|
|
417
|
-
* gravada por sessão e só vem na última conversa da sessão.
|
|
418
|
-
*/
|
|
419
375
|
conversationId?: Maybe<Scalars['ID']['output']>;
|
|
420
|
-
/** Motivo da parada do ultimo turno, quando houve. */
|
|
421
376
|
haltReason?: Maybe<Scalars['String']['output']>;
|
|
422
|
-
/** Motivo do ultimo pedido de pessoa, com os mesmos valores de `handoffsByReason`. */
|
|
423
377
|
handoffReason?: Maybe<AiAgentHandoffReason>;
|
|
424
378
|
lastTurnAt: Scalars['Number']['output'];
|
|
425
|
-
/** O que o agente disse ao consumidor que vai acontecer. */
|
|
426
379
|
promisedNextStep?: Maybe<Scalars['String']['output']>;
|
|
427
380
|
resolution: Scalars['String']['output'];
|
|
428
381
|
resolutionDefinition: Scalars['String']['output'];
|
|
429
|
-
/** Fim da janela de reversão por recontato. Ausente quando a conversa não reverte. */
|
|
430
382
|
reversibleUntil?: Maybe<Scalars['Number']['output']>;
|
|
431
383
|
sessionId: Scalars['ID']['output'];
|
|
432
384
|
startedAt: Scalars['Number']['output'];
|
|
@@ -488,10 +440,8 @@ export declare enum AiAgentConversationSubcategory {
|
|
|
488
440
|
}
|
|
489
441
|
export type AiAgentDashboard = {
|
|
490
442
|
abandonment: AiAgentDashboardIndicator;
|
|
491
|
-
/** Absent when no dispatch was sent in the window. Absent is not zero. */
|
|
492
443
|
activeDispatches?: Maybe<AiAgentDashboardActiveDispatches>;
|
|
493
444
|
agentId: Scalars['ID']['output'];
|
|
494
|
-
/** Absent when no conversation was analyzed in the window. Absent is not zero. */
|
|
495
445
|
agentScoreAvg?: Maybe<Scalars['Float']['output']>;
|
|
496
446
|
agentScoreAvgBand?: Maybe<AiAgentScoreBand>;
|
|
497
447
|
analysesTruncated: Scalars['Boolean']['output'];
|
|
@@ -503,7 +453,6 @@ export type AiAgentDashboard = {
|
|
|
503
453
|
conversationsProvisional: Scalars['Number']['output'];
|
|
504
454
|
handoffNeed: AiAgentDashboardIndicator;
|
|
505
455
|
handoffProcedure: AiAgentDashboardIndicator;
|
|
506
|
-
/** Do agente, não da janela. Vira true na primeira conversa aberta pela resposta a um disparo ativo. */
|
|
507
456
|
hasActiveDispatches: Scalars['Boolean']['output'];
|
|
508
457
|
knowledgeGaps: Array<AiAgentDashboardKnowledgeGap>;
|
|
509
458
|
previousWindow: AiAgentDashboardWindow;
|
|
@@ -514,18 +463,15 @@ export type AiAgentDashboard = {
|
|
|
514
463
|
sentimentAtStart: Array<AiAgentDashboardSentiment>;
|
|
515
464
|
series: Array<AiAgentDashboardSeriesPoint>;
|
|
516
465
|
timezone: Scalars['String']['output'];
|
|
517
|
-
/** true when the numbers cover part of the period: the read cap was reached in any window, or the search index does not cover the whole window. */
|
|
518
466
|
truncated: Scalars['Boolean']['output'];
|
|
519
467
|
unresolved: AiAgentDashboardIndicator;
|
|
520
468
|
window: AiAgentDashboardWindow;
|
|
521
469
|
};
|
|
522
|
-
/** `answered` and `unanswered` are the share of the dispatches whose window is closed, one decimal. Absent while none is closed. */
|
|
523
470
|
export type AiAgentDashboardActiveDispatches = {
|
|
524
471
|
answered: AiAgentDashboardIndicator;
|
|
525
472
|
sent: AiAgentDashboardIndicator;
|
|
526
473
|
unanswered: AiAgentDashboardIndicator;
|
|
527
474
|
};
|
|
528
|
-
/** Sorted by count, highest first. */
|
|
529
475
|
export type AiAgentDashboardContactReason = {
|
|
530
476
|
count: Scalars['Number']['output'];
|
|
531
477
|
key: Scalars['String']['output'];
|
|
@@ -536,7 +482,6 @@ export type AiAgentDashboardContactReasons = {
|
|
|
536
482
|
all: Array<AiAgentDashboardContactReason>;
|
|
537
483
|
handoff: Array<AiAgentDashboardContactReason>;
|
|
538
484
|
};
|
|
539
|
-
/** `value` is absent when the window has no data. */
|
|
540
485
|
export type AiAgentDashboardIndicator = {
|
|
541
486
|
polarity: AiAgentMetricPolarity;
|
|
542
487
|
value?: Maybe<Scalars['Float']['output']>;
|
|
@@ -549,20 +494,17 @@ export type AiAgentDashboardInput = {
|
|
|
549
494
|
timezone: Scalars['String']['input'];
|
|
550
495
|
to: Scalars['Number']['input'];
|
|
551
496
|
};
|
|
552
|
-
/** Counted once per conversation. `level` is over the conversations that consulted the knowledge base. */
|
|
553
497
|
export type AiAgentDashboardKnowledgeGap = {
|
|
554
498
|
count: Scalars['Number']['output'];
|
|
555
499
|
key: Scalars['String']['output'];
|
|
556
500
|
level: AiAgentFrequencyLevel;
|
|
557
501
|
};
|
|
558
|
-
/** The procedure of the use case assigned to each conversation. `level` is over all conversations of the window. */
|
|
559
502
|
export type AiAgentDashboardProcedure = {
|
|
560
503
|
count: Scalars['Number']['output'];
|
|
561
504
|
key: Scalars['ID']['output'];
|
|
562
505
|
level: AiAgentFrequencyLevel;
|
|
563
506
|
name: Scalars['String']['output'];
|
|
564
507
|
};
|
|
565
|
-
/** `percent` is the share of the band in the window total, with one decimal. Absent when the total is zero. */
|
|
566
508
|
export type AiAgentDashboardScoreBand = {
|
|
567
509
|
band: AiAgentScoreBand;
|
|
568
510
|
count: Scalars['Number']['output'];
|
|
@@ -577,7 +519,6 @@ export type AiAgentDashboardSentiment = {
|
|
|
577
519
|
sentiment: AiAgentSentiment;
|
|
578
520
|
variation: AiAgentVariation;
|
|
579
521
|
};
|
|
580
|
-
/** `date` and `endDate` are local dates (YYYY-MM-DD) of the first and last day of the bucket, inside the window. */
|
|
581
522
|
export type AiAgentDashboardSeriesPoint = {
|
|
582
523
|
abandonmentRate?: Maybe<Scalars['Number']['output']>;
|
|
583
524
|
conversations: Scalars['Number']['output'];
|
|
@@ -600,22 +541,12 @@ export declare enum AiAgentExecutionAutonomy {
|
|
|
600
541
|
Autonomous = "autonomous",
|
|
601
542
|
NeedsApproval = "needsApproval"
|
|
602
543
|
}
|
|
603
|
-
/** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
|
|
604
544
|
export declare enum AiAgentFrequencyLevel {
|
|
605
545
|
Frequent = "FREQUENT",
|
|
606
546
|
Rare = "RARE",
|
|
607
547
|
VeryFrequent = "VERY_FREQUENT"
|
|
608
548
|
}
|
|
609
|
-
/**
|
|
610
|
-
* Como este agente passa o atendimento para uma pessoa.
|
|
611
|
-
*
|
|
612
|
-
* A transicao vive no fluxo do tenant — e a state machine dele que sabe qual estado atende gente —,
|
|
613
|
-
* por isso e configuracao e nao constante da plataforma. Ausente significa que o agente nao passa
|
|
614
|
-
* para ninguem: ele diz que o caso precisa de uma pessoa e usa o comportamento fora de escopo do
|
|
615
|
-
* autor para dizer onde procura-la, em vez de prometer transferencia que nao acontece.
|
|
616
|
-
*/
|
|
617
549
|
export type AiAgentHandoff = {
|
|
618
|
-
/** `human` ou `flow`. Ausente = nao declarado: a metrica conta a parte, sem supor destino. */
|
|
619
550
|
target?: Maybe<Scalars['String']['output']>;
|
|
620
551
|
transition: Scalars['String']['output'];
|
|
621
552
|
};
|
|
@@ -675,96 +606,51 @@ export declare enum AiAgentMetricPolarity {
|
|
|
675
606
|
Neutral = "NEUTRAL"
|
|
676
607
|
}
|
|
677
608
|
export type AiAgentMetrics = {
|
|
678
|
-
/** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
|
|
679
609
|
abandonmentRate?: Maybe<Scalars['Number']['output']>;
|
|
680
610
|
agentClarityAvg?: Maybe<Scalars['Float']['output']>;
|
|
681
611
|
agentId: Scalars['ID']['output'];
|
|
682
612
|
agentScoreAvg?: Maybe<Scalars['Float']['output']>;
|
|
683
613
|
agentScoreAvgBand?: Maybe<AiAgentScoreBand>;
|
|
684
614
|
agentScoreBands: Array<AiAgentScoreBandCount>;
|
|
685
|
-
/** true quando os numeros de analise cobrem so parte do periodo. */
|
|
686
615
|
analysesTruncated: Scalars['Boolean']['output'];
|
|
687
616
|
analysisCostMicroUsd: Scalars['Number']['output'];
|
|
688
617
|
analyzedConversations: Scalars['Number']['output'];
|
|
689
618
|
answeredTurns: Scalars['Number']['output'];
|
|
690
|
-
/**
|
|
691
|
-
* Turnos que responderam mesmo com uma conexao falha no meio. E a superficie de risco do guardrail de
|
|
692
|
-
* §4.7 — nao prova resposta inventada, mas e onde ela poderia acontecer.
|
|
693
|
-
*/
|
|
694
619
|
answeredWithFailedConnectionTurns: Scalars['Number']['output'];
|
|
695
620
|
avgLlmLatencyMs: Scalars['Number']['output'];
|
|
696
621
|
avgTurnDurationMs: Scalars['Number']['output'];
|
|
697
|
-
/** Turnos cuja resposta foi bloqueada na validacao antes do envio. */
|
|
698
622
|
blockedTurns: Scalars['Number']['output'];
|
|
699
623
|
blocksByCategory: Array<AiAgentMetricsCount>;
|
|
700
624
|
budgetExceededTurns: Scalars['Number']['output'];
|
|
701
|
-
/**
|
|
702
|
-
* Entrada servida pelo cache do proprio provedor: quanto do contexto nao foi pago a preco cheio.
|
|
703
|
-
* Provedor que nao reporta cache vale zero.
|
|
704
|
-
*/
|
|
705
625
|
cachedInputTokens: Scalars['Number']['output'];
|
|
706
|
-
/** Turnos respondidos pelo cache, sem chamada ao modelo. E o ganho da otimizacao de §4.9. */
|
|
707
626
|
cachedTurns: Scalars['Number']['output'];
|
|
708
627
|
classificationBreakdown: Array<AiAgentClassificationCount>;
|
|
709
|
-
/** Versão da definição que classificou as conversas da janela. Mais de uma vem separada por vírgula, da mais nova para a mais antiga. */
|
|
710
628
|
classificationDefinitionVersion: Scalars['String']['output'];
|
|
711
629
|
classificationDefinitionVersions: Array<AiAgentMetricsCount>;
|
|
712
630
|
contactReasons: AiAgentContactReasons;
|
|
713
|
-
/** Conversas com turno na janela. Uma sessão pode ter mais de uma conversa. */
|
|
714
631
|
conversations: Scalars['Number']['output'];
|
|
715
632
|
conversationsAwaitingClassification: Scalars['Number']['output'];
|
|
716
633
|
conversationsEligible: Scalars['Number']['output'];
|
|
717
|
-
/**
|
|
718
|
-
* Conversas em que algum turno **pediu** uma pessoa. Pedido, nao confirmacao: o disparo da transicao
|
|
719
|
-
* e best-effort, entao nem toda solicitacao virou transferencia de fato.
|
|
720
|
-
*/
|
|
721
634
|
conversationsHandoffRequested: Scalars['Number']['output'];
|
|
722
|
-
/**
|
|
723
|
-
* Nem uma nem outra: parou por prazo, por repeticao, ou ainda esta acontecendo. Existe para nao
|
|
724
|
-
* inflar a resolucao — contar "nao transferiu" como "resolveu" transformaria conversa abandonada
|
|
725
|
-
* em sucesso.
|
|
726
|
-
*/
|
|
727
635
|
conversationsInconclusive: Scalars['Number']['output'];
|
|
728
636
|
conversationsProvisional: Scalars['Number']['output'];
|
|
729
|
-
/** Conversas resolvidas sob a regra declarada em `resolutionDefinition`. */
|
|
730
637
|
conversationsResolved: Scalars['Number']['output'];
|
|
731
638
|
conversationsResolvedByDefinition: Scalars['Number']['output'];
|
|
732
|
-
/** Gasto da janela em micro-dolar (1e-6 USD), inteiro. */
|
|
733
639
|
costMicroUsd: Scalars['Number']['output'];
|
|
734
|
-
/**
|
|
735
|
-
* Gasto da janela dividido pelas conversas resolvidas, em micro-dolar. **Ausente** quando nenhuma
|
|
736
|
-
* conversa resolveu no periodo — dividir por zero nao vira zero.
|
|
737
|
-
*/
|
|
738
640
|
costMicroUsdPerResolvedConversation?: Maybe<Scalars['Number']['output']>;
|
|
739
641
|
customerEffortScoreAvg?: Maybe<Scalars['Float']['output']>;
|
|
740
|
-
/**
|
|
741
|
-
* Escalonou, mas a transicao nao tem destino declarado. Fica a parte de proposito: somar a um dos
|
|
742
|
-
* dois lados seria supor para onde o fluxo do tenant leva.
|
|
743
|
-
*/
|
|
744
642
|
escalatedTargetUndeclared: Scalars['Number']['output'];
|
|
745
|
-
/** Escalonamentos cujo destino o autor declarou como fluxo. */
|
|
746
643
|
escalatedToFlow: Scalars['Number']['output'];
|
|
747
|
-
/** Escalonamentos cujo destino o autor declarou como pessoa. */
|
|
748
644
|
escalatedToHuman: Scalars['Number']['output'];
|
|
749
645
|
estimatedSatisfactionAvg?: Maybe<Scalars['Float']['output']>;
|
|
750
646
|
failedAnalyses: Scalars['Number']['output'];
|
|
751
647
|
from: Scalars['Number']['output'];
|
|
752
648
|
haltReasons: Array<AiAgentMetricsCount>;
|
|
753
649
|
haltedTurns: Scalars['Number']['output'];
|
|
754
|
-
/** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
|
|
755
650
|
handoffNeedRate?: Maybe<Scalars['Number']['output']>;
|
|
756
|
-
/** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
|
|
757
651
|
handoffProcedureRate?: Maybe<Scalars['Number']['output']>;
|
|
758
|
-
/**
|
|
759
|
-
* Por que a pessoa foi pedida. Declarado pelo agente: `customer_request`, `out_of_scope`,
|
|
760
|
-
* `knowledge_gap`, `policy_requires_human`, `cannot_resolve`, `tool_failure`; `undeclared` quando ele
|
|
761
|
-
* transferiu sem declarar. Da plataforma: `tool_failure`, `provider_unavailable`, `budget_exceeded`,
|
|
762
|
-
* `period_budget_exceeded` e `unresolved` quando o agente parou sem concluir.
|
|
763
|
-
*/
|
|
764
652
|
handoffsByReason: Array<AiAgentHandoffReasonCount>;
|
|
765
|
-
/** Turnos que terminaram pedindo uma pessoa (pedido, nao transferencia). */
|
|
766
653
|
humanRequestedTurns: Scalars['Number']['output'];
|
|
767
|
-
/** Turnos que precisaram de cliente identificado e nao tinham um — a medida do atrito de identificacao. */
|
|
768
654
|
identificationRequiredTurns: Scalars['Number']['output'];
|
|
769
655
|
inputTokens: Scalars['Number']['output'];
|
|
770
656
|
knowledgeEmpty: Scalars['Number']['output'];
|
|
@@ -774,50 +660,29 @@ export type AiAgentMetrics = {
|
|
|
774
660
|
llmCalls: Scalars['Number']['output'];
|
|
775
661
|
outputTokens: Scalars['Number']['output'];
|
|
776
662
|
p95TurnDurationMs: Scalars['Number']['output'];
|
|
777
|
-
/** A regra aplicada para contar resolucao, junto do numero, para ele nao ser lido como cada um quiser. */
|
|
778
663
|
resolutionDefinition: Scalars['String']['output'];
|
|
779
|
-
/**
|
|
780
|
-
* Sessões resolvidas pela regra v2 sobre o total de sessões, em pontos percentuais. **Ausente** quando não
|
|
781
|
-
* houve sessão na janela: sem dado e zero por cento não são a mesma coisa.
|
|
782
|
-
* @deprecated Regra v2, por sessão. Use resolvedRate, por conversa e pela classificação da conversa.
|
|
783
|
-
*/
|
|
664
|
+
/** @deprecated Regra v2, por sessão. Use resolvedRate, por conversa e pela classificação da conversa. */
|
|
784
665
|
resolutionRate?: Maybe<Scalars['Number']['output']>;
|
|
785
|
-
/** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
|
|
786
666
|
resolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
787
667
|
riskAlerts: Array<AiAgentRiskAlertCount>;
|
|
788
668
|
sentimentAtEnd: Array<AiAgentSentimentCount>;
|
|
789
669
|
sentimentAtStart: Array<AiAgentSentimentCount>;
|
|
790
670
|
to: Scalars['Number']['output'];
|
|
791
671
|
toolCalls: Scalars['Number']['output'];
|
|
792
|
-
/** Chamadas de ferramenta que falharam. */
|
|
793
672
|
toolCallsFailed: Scalars['Number']['output'];
|
|
794
|
-
/** Falhas por classe, com os valores de `AiAgentTracedToolCall.errorClass`. */
|
|
795
673
|
toolErrorsByClass: Array<AiAgentMetricsCount>;
|
|
796
|
-
/** Falhas por conexao externa, identificada pelo host — responde "qual integracao esta caindo". */
|
|
797
674
|
toolErrorsByConnection: Array<AiAgentMetricsCount>;
|
|
798
675
|
topKnowledgeGaps: Array<AiAgentMetricsCount>;
|
|
799
|
-
/** Assuntos mais frequentes da janela, escolhidos no conjunto fechado do `can` de cada agente. */
|
|
800
676
|
topTopics: Array<AiAgentMetricsCount>;
|
|
801
|
-
/** As perguntas mais frequentes sem resposta, agrupadas por texto normalizado. */
|
|
802
677
|
topUnansweredQuestions: Array<AiAgentMetricsCount>;
|
|
803
678
|
totalTokens: Scalars['Number']['output'];
|
|
804
|
-
/** true quando o teto de leitura foi atingido: os numeros cobrem parte do periodo. */
|
|
805
679
|
truncated: Scalars['Boolean']['output'];
|
|
806
680
|
turns: Scalars['Number']['output'];
|
|
807
681
|
turnsByModel: Array<AiAgentMetricsCount>;
|
|
808
|
-
|
|
809
|
-
* A regra aplicada para contar turno sem resposta, junto do numero, para ele nao ser lido como cada
|
|
810
|
-
* um quiser. Deterministica: qualidade da resposta nao e medivel aqui.
|
|
811
|
-
*/
|
|
682
|
+
turnsByModelAndReasoningEffort: Array<AiAgentMetricsCount>;
|
|
812
683
|
unansweredDefinition: Scalars['String']['output'];
|
|
813
|
-
/** Turnos sem resposta satisfatoria sob a regra declarada em `unansweredDefinition`. */
|
|
814
684
|
unansweredTurns: Scalars['Number']['output'];
|
|
815
|
-
/**
|
|
816
|
-
* Turnos com ao menos uma chamada ao modelo sem preco conhecido. Com isto > 0, `costMicroUsd` e
|
|
817
|
-
* **piso**, nao total — nao decidir preco sem olhar este numero.
|
|
818
|
-
*/
|
|
819
685
|
unpricedTurns: Scalars['Number']['output'];
|
|
820
|
-
/** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
|
|
821
686
|
unresolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
822
687
|
};
|
|
823
688
|
export declare enum AiAgentMetricsBucket {
|
|
@@ -836,10 +701,8 @@ export type AiAgentMetricsInput = {
|
|
|
836
701
|
};
|
|
837
702
|
export type AiAgentMetricsSeries = {
|
|
838
703
|
points: Array<AiAgentMetricsSeriesPoint>;
|
|
839
|
-
/** true quando o teto de leitura foi atingido: a série cobre parte do período. */
|
|
840
704
|
truncated: Scalars['Boolean']['output'];
|
|
841
705
|
};
|
|
842
|
-
/** IANA name of the viewer time zone, e.g. America/Sao_Paulo. A week starts on Monday. */
|
|
843
706
|
export type AiAgentMetricsSeriesInput = {
|
|
844
707
|
agentId: Scalars['ID']['input'];
|
|
845
708
|
bucket: AiAgentMetricsBucket;
|
|
@@ -856,13 +719,11 @@ export type AiAgentMetricsSeriesPoint = {
|
|
|
856
719
|
conversationsHandoffNeed: Scalars['Number']['output'];
|
|
857
720
|
conversationsResolved: Scalars['Number']['output'];
|
|
858
721
|
conversationsUnresolved: Scalars['Number']['output'];
|
|
859
|
-
/** Local date (YYYY-MM-DD) of the first day of the bucket. */
|
|
860
722
|
date: Scalars['String']['output'];
|
|
861
723
|
handoffNeedRate?: Maybe<Scalars['Number']['output']>;
|
|
862
724
|
resolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
863
725
|
unresolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
864
726
|
};
|
|
865
|
-
/** A mesma janela, sem agente: a listagem quer todos de uma vez. */
|
|
866
727
|
export type AiAgentMetricsWindowInput = {
|
|
867
728
|
channel?: InputMaybe<Scalars['String']['input']>;
|
|
868
729
|
from: Scalars['Number']['input'];
|
|
@@ -876,13 +737,11 @@ export type AiAgentProcedure = {
|
|
|
876
737
|
endsConversationAfterInforming: Scalars['Boolean']['output'];
|
|
877
738
|
executionAutonomy: AiAgentExecutionAutonomy;
|
|
878
739
|
expiredReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
879
|
-
/** As etapas como o autor instruiria uma pessoa. O texto e a fonte da verdade (§6.2). */
|
|
880
740
|
guidanceSteps: Array<Scalars['String']['output']>;
|
|
881
741
|
id: Scalars['ID']['output'];
|
|
882
742
|
name: Scalars['String']['output'];
|
|
883
743
|
replyEmailSubject?: Maybe<Scalars['String']['output']>;
|
|
884
744
|
status: Scalars['String']['output'];
|
|
885
|
-
/** Ferramentas que as etapas usam. Declaradas: e o que da para validar sem interpretar o texto. */
|
|
886
745
|
toolIds: Array<Scalars['ID']['output']>;
|
|
887
746
|
updatedAt: Scalars['Number']['output'];
|
|
888
747
|
};
|
|
@@ -894,6 +753,11 @@ export type AiAgentRegression = {
|
|
|
894
753
|
before: Scalars['Float']['output'];
|
|
895
754
|
scenarioId: Scalars['ID']['output'];
|
|
896
755
|
};
|
|
756
|
+
export type AiAgentRejectedCall = {
|
|
757
|
+
count: Scalars['Int']['output'];
|
|
758
|
+
reason: Scalars['String']['output'];
|
|
759
|
+
toolName: Scalars['String']['output'];
|
|
760
|
+
};
|
|
897
761
|
export type AiAgentRetentionDays = {
|
|
898
762
|
long_term_memory: Scalars['Int']['output'];
|
|
899
763
|
session_state: Scalars['Int']['output'];
|
|
@@ -923,72 +787,47 @@ export type AiAgentRiskAlertCount = {
|
|
|
923
787
|
key: AiAgentRiskAlert;
|
|
924
788
|
};
|
|
925
789
|
export type AiAgentRoutedExample = {
|
|
926
|
-
/** `high`, `medium` ou `low`. */
|
|
927
790
|
confidence: Scalars['String']['output'];
|
|
928
791
|
message: Scalars['String']['output'];
|
|
929
792
|
score: Scalars['Number']['output'];
|
|
930
|
-
/** Ausente quando nenhum caso de uso reconheceu a mensagem. */
|
|
931
793
|
useCaseId?: Maybe<Scalars['ID']['output']>;
|
|
932
794
|
};
|
|
933
795
|
export type AiAgentRoutingPreview = {
|
|
934
796
|
examples: Array<AiAgentRoutedExample>;
|
|
935
|
-
/** Limiar de confianca alta. */
|
|
936
797
|
high: Scalars['Number']['output'];
|
|
937
|
-
/** Limiar de confianca media; abaixo dele a previa nao aponta caso de uso. */
|
|
938
798
|
medium: Scalars['Number']['output'];
|
|
939
799
|
};
|
|
940
800
|
export type AiAgentRoutingPreviewInput = {
|
|
941
801
|
agentId: Scalars['ID']['input'];
|
|
942
|
-
/** Mensagens a testar. Vazio cai em `subject`; sem os dois, previa vazia e nao erro. */
|
|
943
802
|
examples: Array<Scalars['String']['input']>;
|
|
944
|
-
/** Descricao do assunto: as mensagens sao geradas a partir dela (§5.4). Ignorada se `examples` vier. */
|
|
945
803
|
subject?: InputMaybe<Scalars['String']['input']>;
|
|
946
804
|
};
|
|
947
805
|
export type AiAgentScenario = {
|
|
948
|
-
/** Quem é o cliente nesta conversa. Ausente roda como anônimo. */
|
|
949
806
|
customerId?: Maybe<Scalars['ID']['output']>;
|
|
950
807
|
description: Scalars['String']['output'];
|
|
951
808
|
expectations: Array<Scalars['JSON']['output']>;
|
|
952
809
|
scenarioId: Scalars['ID']['output'];
|
|
953
|
-
/** O que o cliente diz, em ordem. */
|
|
954
810
|
turns: Array<Scalars['String']['output']>;
|
|
955
811
|
};
|
|
956
812
|
export type AiAgentScenarioReport = {
|
|
957
|
-
/** Execuções que o prazo interrompeu antes de poderem ser julgadas. */
|
|
958
813
|
cut: Scalars['Int']['output'];
|
|
959
|
-
/**
|
|
960
|
-
* Por que a conversa foi para uma pessoa, contado entre as execuções julgadas. Os motivos declarados
|
|
961
|
-
* pelo agente (`customer_request`, `out_of_scope`, `knowledge_gap`, `policy_requires_human`,
|
|
962
|
-
* `cannot_resolve`) são entrega por decisão dele; `provider_unavailable` e `unresolved` são desistência.
|
|
963
|
-
* A taxa sozinha não separa as duas.
|
|
964
|
-
*/
|
|
965
814
|
handoffReasons: Array<AiAgentMetricsCount>;
|
|
966
|
-
/** Execuções efetivamente julgadas. Zero significa que este cenário não produziu evidência. */
|
|
967
815
|
measured: Scalars['Int']['output'];
|
|
968
816
|
passed: Scalars['Int']['output'];
|
|
969
|
-
/** Fração das execuções MEDIDAS em que todas as expectativas valeram, 0..1. Sem sentido com measured 0. */
|
|
970
817
|
rate: Scalars['Float']['output'];
|
|
971
818
|
runs: Scalars['Int']['output'];
|
|
972
819
|
scenarioId: Scalars['ID']['output'];
|
|
973
|
-
/** Um item por turno do cenário, na ordem, agregado entre as execuções. */
|
|
974
820
|
turns: Array<AiAgentScenarioTurn>;
|
|
975
821
|
};
|
|
976
822
|
export type AiAgentScenarioTurn = {
|
|
977
|
-
/** Execuções em que o agente respondeu neste turno. */
|
|
978
823
|
answered: Scalars['Int']['output'];
|
|
979
|
-
/** Categorias que bloquearam a resposta deste turno, e em quantas execuções. */
|
|
980
824
|
blockCategories: Array<AiAgentMetricsCount>;
|
|
981
|
-
/** Execuções em que a resposta deste turno foi bloqueada antes do envio. */
|
|
982
825
|
blocked: Scalars['Int']['output'];
|
|
983
|
-
/** Execuções em que a resposta deste turno se apoiou em conhecimento ou ferramenta. */
|
|
984
826
|
grounded: Scalars['Int']['output'];
|
|
985
|
-
/** Execuções em que uma ferramenta deste turno foi recusada por falta de cliente identificado. */
|
|
986
827
|
identificationRequired: Scalars['Int']['output'];
|
|
987
|
-
|
|
828
|
+
rejectedCalls?: Maybe<Array<AiAgentRejectedCall>>;
|
|
988
829
|
runs: Scalars['Int']['output'];
|
|
989
|
-
/** Ferramentas chamadas neste turno, e em quantas execuções. */
|
|
990
830
|
toolNames: Array<AiAgentMetricsCount>;
|
|
991
|
-
/** 1 para o primeiro turno do cenário. */
|
|
992
831
|
turn: Scalars['Int']['output'];
|
|
993
832
|
};
|
|
994
833
|
export declare enum AiAgentScoreBand {
|
|
@@ -1018,24 +857,16 @@ export type AiAgentSpec = {
|
|
|
1018
857
|
/** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
|
|
1019
858
|
allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
|
|
1020
859
|
budget: AiAgentBudget;
|
|
1021
|
-
/** One natural-language permission per item. */
|
|
1022
860
|
can: Array<Scalars['String']['output']>;
|
|
1023
|
-
/** Restrictions. On conflict these win over `can`, without exception. */
|
|
1024
861
|
cannot: Array<Scalars['String']['output']>;
|
|
1025
|
-
/** Canais em que o agente atende. Ausente = ainda nao vinculado; declarado vazio e erro. */
|
|
1026
862
|
channels?: Maybe<Array<Scalars['String']['output']>>;
|
|
1027
863
|
conversationTiming?: Maybe<Array<AiAgentChannelTiming>>;
|
|
1028
864
|
handoff?: Maybe<AiAgentHandoff>;
|
|
1029
865
|
identity: AiAgentIdentity;
|
|
1030
|
-
/**
|
|
1031
|
-
* §4.8: bases do Droz Base vinculadas — ids de **space**, nao de credencial. A consulta e recortada
|
|
1032
|
-
* por elas. Vazia, o agente sem nenhum vinculo consulta o acervo do tenant e o agente so-ferramenta
|
|
1033
|
-
* nao consulta nada.
|
|
1034
|
-
*/
|
|
1035
866
|
knowledgeBaseIds: Array<Scalars['ID']['output']>;
|
|
1036
|
-
/** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
|
|
1037
867
|
knowledgeFallback?: Maybe<Scalars['String']['output']>;
|
|
1038
868
|
toolIds: Array<Scalars['ID']['output']>;
|
|
869
|
+
typingIndicator?: Maybe<Scalars['Boolean']['output']>;
|
|
1039
870
|
};
|
|
1040
871
|
export type AiAgentSpecInput = {
|
|
1041
872
|
/** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
|
|
@@ -1047,31 +878,18 @@ export type AiAgentSpecInput = {
|
|
|
1047
878
|
conversationTiming?: InputMaybe<Array<AiAgentChannelTimingInput>>;
|
|
1048
879
|
handoff?: InputMaybe<AiAgentHandoffInput>;
|
|
1049
880
|
identity: AiAgentIdentityInput;
|
|
1050
|
-
/**
|
|
1051
|
-
* §4.8: bases do Droz Base vinculadas — ids de **space**, nao de credencial. A consulta e recortada
|
|
1052
|
-
* por elas. Vazia, o agente sem nenhum vinculo consulta o acervo do tenant e o agente so-ferramenta
|
|
1053
|
-
* nao consulta nada.
|
|
1054
|
-
*/
|
|
1055
881
|
knowledgeBaseIds: Array<Scalars['ID']['input']>;
|
|
1056
|
-
/** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
|
|
1057
882
|
knowledgeFallback?: InputMaybe<Scalars['String']['input']>;
|
|
1058
883
|
toolIds: Array<Scalars['ID']['input']>;
|
|
884
|
+
typingIndicator?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1059
885
|
};
|
|
1060
886
|
export type AiAgentSummary = {
|
|
1061
887
|
agentId: Scalars['ID']['output'];
|
|
1062
|
-
/** Canais da versao no ar; sem versao no ar, os da mais recente. Vazio quando nenhuma declarou canal. */
|
|
1063
888
|
channels: Array<Scalars['String']['output']>;
|
|
1064
|
-
/** Absent until a version is published. An agent with no live version answers nobody. */
|
|
1065
889
|
liveVersion?: Maybe<Scalars['Int']['output']>;
|
|
1066
890
|
name: Scalars['String']['output'];
|
|
1067
|
-
/** Acoes esperando aprovacao humana (§5.5.3). Zero tambem quando a fila nao pode ser lida. */
|
|
1068
891
|
queuedApprovals: Scalars['Number']['output'];
|
|
1069
|
-
/**
|
|
1070
|
-
* `draft` (nunca publicado), `live` (no ar) ou `paused` (ja esteve no ar e foi tirado). `liveVersion`
|
|
1071
|
-
* sozinho nao distingue quem nunca publicou de quem foi pausado.
|
|
1072
|
-
*/
|
|
1073
892
|
status: Scalars['String']['output'];
|
|
1074
|
-
/** Momento da versao mais recente, no ar ou nao — o "ultima alteracao" da listagem. */
|
|
1075
893
|
updatedAt: Scalars['Number']['output'];
|
|
1076
894
|
};
|
|
1077
895
|
export declare enum AiAgentTechnicalFailure {
|
|
@@ -1081,25 +899,20 @@ export declare enum AiAgentTechnicalFailure {
|
|
|
1081
899
|
ToolUnavailable = "TOOL_UNAVAILABLE"
|
|
1082
900
|
}
|
|
1083
901
|
export type AiAgentTool = {
|
|
1084
|
-
/** `pre_approved` (padrao) ou `human_approval`. */
|
|
1085
902
|
approval?: Maybe<Scalars['String']['output']>;
|
|
1086
903
|
availability: ToolAvailability;
|
|
1087
|
-
/** `url` (default): a plataforma impoe o recorte via `{customerId}` na URL; `credential`: a credencial ja e do cliente (declarado, nunca inferido). */
|
|
1088
904
|
customerScope?: Maybe<Scalars['String']['output']>;
|
|
1089
905
|
description: Scalars['String']['output'];
|
|
1090
906
|
effect: ToolEffect;
|
|
1091
907
|
emptyResultMessage?: Maybe<Scalars['String']['output']>;
|
|
1092
908
|
name: Scalars['String']['output'];
|
|
1093
|
-
/** `{kind: message|retry|handoff, message?, attempts?, byStatus?}`; `byStatus` mapeia status HTTP de erro para o texto que o modelo lê. */
|
|
1094
909
|
onFailure?: Maybe<Scalars['JSON']['output']>;
|
|
1095
910
|
parameters: Array<AiAgentToolParameter>;
|
|
1096
911
|
requiresAuthenticatedCustomer: Scalars['Boolean']['output'];
|
|
1097
|
-
/** Fields the agent is allowed to see. Anything not listed never reaches the model. */
|
|
1098
912
|
returns: Array<Scalars['String']['output']>;
|
|
1099
913
|
toolId: Scalars['ID']['output'];
|
|
1100
914
|
};
|
|
1101
915
|
export type AiAgentToolExclusion = {
|
|
1102
|
-
/** `not_bound`, `unavailable` ou `human_approval_unavailable`. */
|
|
1103
916
|
reason: Scalars['String']['output'];
|
|
1104
917
|
toolId: Scalars['ID']['output'];
|
|
1105
918
|
};
|
|
@@ -1121,23 +934,18 @@ export type AiAgentToolParameterInput = {
|
|
|
1121
934
|
type: ToolParameterType;
|
|
1122
935
|
};
|
|
1123
936
|
export type AiAgentToolSpecInput = {
|
|
1124
|
-
/** `pre_approved` (padrao) ou `human_approval`. */
|
|
1125
937
|
approval?: InputMaybe<Scalars['String']['input']>;
|
|
1126
938
|
availability: ToolAvailability;
|
|
1127
939
|
credentialRef?: InputMaybe<CredentialRefInput>;
|
|
1128
|
-
/** `url` (default): a plataforma impoe o recorte via `{customerId}` na URL; `credential`: a credencial ja e do cliente (declarado, nunca inferido). */
|
|
1129
940
|
customerScope?: InputMaybe<Scalars['String']['input']>;
|
|
1130
941
|
description: Scalars['String']['input'];
|
|
1131
|
-
/** Ignorado: a plataforma calcula pelo método do conector (GET consulta, os demais agem). */
|
|
1132
942
|
effect?: InputMaybe<ToolEffect>;
|
|
1133
943
|
emptyResultMessage?: InputMaybe<Scalars['String']['input']>;
|
|
1134
944
|
idempotent: Scalars['Boolean']['input'];
|
|
1135
945
|
name: Scalars['String']['input'];
|
|
1136
|
-
/** `{kind: message|retry|handoff, message?, attempts?, byStatus?}`; `byStatus` mapeia status HTTP de erro para o texto que o modelo lê. */
|
|
1137
946
|
onFailure?: InputMaybe<Scalars['JSON']['input']>;
|
|
1138
947
|
parameters: Array<AiAgentToolParameterInput>;
|
|
1139
948
|
requiresAuthenticatedCustomer: Scalars['Boolean']['input'];
|
|
1140
|
-
/** Campos que o agente pode ver. O que não estiver aqui nunca chega ao modelo. */
|
|
1141
949
|
returns: Array<Scalars['String']['input']>;
|
|
1142
950
|
reversible: Scalars['Boolean']['input'];
|
|
1143
951
|
toolId: Scalars['ID']['input'];
|
|
@@ -1147,20 +955,17 @@ export type AiAgentTrace = {
|
|
|
1147
955
|
agentVersion: Scalars['String']['output'];
|
|
1148
956
|
answer: Scalars['String']['output'];
|
|
1149
957
|
channelType?: Maybe<AiAgentChannelType>;
|
|
1150
|
-
/** Ausente no turno que não selecionou ferramentas (cache, contraparte automática) e no registrado antes do campo existir. */
|
|
1151
958
|
excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
|
|
1152
|
-
/** Presente so quando o turno parou por limite; ausente quando respondeu. */
|
|
1153
959
|
haltReason?: Maybe<Scalars['String']['output']>;
|
|
1154
|
-
/** O turno tentou usar ferramenta que exige cliente identificado, sem ter um. */
|
|
1155
960
|
identificationRequired?: Maybe<Scalars['Boolean']['output']>;
|
|
1156
961
|
input: Scalars['String']['output'];
|
|
1157
962
|
knowledgeOrigins: Array<Scalars['String']['output']>;
|
|
1158
|
-
/** Versao da regra mestra da plataforma vigente no turno — atribui a conversa a regra sob a qual ela rodou. */
|
|
1159
963
|
masterRuleVersion?: Maybe<Scalars['Int']['output']>;
|
|
964
|
+
model?: Maybe<Scalars['String']['output']>;
|
|
1160
965
|
outcome: Scalars['String']['output'];
|
|
1161
966
|
promptBuilderVersion: Scalars['Int']['output'];
|
|
1162
|
-
/** Identifica o prompt que gerou este turno sem guardar o prompt inteiro. */
|
|
1163
967
|
promptFingerprint?: Maybe<Scalars['String']['output']>;
|
|
968
|
+
reasoningEffort?: Maybe<Scalars['String']['output']>;
|
|
1164
969
|
sessionId: Scalars['ID']['output'];
|
|
1165
970
|
startedAt: Scalars['Float']['output'];
|
|
1166
971
|
steps: Scalars['Int']['output'];
|
|
@@ -1168,22 +973,11 @@ export type AiAgentTrace = {
|
|
|
1168
973
|
turn: Scalars['Int']['output'];
|
|
1169
974
|
};
|
|
1170
975
|
export type AiAgentTracedToolCall = {
|
|
1171
|
-
/** O sistema externo, pelo host. Sem path nem query, que carregam parametro do cliente. */
|
|
1172
976
|
connection?: Maybe<Scalars['String']['output']>;
|
|
1173
977
|
empty?: Maybe<Scalars['Boolean']['output']>;
|
|
1174
|
-
/**
|
|
1175
|
-
* `unauthenticated`, `not_configured`, `not_migrated`, `needs_approval`, `rejected_arguments`, `timeout`, `upstream` ou `indeterminate_write`.
|
|
1176
|
-
* `timeout` cobre o tempo esgotado no sistema do cliente e na chamada ao apiconnectors.
|
|
1177
|
-
* `indeterminate_write` e o timeout de escrita nao idempotente: nao se sabe se a acao foi feita.
|
|
1178
|
-
*/
|
|
1179
978
|
errorClass?: Maybe<Scalars['String']['output']>;
|
|
1180
979
|
name: Scalars['String']['output'];
|
|
1181
|
-
/**
|
|
1182
|
-
* Se a chamada deu certo. Ausente em chamada gravada antes do desfecho estruturado existir — e
|
|
1183
|
-
* ausente nao significa falha.
|
|
1184
|
-
*/
|
|
1185
980
|
ok?: Maybe<Scalars['Boolean']['output']>;
|
|
1186
|
-
/** Ja restrito aos campos que a ferramenta declarou em `returns`. */
|
|
1187
981
|
result: Scalars['String']['output'];
|
|
1188
982
|
toolId: Scalars['ID']['output'];
|
|
1189
983
|
};
|
|
@@ -1192,22 +986,14 @@ export type AiAgentUseCase = {
|
|
|
1192
986
|
name: Scalars['String']['output'];
|
|
1193
987
|
procedureId?: Maybe<Scalars['ID']['output']>;
|
|
1194
988
|
status: Scalars['String']['output'];
|
|
1195
|
-
/**
|
|
1196
|
-
* NAO e documentacao: e o texto que o roteador le para classificar a mensagem (§6.1). Descricao vaga
|
|
1197
|
-
* produz roteamento ruim.
|
|
1198
|
-
*/
|
|
1199
989
|
subjectDescription: Scalars['String']['output'];
|
|
1200
|
-
/** Minusculas e digitos, separados por - ou _. */
|
|
1201
990
|
tag?: Maybe<Scalars['String']['output']>;
|
|
1202
991
|
updatedAt: Scalars['Number']['output'];
|
|
1203
992
|
};
|
|
1204
993
|
export type AiAgentUseCaseOverlap = {
|
|
1205
|
-
/** Do par mais parecido para o menos: e a ordem em que o autor deve olhar. */
|
|
1206
994
|
pairs: Array<AiAgentCompetingPair>;
|
|
1207
|
-
/** O limiar aplicado, publicado junto do resultado para o aviso nao ser lido como cada um quiser. */
|
|
1208
995
|
threshold: Scalars['Number']['output'];
|
|
1209
996
|
};
|
|
1210
|
-
/** `value` is absent when there is no base to compare: no previous data, or a previous count of zero for PERCENT. */
|
|
1211
997
|
export type AiAgentVariation = {
|
|
1212
998
|
unit: AiAgentVariationUnit;
|
|
1213
999
|
value?: Maybe<Scalars['Number']['output']>;
|
|
@@ -1219,7 +1005,6 @@ export declare enum AiAgentVariationUnit {
|
|
|
1219
1005
|
export type AiAgentVersion = {
|
|
1220
1006
|
agentId: Scalars['ID']['output'];
|
|
1221
1007
|
createdAt: Scalars['DateTime']['output'];
|
|
1222
|
-
/** Ferramentas vinculadas que esta versão não oferece ao modelo, pelo catálogo atual. Nulo quando o catálogo não pôde ser lido. */
|
|
1223
1008
|
excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
|
|
1224
1009
|
spec: AiAgentSpec;
|
|
1225
1010
|
status: AiAgentVersionStatus;
|
|
@@ -1253,9 +1038,7 @@ export declare enum Can {
|
|
|
1253
1038
|
}
|
|
1254
1039
|
export type CheckAiAgentVersionInput = {
|
|
1255
1040
|
agentId: Scalars['ID']['input'];
|
|
1256
|
-
/** De 2 a 20. Uma execução só não prova nada num sistema probabilístico. */
|
|
1257
1041
|
runsPerScenario?: InputMaybe<Scalars['Int']['input']>;
|
|
1258
|
-
/** Cenários a rodar. Ausente roda todos; o resultado cobre só os cenários rodados. */
|
|
1259
1042
|
scenarioIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
1260
1043
|
version: Scalars['Int']['input'];
|
|
1261
1044
|
};
|
|
@@ -1269,12 +1052,10 @@ export type CreateQnAInstanceInput = {
|
|
|
1269
1052
|
tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1270
1053
|
};
|
|
1271
1054
|
export type CredentialRefInput = {
|
|
1272
|
-
/** Nome do parâmetro no cofre do tenant. O valor nunca é armazenado aqui. */
|
|
1273
1055
|
name: Scalars['String']['input'];
|
|
1274
1056
|
vault: Scalars['String']['input'];
|
|
1275
1057
|
};
|
|
1276
1058
|
export type DraftAiAgentInput = {
|
|
1277
|
-
/** Omitted for a brand new agent; supplied to draft the next version of an existing one. */
|
|
1278
1059
|
agentId?: InputMaybe<Scalars['ID']['input']>;
|
|
1279
1060
|
name: Scalars['String']['input'];
|
|
1280
1061
|
spec: AiAgentSpecInput;
|
|
@@ -1298,37 +1079,28 @@ export type I18nTextInput = {
|
|
|
1298
1079
|
value: Scalars['String']['input'];
|
|
1299
1080
|
};
|
|
1300
1081
|
export type Mutation = {
|
|
1301
|
-
/**
|
|
1302
|
-
* Enfileira a suíte contra uma versão candidata e devolve a execução em `queued`. Rodar custa
|
|
1303
|
-
* chamadas de modelo e leva minutos, então o resultado se lê depois por `getAiAgentCheckRun`.
|
|
1304
|
-
*/
|
|
1305
1082
|
checkAiAgentVersion?: Maybe<AiAgentCheckRun>;
|
|
1306
1083
|
createNlpInstance?: Maybe<NlpInstance>;
|
|
1307
1084
|
createQnAInstance?: Maybe<QnAInstance>;
|
|
1308
1085
|
draftAiAgent?: Maybe<AiAgentVersion>;
|
|
1309
1086
|
extractImageMetadata: ExtractImageMetadataResult;
|
|
1310
1087
|
publishAiAgentVersion: Array<AiAgentVersion>;
|
|
1311
|
-
/** Cadastre o backend da ferramenta como Connector (Nexo > Conectores) primeiro, depois amarre o spec do agente a ele aqui. */
|
|
1312
1088
|
registerAiAgentTool?: Maybe<AiAgentTool>;
|
|
1313
1089
|
reindexAiAgentDashboard: Scalars['Number']['output'];
|
|
1314
1090
|
rememberAiAgentSessionFacts: Scalars['Boolean']['output'];
|
|
1315
|
-
/** Apaga o agente e a autoria dele. Agente no ar precisa ser pausado antes. */
|
|
1316
1091
|
removeAiAgent: Scalars['Boolean']['output'];
|
|
1317
1092
|
removeAiAgentProcedure: Scalars['Boolean']['output'];
|
|
1318
|
-
/** O relatório já gravado para o cenário não é removido. */
|
|
1319
1093
|
removeAiAgentScenario: Scalars['Boolean']['output'];
|
|
1320
1094
|
removeAiAgentUseCase: Scalars['Boolean']['output'];
|
|
1321
1095
|
removeAiAgentVersion: Array<AiAgentVersion>;
|
|
1322
1096
|
removeNlpInstance?: Maybe<NlpInstance>;
|
|
1323
1097
|
removeQnAInstance?: Maybe<QnAInstance>;
|
|
1324
|
-
/** Decide uma acao que ficou esperando aprovacao humana (§5.5.3). Decidir de novo nao repete a acao. */
|
|
1325
1098
|
resolveAiAgentApproval: Scalars['Boolean']['output'];
|
|
1326
1099
|
rollbackAiAgentVersion: Array<AiAgentVersion>;
|
|
1327
1100
|
saveAiAgentProcedure: AiAgentProcedure;
|
|
1328
1101
|
saveAiAgentScenario?: Maybe<AiAgentScenario>;
|
|
1329
1102
|
saveAiAgentUseCase: AiAgentUseCase;
|
|
1330
1103
|
setAiAgentRetentionPolicy: AiAgentRetentionPolicy;
|
|
1331
|
-
/** Tira a versao do ar sem apagar (pausar). Publicar de novo e o caminho de volta. */
|
|
1332
1104
|
unpublishAiAgentVersion: Array<AiAgentVersion>;
|
|
1333
1105
|
unregisterAiAgentTool?: Maybe<Scalars['Boolean']['output']>;
|
|
1334
1106
|
updateNlpInstance?: Maybe<NlpInstance>;
|
|
@@ -1465,54 +1237,28 @@ export type QnAInstance = {
|
|
|
1465
1237
|
updatedAt: Scalars['DateTime']['output'];
|
|
1466
1238
|
};
|
|
1467
1239
|
export type Query = {
|
|
1468
|
-
/** O que a suíte deste agente aceita hoje. O teto por cenário já vem dividido pelos cenários dele. */
|
|
1469
1240
|
aiAgentCheckLimits: AiAgentCheckLimits;
|
|
1470
1241
|
aiAgentConversationMetrics: AiAgentConversationMetricsPage;
|
|
1471
1242
|
aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
|
|
1472
1243
|
aiAgentDashboard: AiAgentDashboard;
|
|
1473
|
-
/**
|
|
1474
|
-
* §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
|
|
1475
|
-
* credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
|
|
1476
|
-
*/
|
|
1477
1244
|
aiAgentKnowledgeBases: Array<AiAgentKnowledgeBase>;
|
|
1478
1245
|
aiAgentListingMetrics: Array<AiAgentListingMetrics>;
|
|
1479
1246
|
aiAgentMetrics: AiAgentMetrics;
|
|
1480
|
-
/** As metricas da janela para todos os agentes, numa ida so. Agente sem rastro vem com zeros. */
|
|
1481
1247
|
aiAgentMetricsByAgent: Array<AiAgentMetrics>;
|
|
1482
1248
|
aiAgentMetricsSeries: AiAgentMetricsSeries;
|
|
1483
|
-
/**
|
|
1484
|
-
* A politica de retencao em vigor para o tenant, com os padroes aplicados quando ele nao
|
|
1485
|
-
* configurou a propria. Existe para a politica ser verificavel de fora, nao so estar escrita.
|
|
1486
|
-
*/
|
|
1487
1249
|
aiAgentRetentionPolicy: AiAgentRetentionPolicy;
|
|
1488
|
-
/** Onde cada mensagem de exemplo cairia (§5.4). Os limiares saem no resultado: `medium` sem o limiar nao diz nada. */
|
|
1489
1250
|
aiAgentRoutingPreview: AiAgentRoutingPreview;
|
|
1490
|
-
/**
|
|
1491
|
-
* Os turnos de um atendimento, do primeiro ao ultimo. E o que responde "o que aconteceu nesta
|
|
1492
|
-
* conversa" sem depender de ler o DynamoDB por fora.
|
|
1493
|
-
*/
|
|
1494
1251
|
aiAgentTrace: Array<AiAgentTrace>;
|
|
1495
|
-
/**
|
|
1496
|
-
* Casos de uso cujas descricoes competem no roteador (§6.1). Aviso de autoria, nao bloqueio: descricoes
|
|
1497
|
-
* parecidas podem ser intencionais.
|
|
1498
|
-
*/
|
|
1499
1252
|
aiAgentUseCaseOverlap: AiAgentUseCaseOverlap;
|
|
1500
1253
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
1501
|
-
/** Uma execução da suíte. Ausente quando o identificador não é de uma execução deste agente. */
|
|
1502
1254
|
getAiAgentCheckRun?: Maybe<AiAgentCheckRun>;
|
|
1503
1255
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
1504
1256
|
getNlpInstance?: Maybe<NlpInstance>;
|
|
1505
1257
|
getQnAInstance?: Maybe<QnAInstance>;
|
|
1506
|
-
/**
|
|
1507
|
-
* A fila e o historico de aprovacao humana do agente, da mais recente para a mais antiga. `status`
|
|
1508
|
-
* filtra por `pending`, `approved`, `rejected` ou `expired`; pendente fora do prazo ja vem `expired`.
|
|
1509
|
-
*/
|
|
1510
1258
|
listAiAgentApprovals: Array<AiAgentApproval>;
|
|
1511
|
-
/** Os procedimentos do agente (§6.2): o plano em linguagem natural. */
|
|
1512
1259
|
listAiAgentProcedures: Array<AiAgentProcedure>;
|
|
1513
1260
|
listAiAgentScenarios: Array<AiAgentScenario>;
|
|
1514
1261
|
listAiAgentTools: Array<AiAgentTool>;
|
|
1515
|
-
/** Os casos de uso do agente (§6.1): os motivos de contato. */
|
|
1516
1262
|
listAiAgentUseCases: Array<AiAgentUseCase>;
|
|
1517
1263
|
listAiAgentVersions: Array<AiAgentVersion>;
|
|
1518
1264
|
listAiAgents: Array<AiAgentSummary>;
|
|
@@ -1593,7 +1339,6 @@ export type QueryTestQnAInstanceArgs = {
|
|
|
1593
1339
|
input: Scalars['String']['input'];
|
|
1594
1340
|
};
|
|
1595
1341
|
export type RegisterAiAgentToolInput = {
|
|
1596
|
-
/** Connector ja cadastrado (Nexo > Conectores) que executa a chamada HTTP desta ferramenta. */
|
|
1597
1342
|
connectorId: Scalars['ID']['input'];
|
|
1598
1343
|
spec: AiAgentToolSpecInput;
|
|
1599
1344
|
};
|
|
@@ -1617,11 +1362,8 @@ export type RemoveQnAInstanceInput = {
|
|
|
1617
1362
|
};
|
|
1618
1363
|
export type ResolveAiAgentApprovalInput = {
|
|
1619
1364
|
agentId: Scalars['ID']['input'];
|
|
1620
|
-
/** Ignorado: quem decidiu e o usuario autenticado. */
|
|
1621
1365
|
decidedBy?: InputMaybe<Scalars['String']['input']>;
|
|
1622
|
-
/** `approved` executa a acao guardada; `rejected` avisa o consumidor e nao executa nada. */
|
|
1623
1366
|
decision: Scalars['String']['input'];
|
|
1624
|
-
/** Identifica a pendencia junto da sessao: e o momento em que a acao foi enfileirada. */
|
|
1625
1367
|
requestedAt: Scalars['Number']['input'];
|
|
1626
1368
|
sessionId: Scalars['ID']['input'];
|
|
1627
1369
|
};
|
|
@@ -1643,24 +1385,8 @@ export type SaveAiAgentProcedureInput = {
|
|
|
1643
1385
|
};
|
|
1644
1386
|
export type SaveAiAgentScenarioInput = {
|
|
1645
1387
|
agentId: Scalars['ID']['input'];
|
|
1646
|
-
/**
|
|
1647
|
-
* Quem é o cliente nesta conversa. Ausente roda como anônimo. Ferramenta que exige cliente
|
|
1648
|
-
* identificado substitui este valor na URL ou na credencial, e o simulador chama a integração
|
|
1649
|
-
* real com ele — não é um identificador de mentira sem efeito.
|
|
1650
|
-
*/
|
|
1651
1388
|
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
1652
1389
|
description: Scalars['String']['input'];
|
|
1653
|
-
/**
|
|
1654
|
-
* Expectativas de comportamento, uma por objeto, cada uma com `kind`. `tool_called` aceita
|
|
1655
|
-
* `toolName` e `withArgs`; `tool_not_called` aceita `toolName`; `blocked_by_rule` aceita `category`
|
|
1656
|
-
* para exigir o motivo; `stopped_for` aceita `reason`; `answer_omits` exige `terms`, e vale quando
|
|
1657
|
-
* nenhum termo aparece em nenhuma resposta da execucao, sem acento e sem caixa. `transferred` vale
|
|
1658
|
-
* para qualquer passagem a uma pessoa — pedida pelo agente ou por orcamento estourado — e aceita
|
|
1659
|
-
* `reason` para cobrar um motivo especifico (`customer_request`, `tool_failure`,
|
|
1660
|
-
* `provider_unavailable`, `budget_exceeded`, `period_budget_exceeded`, `unresolved`).
|
|
1661
|
-
* `not_transferred`, `answer_grounded` e `identification_required` nao levam campo — este ultimo
|
|
1662
|
-
* vale quando alguma ferramenta do cenario foi recusada por falta de cliente identificado.
|
|
1663
|
-
*/
|
|
1664
1390
|
expectations: Array<Scalars['JSON']['input']>;
|
|
1665
1391
|
scenarioId: Scalars['ID']['input'];
|
|
1666
1392
|
turns: Array<Scalars['String']['input']>;
|
|
@@ -1672,7 +1398,6 @@ export type SaveAiAgentUseCaseInput = {
|
|
|
1672
1398
|
procedureId?: InputMaybe<Scalars['ID']['input']>;
|
|
1673
1399
|
status: Scalars['String']['input'];
|
|
1674
1400
|
subjectDescription: Scalars['String']['input'];
|
|
1675
|
-
/** Ausente apaga a tag gravada. */
|
|
1676
1401
|
tag?: InputMaybe<Scalars['String']['input']>;
|
|
1677
1402
|
};
|
|
1678
1403
|
export type SearchResultsFacet = {
|
|
@@ -1811,7 +1536,7 @@ export type UpdateQnAInstanceInput = {
|
|
|
1811
1536
|
};
|
|
1812
1537
|
export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'agentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
|
|
1813
1538
|
export type AiAgentVersionFragment = Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'>;
|
|
1814
|
-
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels'> & {
|
|
1539
|
+
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator'> & {
|
|
1815
1540
|
identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
|
|
1816
1541
|
budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
|
|
1817
1542
|
handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
|
|
@@ -1891,7 +1616,7 @@ export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'g
|
|
|
1891
1616
|
export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'emptyResultMessage' | 'customerScope' | 'returns' | 'approval'> & {
|
|
1892
1617
|
parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding' | 'format'>>;
|
|
1893
1618
|
});
|
|
1894
|
-
export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt'> & {
|
|
1619
|
+
export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt' | 'model' | 'reasoningEffort'> & {
|
|
1895
1620
|
excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
|
|
1896
1621
|
toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass'>>;
|
|
1897
1622
|
});
|
|
@@ -2091,6 +1816,7 @@ export type AiAgentCheckRunFragment = (Pick<AiAgentCheckRun, 'runId' | 'agentId'
|
|
|
2091
1816
|
handoffReasons: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
2092
1817
|
turns: Array<(Pick<AiAgentScenarioTurn, 'turn' | 'runs' | 'answered' | 'grounded' | 'blocked' | 'identificationRequired'> & {
|
|
2093
1818
|
toolNames: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
1819
|
+
rejectedCalls?: Maybe<Array<Pick<AiAgentRejectedCall, 'toolName' | 'reason' | 'count'>>>;
|
|
2094
1820
|
blockCategories: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
2095
1821
|
})>;
|
|
2096
1822
|
})>;
|
|
@@ -2131,6 +1857,7 @@ export type AiAgentMetricsReportFragment = (Pick<AiAgentMetrics, 'agentId' | 'fr
|
|
|
2131
1857
|
};
|
|
2132
1858
|
handoffsByReason: Array<Pick<AiAgentHandoffReasonCount, 'key' | 'count'>>;
|
|
2133
1859
|
turnsByModel: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
1860
|
+
turnsByModelAndReasoningEffort: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
2134
1861
|
topTopics: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
2135
1862
|
topUnansweredQuestions: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
2136
1863
|
blocksByCategory: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
@@ -2255,7 +1982,7 @@ export type RemoveQnAInstanceMutation = {
|
|
|
2255
1982
|
};
|
|
2256
1983
|
export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
|
|
2257
1984
|
export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
2258
|
-
export declare const AiAgentSpecFragmentDoc = "\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n}\n ";
|
|
1985
|
+
export declare const AiAgentSpecFragmentDoc = "\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n}\n ";
|
|
2259
1986
|
export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2260
1987
|
export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n ";
|
|
2261
1988
|
export declare const AiAgentListingMetricsFragmentDoc = "\n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
|
|
@@ -2263,14 +1990,14 @@ export declare const AiAgentListingMetricsFieldsFragmentDoc = "\n fragment ai
|
|
|
2263
1990
|
export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n tag\n status\n updatedAt\n}\n ";
|
|
2264
1991
|
export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n status\n updatedAt\n}\n ";
|
|
2265
1992
|
export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
|
|
2266
|
-
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n ";
|
|
1993
|
+
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n ";
|
|
2267
1994
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2268
1995
|
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2269
1996
|
export declare const AiAgentDashboardSentimentFragmentDoc = "\n fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {\n sentiment\n count\n percent\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2270
1997
|
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
2271
1998
|
export declare const AiAgentApprovalFragmentDoc = "\n fragment aiAgentApproval on AiAgentApproval {\n agentId\n sessionId\n toolId\n toolName\n args\n channelId\n customerId\n requestedAt\n expiresAt\n status\n decidedBy\n decidedAt\n}\n ";
|
|
2272
|
-
export declare const AiAgentCheckRunFragmentDoc = "\n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
2273
|
-
export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
1999
|
+
export declare const AiAgentCheckRunFragmentDoc = "\n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
2000
|
+
export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n turnsByModelAndReasoningEffort {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
2274
2001
|
export declare const NlpInstanceFragmentDoc = "\n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
2275
2002
|
export declare const QnaFragmentFragmentDoc = "\n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n ";
|
|
2276
2003
|
export declare const ListAiAgentsDocument = "\n query listAiAgents {\n listAiAgents {\n ...aiAgentSummary\n }\n}\n \n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
|
|
@@ -2287,7 +2014,7 @@ export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCa
|
|
|
2287
2014
|
export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($agentId: ID!) {\n listAiAgentProcedures(agentId: $agentId) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n status\n updatedAt\n}\n ";
|
|
2288
2015
|
export declare const ListAiAgentToolsDocument = "\n query listAiAgentTools {\n listAiAgentTools {\n ...aiAgentTool\n }\n}\n \n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
|
|
2289
2016
|
export declare const AiAgentUseCaseOverlapDocument = "\n query aiAgentUseCaseOverlap($agentId: ID!) {\n aiAgentUseCaseOverlap(agentId: $agentId) {\n threshold\n pairs {\n left\n right\n score\n }\n }\n}\n ";
|
|
2290
|
-
export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2017
|
+
export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2291
2018
|
export declare const ListAiAgentScenariosDocument = "\n query listAiAgentScenarios($agentId: ID!) {\n listAiAgentScenarios(agentId: $agentId) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2292
2019
|
export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
|
|
2293
2020
|
export declare const SetAiAgentRetentionPolicyDocument = "\n mutation setAiAgentRetentionPolicy($input: AiAgentRetentionPolicyInput!) {\n setAiAgentRetentionPolicy(input: $input) {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
|
|
@@ -2307,11 +2034,11 @@ export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAge
|
|
|
2307
2034
|
export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
|
|
2308
2035
|
export declare const RemoveAiAgentScenarioDocument = "\n mutation removeAiAgentScenario($input: RemoveAiAgentScenarioInput!) {\n removeAiAgentScenario(input: $input)\n}\n ";
|
|
2309
2036
|
export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {\n saveAiAgentScenario(input: $input) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2310
|
-
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2311
|
-
export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(agentId: $agentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2037
|
+
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2038
|
+
export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(agentId: $agentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2312
2039
|
export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
|
|
2313
|
-
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
2314
|
-
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n \n\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2040
|
+
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n turnsByModelAndReasoningEffort {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
2041
|
+
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n \n\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2315
2042
|
export declare const AiAgentRoutingPreviewDocument = "\n query aiAgentRoutingPreview($input: AiAgentRoutingPreviewInput!) {\n aiAgentRoutingPreview(input: $input) {\n high\n medium\n examples {\n message\n useCaseId\n score\n confidence\n }\n }\n}\n ";
|
|
2316
2043
|
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
|
|
2317
2044
|
export declare const ExtractImageMetadataDocument = "\n mutation extractImageMetadata($input: ExtractImageMetadataInput!) {\n extractImageMetadata(input: $input) {\n success\n model\n extractedMetadata\n tokenUsage {\n prompt\n completion\n total\n }\n }\n}\n ";
|