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