@droz-js/sdk 0.20.4 → 0.20.6
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/drozadmin.d.ts +3 -0
- package/src/drozchat-ws.d.ts +3 -0
- package/src/drozchat.d.ts +3 -0
- package/src/sdks/ai.d.ts +31 -13
- package/src/sdks/ai.js +4 -0
- package/src/sdks/drozbase.d.ts +55 -46
- package/src/sdks/drozbase.js +89 -45
- package/src/sdks/drozchat.d.ts +39 -0
- package/src/sdks/drozchat.js +27 -3
- package/src/sdks/drozcommons.d.ts +10 -0
- package/src/sdks/drozcommons.js +9 -1
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -131,6 +131,9 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
131
131
|
listReclameAquiInstances(variables: import("./sdks/drozcommons").Exact<{
|
|
132
132
|
tenantId: import("./sdks/drozcommons").Scalars["TenantId"]["input"];
|
|
133
133
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListReclameAquiInstancesQuery>;
|
|
134
|
+
listZendeskInstances(variables: import("./sdks/drozcommons").Exact<{
|
|
135
|
+
tenantId: import("./sdks/drozcommons").Scalars["TenantId"]["input"];
|
|
136
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListZendeskInstancesQuery>;
|
|
134
137
|
getReclameAquiTicketDetails(variables: import("./sdks/drozcommons").Exact<{
|
|
135
138
|
tenantId: import("./sdks/drozcommons").Scalars["TenantId"]["input"];
|
|
136
139
|
instanceId: import("./sdks/drozcommons").Scalars["String"]["input"];
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -124,6 +124,9 @@ declare const DrozChatWs_base: new () => {
|
|
|
124
124
|
liveSummary(variables?: import("./sdks/drozchat").Exact<{
|
|
125
125
|
[key: string]: never;
|
|
126
126
|
}>, options?: unknown): Promise<import("./sdks/drozchat").LiveSummaryQuery>;
|
|
127
|
+
onMonitoringTicketChange(variables?: import("./sdks/drozchat").Exact<{
|
|
128
|
+
[key: string]: never;
|
|
129
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnMonitoringTicketChangeSubscription>;
|
|
127
130
|
getSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
128
131
|
[key: string]: never;
|
|
129
132
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetSurveyQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -127,6 +127,9 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
127
127
|
liveSummary(variables?: import("./sdks/drozchat").Exact<{
|
|
128
128
|
[key: string]: never;
|
|
129
129
|
}>, options?: unknown): Promise<import("./sdks/drozchat").LiveSummaryQuery>;
|
|
130
|
+
onMonitoringTicketChange(variables?: import("./sdks/drozchat").Exact<{
|
|
131
|
+
[key: string]: never;
|
|
132
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnMonitoringTicketChangeSubscription>;
|
|
130
133
|
getSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
131
134
|
[key: string]: never;
|
|
132
135
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetSurveyQuery>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -262,6 +262,7 @@ export type AiAgentIdentityInput = {
|
|
|
262
262
|
};
|
|
263
263
|
export type AiAgentKnowledgeBase = {
|
|
264
264
|
id: Scalars['ID']['output'];
|
|
265
|
+
isPublic: Scalars['Boolean']['output'];
|
|
265
266
|
title: Scalars['String']['output'];
|
|
266
267
|
};
|
|
267
268
|
export type AiAgentMetrics = {
|
|
@@ -451,6 +452,8 @@ export type AiAgentRoutingPreviewInput = {
|
|
|
451
452
|
subject?: InputMaybe<Scalars['String']['input']>;
|
|
452
453
|
};
|
|
453
454
|
export type AiAgentScenario = {
|
|
455
|
+
/** Quem é o cliente nesta conversa. Ausente roda como anônimo. */
|
|
456
|
+
customerId?: Maybe<Scalars['ID']['output']>;
|
|
454
457
|
description: Scalars['String']['output'];
|
|
455
458
|
expectations: Array<Scalars['JSON']['output']>;
|
|
456
459
|
scenarioId: Scalars['ID']['output'];
|
|
@@ -458,8 +461,12 @@ export type AiAgentScenario = {
|
|
|
458
461
|
turns: Array<Scalars['String']['output']>;
|
|
459
462
|
};
|
|
460
463
|
export type AiAgentScenarioReport = {
|
|
464
|
+
/** Execuções que o prazo interrompeu antes de poderem ser julgadas. */
|
|
465
|
+
cut: Scalars['Int']['output'];
|
|
466
|
+
/** Execuções efetivamente julgadas. Zero significa que este cenário não produziu evidência. */
|
|
467
|
+
measured: Scalars['Int']['output'];
|
|
461
468
|
passed: Scalars['Int']['output'];
|
|
462
|
-
/** Fração
|
|
469
|
+
/** Fração das execuções MEDIDAS em que todas as expectativas valeram, 0..1. Sem sentido com measured 0. */
|
|
463
470
|
rate: Scalars['Float']['output'];
|
|
464
471
|
runs: Scalars['Int']['output'];
|
|
465
472
|
scenarioId: Scalars['ID']['output'];
|
|
@@ -475,6 +482,8 @@ export type AiAgentScenarioTurn = {
|
|
|
475
482
|
blocked: Scalars['Int']['output'];
|
|
476
483
|
/** Execuções em que a resposta deste turno se apoiou em conhecimento ou ferramenta. */
|
|
477
484
|
grounded: Scalars['Int']['output'];
|
|
485
|
+
/** Execuções em que uma ferramenta deste turno foi recusada por falta de cliente identificado. */
|
|
486
|
+
identificationRequired: Scalars['Int']['output'];
|
|
478
487
|
/** Execuções que chegaram a este turno. */
|
|
479
488
|
runs: Scalars['Int']['output'];
|
|
480
489
|
/** Ferramentas chamadas neste turno, e em quantas execuções. */
|
|
@@ -494,7 +503,8 @@ export type AiAgentSpec = {
|
|
|
494
503
|
identity: AiAgentIdentity;
|
|
495
504
|
/**
|
|
496
505
|
* §4.8: bases do Droz Base vinculadas — ids de **space**, nao de credencial. A consulta e recortada
|
|
497
|
-
* por elas
|
|
506
|
+
* por elas. Vazia, o agente sem nenhum vinculo consulta o acervo do tenant e o agente so-ferramenta
|
|
507
|
+
* nao consulta nada.
|
|
498
508
|
*/
|
|
499
509
|
knowledgeBaseIds: Array<Scalars['ID']['output']>;
|
|
500
510
|
/** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
|
|
@@ -510,7 +520,8 @@ export type AiAgentSpecInput = {
|
|
|
510
520
|
identity: AiAgentIdentityInput;
|
|
511
521
|
/**
|
|
512
522
|
* §4.8: bases do Droz Base vinculadas — ids de **space**, nao de credencial. A consulta e recortada
|
|
513
|
-
* por elas
|
|
523
|
+
* por elas. Vazia, o agente sem nenhum vinculo consulta o acervo do tenant e o agente so-ferramenta
|
|
524
|
+
* nao consulta nada.
|
|
514
525
|
*/
|
|
515
526
|
knowledgeBaseIds: Array<Scalars['ID']['input']>;
|
|
516
527
|
/** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
|
|
@@ -1011,13 +1022,20 @@ export type SaveAiAgentProcedureInput = {
|
|
|
1011
1022
|
};
|
|
1012
1023
|
export type SaveAiAgentScenarioInput = {
|
|
1013
1024
|
agentId: Scalars['ID']['input'];
|
|
1025
|
+
/**
|
|
1026
|
+
* Quem é o cliente nesta conversa. Ausente roda como anônimo. Ferramenta que exige cliente
|
|
1027
|
+
* identificado substitui este valor na URL ou na credencial, e o simulador chama a integração
|
|
1028
|
+
* real com ele — não é um identificador de mentira sem efeito.
|
|
1029
|
+
*/
|
|
1030
|
+
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
1014
1031
|
description: Scalars['String']['input'];
|
|
1015
1032
|
/**
|
|
1016
1033
|
* Expectativas de comportamento, uma por objeto, cada uma com `kind`. `tool_called` aceita
|
|
1017
1034
|
* `toolName` e `withArgs`; `tool_not_called` aceita `toolName`; `blocked_by_rule` aceita `category`
|
|
1018
1035
|
* para exigir o motivo; `stopped_for` aceita `reason`; `answer_omits` exige `terms`, e vale quando
|
|
1019
1036
|
* nenhum termo aparece em nenhuma resposta da execucao, sem acento e sem caixa. `transferred`,
|
|
1020
|
-
* `not_transferred` e `
|
|
1037
|
+
* `not_transferred`, `answer_grounded` e `identification_required` nao levam campo — este ultimo
|
|
1038
|
+
* vale quando alguma ferramenta do cenario foi recusada por falta de cliente identificado.
|
|
1021
1039
|
*/
|
|
1022
1040
|
expectations: Array<Scalars['JSON']['input']>;
|
|
1023
1041
|
scenarioId: Scalars['ID']['input'];
|
|
@@ -1224,7 +1242,7 @@ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'descri
|
|
|
1224
1242
|
export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt'> & {
|
|
1225
1243
|
toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'connection' | 'errorClass'>>;
|
|
1226
1244
|
});
|
|
1227
|
-
export type AiAgentScenarioFragment = Pick<AiAgentScenario, 'scenarioId' | 'description' | 'turns' | 'expectations'>;
|
|
1245
|
+
export type AiAgentScenarioFragment = Pick<AiAgentScenario, 'scenarioId' | 'description' | 'customerId' | 'turns' | 'expectations'>;
|
|
1228
1246
|
export type ListAiAgentUseCasesQueryVariables = Exact<{
|
|
1229
1247
|
agentId: Scalars['ID']['input'];
|
|
1230
1248
|
}>;
|
|
@@ -1333,8 +1351,8 @@ export type SaveAiAgentScenarioMutation = {
|
|
|
1333
1351
|
};
|
|
1334
1352
|
export type AiAgentCheckRunFragment = (Pick<AiAgentCheckRun, 'runId' | 'agentId' | 'version' | 'status' | 'requestedAt' | 'startedAt' | 'finishedAt' | 'totalRuns' | 'completedRuns' | 'error'> & {
|
|
1335
1353
|
result?: Maybe<(Pick<AiAgentCheckResult, 'safeToPublish'> & {
|
|
1336
|
-
reports: Array<(Pick<AiAgentScenarioReport, 'scenarioId' | 'runs' | 'passed' | 'rate'> & {
|
|
1337
|
-
turns: Array<(Pick<AiAgentScenarioTurn, 'turn' | 'runs' | 'answered' | 'grounded' | 'blocked'> & {
|
|
1354
|
+
reports: Array<(Pick<AiAgentScenarioReport, 'scenarioId' | 'runs' | 'cut' | 'measured' | 'passed' | 'rate'> & {
|
|
1355
|
+
turns: Array<(Pick<AiAgentScenarioTurn, 'turn' | 'runs' | 'answered' | 'grounded' | 'blocked' | 'identificationRequired'> & {
|
|
1338
1356
|
toolNames: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
1339
1357
|
blockCategories: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
1340
1358
|
})>;
|
|
@@ -1495,8 +1513,8 @@ export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase
|
|
|
1495
1513
|
export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n status\n updatedAt\n}\n ";
|
|
1496
1514
|
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 }\n}\n ";
|
|
1497
1515
|
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 toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
|
|
1498
|
-
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n turns\n expectations\n}\n ";
|
|
1499
|
-
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 result {\n safeToPublish\n reports {\n scenarioId\n runs\n passed\n rate\n turns {\n turn\n runs\n answered\n grounded\n blocked\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 ";
|
|
1516
|
+
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
1517
|
+
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 result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\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 ";
|
|
1500
1518
|
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 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 ";
|
|
1501
1519
|
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 ";
|
|
1502
1520
|
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 ";
|
|
@@ -1514,7 +1532,7 @@ export declare const ListAiAgentProceduresDocument = "\n query listAiAgentPro
|
|
|
1514
1532
|
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 }\n}\n ";
|
|
1515
1533
|
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 ";
|
|
1516
1534
|
export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!) {\n aiAgentTrace(sessionId: $sessionId) {\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 toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
|
|
1517
|
-
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 turns\n expectations\n}\n ";
|
|
1535
|
+
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 ";
|
|
1518
1536
|
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 ";
|
|
1519
1537
|
export declare const AiAgentRetentionPolicyDocument = "\n query aiAgentRetentionPolicy {\n aiAgentRetentionPolicy {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
|
|
1520
1538
|
export declare const AiAgentConversationMetricsDocument = "\n query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {\n aiAgentConversationMetrics(input: $input) {\n sessionId\n channel\n turns\n startedAt\n lastTurnAt\n totalTokens\n costMicroUsd\n durationMs\n lastOutcome\n }\n}\n ";
|
|
@@ -1526,9 +1544,9 @@ export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAg
|
|
|
1526
1544
|
export declare const ResolveAiAgentApprovalDocument = "\n mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {\n resolveAiAgentApproval(input: $input)\n}\n ";
|
|
1527
1545
|
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 }\n}\n ";
|
|
1528
1546
|
export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
|
|
1529
|
-
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 turns\n expectations\n}\n ";
|
|
1530
|
-
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 result {\n safeToPublish\n reports {\n scenarioId\n runs\n passed\n rate\n turns {\n turn\n runs\n answered\n grounded\n blocked\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 ";
|
|
1531
|
-
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 result {\n safeToPublish\n reports {\n scenarioId\n runs\n passed\n rate\n turns {\n turn\n runs\n answered\n grounded\n blocked\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 ";
|
|
1547
|
+
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 ";
|
|
1548
|
+
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 result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\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 ";
|
|
1549
|
+
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 result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\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 ";
|
|
1532
1550
|
export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
|
|
1533
1551
|
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 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 ";
|
|
1534
1552
|
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}\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}\n ";
|
package/src/sdks/ai.js
CHANGED
|
@@ -233,6 +233,7 @@ exports.AiAgentScenarioFragmentDoc = `
|
|
|
233
233
|
fragment aiAgentScenario on AiAgentScenario {
|
|
234
234
|
scenarioId
|
|
235
235
|
description
|
|
236
|
+
customerId
|
|
236
237
|
turns
|
|
237
238
|
expectations
|
|
238
239
|
}
|
|
@@ -254,6 +255,8 @@ exports.AiAgentCheckRunFragmentDoc = `
|
|
|
254
255
|
reports {
|
|
255
256
|
scenarioId
|
|
256
257
|
runs
|
|
258
|
+
cut
|
|
259
|
+
measured
|
|
257
260
|
passed
|
|
258
261
|
rate
|
|
259
262
|
turns {
|
|
@@ -262,6 +265,7 @@ exports.AiAgentCheckRunFragmentDoc = `
|
|
|
262
265
|
answered
|
|
263
266
|
grounded
|
|
264
267
|
blocked
|
|
268
|
+
identificationRequired
|
|
265
269
|
toolNames {
|
|
266
270
|
key
|
|
267
271
|
count
|