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