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