@droz-js/sdk 0.19.22 → 0.19.23
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/drozai.d.ts +60 -0
- package/src/sdks/ai.d.ts +235 -0
- package/src/sdks/ai.js +356 -1
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -33,6 +33,66 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
33
33
|
removeAiAgent(variables: import("./sdks/ai").Exact<{
|
|
34
34
|
input: import("./sdks/ai").AiAgentRefInput;
|
|
35
35
|
}>, options?: unknown): Promise<import("./sdks/ai").RemoveAiAgentMutation>;
|
|
36
|
+
listAiAgentUseCases(variables: import("./sdks/ai").Exact<{
|
|
37
|
+
agentId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
38
|
+
}>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentUseCasesQuery>;
|
|
39
|
+
listAiAgentProcedures(variables: import("./sdks/ai").Exact<{
|
|
40
|
+
agentId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
41
|
+
}>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentProceduresQuery>;
|
|
42
|
+
listAiAgentTools(variables?: import("./sdks/ai").Exact<{
|
|
43
|
+
[key: string]: never;
|
|
44
|
+
}>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentToolsQuery>;
|
|
45
|
+
aiAgentUseCaseOverlap(variables: import("./sdks/ai").Exact<{
|
|
46
|
+
agentId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
47
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentUseCaseOverlapQuery>;
|
|
48
|
+
aiAgentTrace(variables: import("./sdks/ai").Exact<{
|
|
49
|
+
sessionId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
50
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentTraceQuery>;
|
|
51
|
+
listAiAgentScenarios(variables: import("./sdks/ai").Exact<{
|
|
52
|
+
agentId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
53
|
+
}>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentScenariosQuery>;
|
|
54
|
+
aiAgentRetentionPolicy(variables?: import("./sdks/ai").Exact<{
|
|
55
|
+
[key: string]: never;
|
|
56
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentRetentionPolicyQuery>;
|
|
57
|
+
aiAgentConversationMetrics(variables: import("./sdks/ai").Exact<{
|
|
58
|
+
input: import("./sdks/ai").AiAgentMetricsInput;
|
|
59
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentConversationMetricsQuery>;
|
|
60
|
+
aiAgentConversationOutcome(variables: import("./sdks/ai").Exact<{
|
|
61
|
+
sessionId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
62
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentConversationOutcomeQuery>;
|
|
63
|
+
saveAiAgentUseCase(variables: import("./sdks/ai").Exact<{
|
|
64
|
+
input: import("./sdks/ai").SaveAiAgentUseCaseInput;
|
|
65
|
+
}>, options?: unknown): Promise<import("./sdks/ai").SaveAiAgentUseCaseMutation>;
|
|
66
|
+
saveAiAgentProcedure(variables: import("./sdks/ai").Exact<{
|
|
67
|
+
input: import("./sdks/ai").SaveAiAgentProcedureInput;
|
|
68
|
+
}>, options?: unknown): Promise<import("./sdks/ai").SaveAiAgentProcedureMutation>;
|
|
69
|
+
removeAiAgentUseCase(variables: import("./sdks/ai").Exact<{
|
|
70
|
+
input: import("./sdks/ai").AiAgentAuthoringRefInput;
|
|
71
|
+
}>, options?: unknown): Promise<import("./sdks/ai").RemoveAiAgentUseCaseMutation>;
|
|
72
|
+
removeAiAgentProcedure(variables: import("./sdks/ai").Exact<{
|
|
73
|
+
input: import("./sdks/ai").AiAgentAuthoringRefInput;
|
|
74
|
+
}>, options?: unknown): Promise<import("./sdks/ai").RemoveAiAgentProcedureMutation>;
|
|
75
|
+
resolveAiAgentApproval(variables: import("./sdks/ai").Exact<{
|
|
76
|
+
input: import("./sdks/ai").ResolveAiAgentApprovalInput;
|
|
77
|
+
}>, options?: unknown): Promise<import("./sdks/ai").ResolveAiAgentApprovalMutation>;
|
|
78
|
+
registerAiAgentTool(variables: import("./sdks/ai").Exact<{
|
|
79
|
+
input: import("./sdks/ai").RegisterAiAgentToolInput;
|
|
80
|
+
}>, options?: unknown): Promise<import("./sdks/ai").RegisterAiAgentToolMutation>;
|
|
81
|
+
unregisterAiAgentTool(variables: import("./sdks/ai").Exact<{
|
|
82
|
+
input: import("./sdks/ai").UnregisterAiAgentToolInput;
|
|
83
|
+
}>, options?: unknown): Promise<import("./sdks/ai").UnregisterAiAgentToolMutation>;
|
|
84
|
+
saveAiAgentScenario(variables: import("./sdks/ai").Exact<{
|
|
85
|
+
input: import("./sdks/ai").SaveAiAgentScenarioInput;
|
|
86
|
+
}>, options?: unknown): Promise<import("./sdks/ai").SaveAiAgentScenarioMutation>;
|
|
87
|
+
checkAiAgentVersion(variables: import("./sdks/ai").Exact<{
|
|
88
|
+
input: import("./sdks/ai").CheckAiAgentVersionInput;
|
|
89
|
+
}>, options?: unknown): Promise<import("./sdks/ai").CheckAiAgentVersionMutation>;
|
|
90
|
+
aiAgentMetrics(variables: import("./sdks/ai").Exact<{
|
|
91
|
+
input: import("./sdks/ai").AiAgentMetricsInput;
|
|
92
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentMetricsQuery>;
|
|
93
|
+
aiAgentVersionSpec(variables: import("./sdks/ai").Exact<{
|
|
94
|
+
agentId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
95
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentVersionSpecQuery>;
|
|
36
96
|
extractImageMetadata(variables: import("./sdks/ai").Exact<{
|
|
37
97
|
input: import("./sdks/ai").ExtractImageMetadataInput;
|
|
38
98
|
}>, options?: unknown): Promise<import("./sdks/ai").ExtractImageMetadataMutation>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -138,6 +138,11 @@ export type AiAgentBudget = {
|
|
|
138
138
|
* que sempre vale.
|
|
139
139
|
*/
|
|
140
140
|
maxCostMicroUsd?: Maybe<Scalars['Int']['output']>;
|
|
141
|
+
/**
|
|
142
|
+
* Teto de gasto do agente no periodo (mes calendario UTC), em micro-dolar. Ausente = sem teto de
|
|
143
|
+
* periodo. Independe de `maxCostMicroUsd`, que vale por conversa.
|
|
144
|
+
*/
|
|
145
|
+
maxPeriodCostMicroUsd?: Maybe<Scalars['Int']['output']>;
|
|
141
146
|
maxSteps: Scalars['Int']['output'];
|
|
142
147
|
/** Teto de token da conversa inteira. Ausente = sem teto de token. */
|
|
143
148
|
maxTokens?: Maybe<Scalars['Int']['output']>;
|
|
@@ -146,6 +151,7 @@ export type AiAgentBudget = {
|
|
|
146
151
|
};
|
|
147
152
|
export type AiAgentBudgetInput = {
|
|
148
153
|
maxCostMicroUsd?: InputMaybe<Scalars['Int']['input']>;
|
|
154
|
+
maxPeriodCostMicroUsd?: InputMaybe<Scalars['Int']['input']>;
|
|
149
155
|
maxSteps: Scalars['Int']['input'];
|
|
150
156
|
maxTokens?: InputMaybe<Scalars['Int']['input']>;
|
|
151
157
|
maxToolCalls: Scalars['Int']['input'];
|
|
@@ -199,9 +205,12 @@ export type AiAgentConversationOutcome = {
|
|
|
199
205
|
* autor para dizer onde procura-la, em vez de prometer transferencia que nao acontece.
|
|
200
206
|
*/
|
|
201
207
|
export type AiAgentHandoff = {
|
|
208
|
+
/** `human` ou `flow`. Ausente = nao declarado: a metrica conta a parte, sem supor destino. */
|
|
209
|
+
target?: Maybe<Scalars['String']['output']>;
|
|
202
210
|
transition: Scalars['String']['output'];
|
|
203
211
|
};
|
|
204
212
|
export type AiAgentHandoffInput = {
|
|
213
|
+
target?: InputMaybe<Scalars['String']['input']>;
|
|
205
214
|
transition: Scalars['String']['input'];
|
|
206
215
|
};
|
|
207
216
|
export type AiAgentIdentity = {
|
|
@@ -223,9 +232,24 @@ export type AiAgentIdentityInput = {
|
|
|
223
232
|
export type AiAgentMetrics = {
|
|
224
233
|
agentId: Scalars['ID']['output'];
|
|
225
234
|
answeredTurns: Scalars['Number']['output'];
|
|
235
|
+
/**
|
|
236
|
+
* Turnos que responderam mesmo com uma conexao falha no meio. E a superficie de risco do guardrail de
|
|
237
|
+
* §4.7 — nao prova resposta inventada, mas e onde ela poderia acontecer.
|
|
238
|
+
*/
|
|
239
|
+
answeredWithFailedConnectionTurns: Scalars['Number']['output'];
|
|
226
240
|
avgLlmLatencyMs: Scalars['Number']['output'];
|
|
227
241
|
avgTurnDurationMs: Scalars['Number']['output'];
|
|
242
|
+
/** Turnos cuja resposta foi bloqueada na validacao antes do envio. */
|
|
243
|
+
blockedTurns: Scalars['Number']['output'];
|
|
244
|
+
blocksByCategory: Array<AiAgentMetricsCount>;
|
|
228
245
|
budgetExceededTurns: Scalars['Number']['output'];
|
|
246
|
+
/**
|
|
247
|
+
* Entrada servida pelo cache do proprio provedor: quanto do contexto nao foi pago a preco cheio.
|
|
248
|
+
* Provedor que nao reporta cache vale zero.
|
|
249
|
+
*/
|
|
250
|
+
cachedInputTokens: Scalars['Number']['output'];
|
|
251
|
+
/** Turnos respondidos pelo cache, sem chamada ao modelo. E o ganho da otimizacao de §4.9. */
|
|
252
|
+
cachedTurns: Scalars['Number']['output'];
|
|
229
253
|
conversations: Scalars['Number']['output'];
|
|
230
254
|
/**
|
|
231
255
|
* Conversas em que algum turno **pediu** uma pessoa. Pedido, nao confirmacao: o disparo da transicao
|
|
@@ -242,6 +266,20 @@ export type AiAgentMetrics = {
|
|
|
242
266
|
conversationsResolved: Scalars['Number']['output'];
|
|
243
267
|
/** Gasto da janela em micro-dolar (1e-6 USD), inteiro. */
|
|
244
268
|
costMicroUsd: Scalars['Number']['output'];
|
|
269
|
+
/**
|
|
270
|
+
* Gasto da janela dividido pelas conversas resolvidas, em micro-dolar. **Ausente** quando nenhuma
|
|
271
|
+
* conversa resolveu no periodo — dividir por zero nao vira zero.
|
|
272
|
+
*/
|
|
273
|
+
costMicroUsdPerResolvedConversation?: Maybe<Scalars['Number']['output']>;
|
|
274
|
+
/**
|
|
275
|
+
* Escalonou, mas a transicao nao tem destino declarado. Fica a parte de proposito: somar a um dos
|
|
276
|
+
* dois lados seria supor para onde o fluxo do tenant leva.
|
|
277
|
+
*/
|
|
278
|
+
escalatedTargetUndeclared: Scalars['Number']['output'];
|
|
279
|
+
/** Escalonamentos cujo destino o autor declarou como fluxo. */
|
|
280
|
+
escalatedToFlow: Scalars['Number']['output'];
|
|
281
|
+
/** Escalonamentos cujo destino o autor declarou como pessoa. */
|
|
282
|
+
escalatedToHuman: Scalars['Number']['output'];
|
|
245
283
|
from: Scalars['Number']['output'];
|
|
246
284
|
haltReasons: Array<AiAgentMetricsCount>;
|
|
247
285
|
haltedTurns: Scalars['Number']['output'];
|
|
@@ -272,11 +310,22 @@ export type AiAgentMetrics = {
|
|
|
272
310
|
toolErrorsByClass: Array<AiAgentMetricsCount>;
|
|
273
311
|
/** Falhas por conexao externa, identificada pelo host — responde "qual integracao esta caindo". */
|
|
274
312
|
toolErrorsByConnection: Array<AiAgentMetricsCount>;
|
|
313
|
+
/** Assuntos mais frequentes da janela, escolhidos no conjunto fechado do `can` de cada agente. */
|
|
314
|
+
topTopics: Array<AiAgentMetricsCount>;
|
|
315
|
+
/** As perguntas mais frequentes sem resposta, agrupadas por texto normalizado. */
|
|
316
|
+
topUnansweredQuestions: Array<AiAgentMetricsCount>;
|
|
275
317
|
totalTokens: Scalars['Number']['output'];
|
|
276
318
|
/** true quando o teto de leitura foi atingido: os numeros cobrem parte do periodo. */
|
|
277
319
|
truncated: Scalars['Boolean']['output'];
|
|
278
320
|
turns: Scalars['Number']['output'];
|
|
279
321
|
turnsByModel: Array<AiAgentMetricsCount>;
|
|
322
|
+
/**
|
|
323
|
+
* A regra aplicada para contar turno sem resposta, junto do numero, para ele nao ser lido como cada
|
|
324
|
+
* um quiser. Deterministica: qualidade da resposta nao e medivel aqui.
|
|
325
|
+
*/
|
|
326
|
+
unansweredDefinition: Scalars['String']['output'];
|
|
327
|
+
/** Turnos sem resposta satisfatoria sob a regra declarada em `unansweredDefinition`. */
|
|
328
|
+
unansweredTurns: Scalars['Number']['output'];
|
|
280
329
|
/**
|
|
281
330
|
* Turnos com ao menos uma chamada ao modelo sem preco conhecido. Com isto > 0, `costMicroUsd` e
|
|
282
331
|
* **piso**, nao total — nao decidir preco sem olhar este numero.
|
|
@@ -517,6 +566,7 @@ export declare enum AppInstanceStatus {
|
|
|
517
566
|
Inactive = "Inactive"
|
|
518
567
|
}
|
|
519
568
|
export declare enum BudgetExceededAction {
|
|
569
|
+
DegradeModel = "degrade_model",
|
|
520
570
|
EndWithNotice = "end_with_notice",
|
|
521
571
|
TransferToHuman = "transfer_to_human"
|
|
522
572
|
}
|
|
@@ -935,12 +985,14 @@ export declare enum ToolParameterType {
|
|
|
935
985
|
String = "string"
|
|
936
986
|
}
|
|
937
987
|
export declare enum Typenames {
|
|
988
|
+
AiAgentAnswerCache = "AiAgentAnswerCache",
|
|
938
989
|
AiAgentApproval = "AiAgentApproval",
|
|
939
990
|
AiAgentEvalReport = "AiAgentEvalReport",
|
|
940
991
|
AiAgentProcedure = "AiAgentProcedure",
|
|
941
992
|
AiAgentRetentionPolicy = "AiAgentRetentionPolicy",
|
|
942
993
|
AiAgentScenario = "AiAgentScenario",
|
|
943
994
|
AiAgentSession = "AiAgentSession",
|
|
995
|
+
AiAgentSpend = "AiAgentSpend",
|
|
944
996
|
AiAgentTool = "AiAgentTool",
|
|
945
997
|
AiAgentTrace = "AiAgentTrace",
|
|
946
998
|
AiAgentUseCase = "AiAgentUseCase",
|
|
@@ -968,6 +1020,14 @@ export type UpdateQnAInstanceInput = {
|
|
|
968
1020
|
};
|
|
969
1021
|
export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'agentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
|
|
970
1022
|
export type AiAgentVersionFragment = Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'>;
|
|
1023
|
+
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels'> & {
|
|
1024
|
+
identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
|
|
1025
|
+
budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
|
|
1026
|
+
handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
|
|
1027
|
+
});
|
|
1028
|
+
export type AiAgentVersionWithSpecFragment = (Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'> & {
|
|
1029
|
+
spec: AiAgentSpecFragment;
|
|
1030
|
+
});
|
|
971
1031
|
export type AiAgentListingMetricsFragment = Pick<AiAgentMetrics, 'agentId' | 'conversations' | 'conversationsResolved' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'costMicroUsd'>;
|
|
972
1032
|
export type ListAiAgentsQueryVariables = Exact<{
|
|
973
1033
|
[key: string]: never;
|
|
@@ -1021,6 +1081,134 @@ export type RemoveAiAgentMutationVariables = Exact<{
|
|
|
1021
1081
|
input: AiAgentRefInput;
|
|
1022
1082
|
}>;
|
|
1023
1083
|
export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
|
|
1084
|
+
export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'status' | 'updatedAt'>;
|
|
1085
|
+
export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'status' | 'updatedAt'>;
|
|
1086
|
+
export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'customerScope' | 'returns' | 'approval'> & {
|
|
1087
|
+
parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding'>>;
|
|
1088
|
+
});
|
|
1089
|
+
export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt'> & {
|
|
1090
|
+
toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'connection' | 'errorClass'>>;
|
|
1091
|
+
});
|
|
1092
|
+
export type AiAgentScenarioFragment = Pick<AiAgentScenario, 'scenarioId' | 'description' | 'turns' | 'expectations'>;
|
|
1093
|
+
export type ListAiAgentUseCasesQueryVariables = Exact<{
|
|
1094
|
+
agentId: Scalars['ID']['input'];
|
|
1095
|
+
}>;
|
|
1096
|
+
export type ListAiAgentUseCasesQuery = {
|
|
1097
|
+
listAiAgentUseCases: Array<AiAgentUseCaseFragment>;
|
|
1098
|
+
};
|
|
1099
|
+
export type ListAiAgentProceduresQueryVariables = Exact<{
|
|
1100
|
+
agentId: Scalars['ID']['input'];
|
|
1101
|
+
}>;
|
|
1102
|
+
export type ListAiAgentProceduresQuery = {
|
|
1103
|
+
listAiAgentProcedures: Array<AiAgentProcedureFragment>;
|
|
1104
|
+
};
|
|
1105
|
+
export type ListAiAgentToolsQueryVariables = Exact<{
|
|
1106
|
+
[key: string]: never;
|
|
1107
|
+
}>;
|
|
1108
|
+
export type ListAiAgentToolsQuery = {
|
|
1109
|
+
listAiAgentTools: Array<AiAgentToolFragment>;
|
|
1110
|
+
};
|
|
1111
|
+
export type AiAgentUseCaseOverlapQueryVariables = Exact<{
|
|
1112
|
+
agentId: Scalars['ID']['input'];
|
|
1113
|
+
}>;
|
|
1114
|
+
export type AiAgentUseCaseOverlapQuery = {
|
|
1115
|
+
aiAgentUseCaseOverlap: (Pick<AiAgentUseCaseOverlap, 'threshold'> & {
|
|
1116
|
+
pairs: Array<Pick<AiAgentCompetingPair, 'left' | 'right' | 'score'>>;
|
|
1117
|
+
});
|
|
1118
|
+
};
|
|
1119
|
+
export type AiAgentTraceQueryVariables = Exact<{
|
|
1120
|
+
sessionId: Scalars['ID']['input'];
|
|
1121
|
+
}>;
|
|
1122
|
+
export type AiAgentTraceQuery = {
|
|
1123
|
+
aiAgentTrace: Array<AiAgentTraceFragment>;
|
|
1124
|
+
};
|
|
1125
|
+
export type ListAiAgentScenariosQueryVariables = Exact<{
|
|
1126
|
+
agentId: Scalars['ID']['input'];
|
|
1127
|
+
}>;
|
|
1128
|
+
export type ListAiAgentScenariosQuery = {
|
|
1129
|
+
listAiAgentScenarios: Array<AiAgentScenarioFragment>;
|
|
1130
|
+
};
|
|
1131
|
+
export type AiAgentRetentionPolicyQueryVariables = Exact<{
|
|
1132
|
+
[key: string]: never;
|
|
1133
|
+
}>;
|
|
1134
|
+
export type AiAgentRetentionPolicyQuery = {
|
|
1135
|
+
aiAgentRetentionPolicy: (Pick<AiAgentRetentionPolicy, 'masksPersonalData'> & {
|
|
1136
|
+
days: Pick<AiAgentRetentionDays, 'transcript' | 'session_state' | 'long_term_memory'>;
|
|
1137
|
+
});
|
|
1138
|
+
};
|
|
1139
|
+
export type AiAgentConversationMetricsQueryVariables = Exact<{
|
|
1140
|
+
input: AiAgentMetricsInput;
|
|
1141
|
+
}>;
|
|
1142
|
+
export type AiAgentConversationMetricsQuery = {
|
|
1143
|
+
aiAgentConversationMetrics: Array<Pick<AiAgentConversationMetrics, 'sessionId' | 'channel' | 'turns' | 'startedAt' | 'lastTurnAt' | 'totalTokens' | 'costMicroUsd' | 'durationMs' | 'lastOutcome'>>;
|
|
1144
|
+
};
|
|
1145
|
+
export type AiAgentConversationOutcomeQueryVariables = Exact<{
|
|
1146
|
+
sessionId: Scalars['ID']['input'];
|
|
1147
|
+
}>;
|
|
1148
|
+
export type AiAgentConversationOutcomeQuery = {
|
|
1149
|
+
aiAgentConversationOutcome?: Maybe<Pick<AiAgentConversationOutcome, 'sessionId' | 'agentId' | 'agentVersion' | 'resolution' | 'resolutionDefinition' | 'collectedData' | 'collectedDataAvailable' | 'turns' | 'startedAt' | 'lastTurnAt' | 'haltReason'>>;
|
|
1150
|
+
};
|
|
1151
|
+
export type SaveAiAgentUseCaseMutationVariables = Exact<{
|
|
1152
|
+
input: SaveAiAgentUseCaseInput;
|
|
1153
|
+
}>;
|
|
1154
|
+
export type SaveAiAgentUseCaseMutation = {
|
|
1155
|
+
saveAiAgentUseCase: AiAgentUseCaseFragment;
|
|
1156
|
+
};
|
|
1157
|
+
export type SaveAiAgentProcedureMutationVariables = Exact<{
|
|
1158
|
+
input: SaveAiAgentProcedureInput;
|
|
1159
|
+
}>;
|
|
1160
|
+
export type SaveAiAgentProcedureMutation = {
|
|
1161
|
+
saveAiAgentProcedure: AiAgentProcedureFragment;
|
|
1162
|
+
};
|
|
1163
|
+
export type RemoveAiAgentUseCaseMutationVariables = Exact<{
|
|
1164
|
+
input: AiAgentAuthoringRefInput;
|
|
1165
|
+
}>;
|
|
1166
|
+
export type RemoveAiAgentUseCaseMutation = Pick<Mutation, 'removeAiAgentUseCase'>;
|
|
1167
|
+
export type RemoveAiAgentProcedureMutationVariables = Exact<{
|
|
1168
|
+
input: AiAgentAuthoringRefInput;
|
|
1169
|
+
}>;
|
|
1170
|
+
export type RemoveAiAgentProcedureMutation = Pick<Mutation, 'removeAiAgentProcedure'>;
|
|
1171
|
+
export type ResolveAiAgentApprovalMutationVariables = Exact<{
|
|
1172
|
+
input: ResolveAiAgentApprovalInput;
|
|
1173
|
+
}>;
|
|
1174
|
+
export type ResolveAiAgentApprovalMutation = Pick<Mutation, 'resolveAiAgentApproval'>;
|
|
1175
|
+
export type RegisterAiAgentToolMutationVariables = Exact<{
|
|
1176
|
+
input: RegisterAiAgentToolInput;
|
|
1177
|
+
}>;
|
|
1178
|
+
export type RegisterAiAgentToolMutation = {
|
|
1179
|
+
registerAiAgentTool?: Maybe<AiAgentToolFragment>;
|
|
1180
|
+
};
|
|
1181
|
+
export type UnregisterAiAgentToolMutationVariables = Exact<{
|
|
1182
|
+
input: UnregisterAiAgentToolInput;
|
|
1183
|
+
}>;
|
|
1184
|
+
export type UnregisterAiAgentToolMutation = Pick<Mutation, 'unregisterAiAgentTool'>;
|
|
1185
|
+
export type SaveAiAgentScenarioMutationVariables = Exact<{
|
|
1186
|
+
input: SaveAiAgentScenarioInput;
|
|
1187
|
+
}>;
|
|
1188
|
+
export type SaveAiAgentScenarioMutation = {
|
|
1189
|
+
saveAiAgentScenario?: Maybe<AiAgentScenarioFragment>;
|
|
1190
|
+
};
|
|
1191
|
+
export type CheckAiAgentVersionMutationVariables = Exact<{
|
|
1192
|
+
input: CheckAiAgentVersionInput;
|
|
1193
|
+
}>;
|
|
1194
|
+
export type CheckAiAgentVersionMutation = {
|
|
1195
|
+
checkAiAgentVersion?: Maybe<(Pick<AiAgentCheckResult, 'safeToPublish'> & {
|
|
1196
|
+
reports: Array<Pick<AiAgentScenarioReport, 'scenarioId' | 'runs' | 'passed' | 'rate'>>;
|
|
1197
|
+
regressions: Array<Pick<AiAgentRegression, 'scenarioId' | 'before' | 'after'>>;
|
|
1198
|
+
})>;
|
|
1199
|
+
};
|
|
1200
|
+
export type AiAgentMetricsQueryVariables = Exact<{
|
|
1201
|
+
input: AiAgentMetricsInput;
|
|
1202
|
+
}>;
|
|
1203
|
+
export type AiAgentMetricsQuery = {
|
|
1204
|
+
aiAgentMetrics: AiAgentListingMetricsFragment;
|
|
1205
|
+
};
|
|
1206
|
+
export type AiAgentVersionSpecQueryVariables = Exact<{
|
|
1207
|
+
agentId: Scalars['ID']['input'];
|
|
1208
|
+
}>;
|
|
1209
|
+
export type AiAgentVersionSpecQuery = {
|
|
1210
|
+
listAiAgentVersions: Array<AiAgentVersionWithSpecFragment>;
|
|
1211
|
+
};
|
|
1024
1212
|
export type ExtractImageMetadataMutationVariables = Exact<{
|
|
1025
1213
|
input: ExtractImageMetadataInput;
|
|
1026
1214
|
}>;
|
|
@@ -1112,7 +1300,14 @@ export type RemoveQnAInstanceMutation = {
|
|
|
1112
1300
|
};
|
|
1113
1301
|
export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
|
|
1114
1302
|
export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1303
|
+
export declare const AiAgentSpecFragmentDoc = "\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n}\n ";
|
|
1304
|
+
export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n}\n ";
|
|
1115
1305
|
export declare const AiAgentListingMetricsFragmentDoc = "\n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
|
|
1306
|
+
export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n status\n updatedAt\n}\n ";
|
|
1307
|
+
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 ";
|
|
1308
|
+
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 ";
|
|
1309
|
+
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 ";
|
|
1310
|
+
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n turns\n expectations\n}\n ";
|
|
1116
1311
|
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 ";
|
|
1117
1312
|
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 ";
|
|
1118
1313
|
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 ";
|
|
@@ -1124,6 +1319,26 @@ export declare const UnpublishAiAgentVersionDocument = "\n mutation unpublish
|
|
|
1124
1319
|
export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAiAgentVersion($input: AiAgentVersionRefInput!) {\n rollbackAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1125
1320
|
export declare const RemoveAiAgentVersionDocument = "\n mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {\n removeAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1126
1321
|
export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
|
|
1322
|
+
export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCases($agentId: ID!) {\n listAiAgentUseCases(agentId: $agentId) {\n ...aiAgentUseCase\n }\n}\n \n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n status\n updatedAt\n}\n ";
|
|
1323
|
+
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 status\n updatedAt\n}\n ";
|
|
1324
|
+
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 ";
|
|
1325
|
+
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 ";
|
|
1326
|
+
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 ";
|
|
1327
|
+
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 ";
|
|
1328
|
+
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 ";
|
|
1329
|
+
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 ";
|
|
1330
|
+
export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!) {\n aiAgentConversationOutcome(sessionId: $sessionId) {\n sessionId\n agentId\n agentVersion\n resolution\n resolutionDefinition\n collectedData\n collectedDataAvailable\n turns\n startedAt\n lastTurnAt\n haltReason\n }\n}\n ";
|
|
1331
|
+
export declare const SaveAiAgentUseCaseDocument = "\n mutation saveAiAgentUseCase($input: SaveAiAgentUseCaseInput!) {\n saveAiAgentUseCase(input: $input) {\n ...aiAgentUseCase\n }\n}\n \n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n status\n updatedAt\n}\n ";
|
|
1332
|
+
export declare const SaveAiAgentProcedureDocument = "\n mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {\n saveAiAgentProcedure(input: $input) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n status\n updatedAt\n}\n ";
|
|
1333
|
+
export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
|
|
1334
|
+
export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
|
|
1335
|
+
export declare const ResolveAiAgentApprovalDocument = "\n mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {\n resolveAiAgentApproval(input: $input)\n}\n ";
|
|
1336
|
+
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 ";
|
|
1337
|
+
export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
|
|
1338
|
+
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 ";
|
|
1339
|
+
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n safeToPublish\n reports {\n scenarioId\n runs\n passed\n rate\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
1340
|
+
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentListingMetrics\n }\n}\n \n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
|
|
1341
|
+
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 ";
|
|
1127
1342
|
export declare const ExtractImageMetadataDocument = "\n mutation extractImageMetadata($input: ExtractImageMetadataInput!) {\n extractImageMetadata(input: $input) {\n success\n model\n extractedMetadata\n tokenUsage {\n prompt\n completion\n total\n }\n }\n}\n ";
|
|
1128
1343
|
export declare const GetNlpInstanceDocument = "\n query getNlpInstance($id: ID!) {\n getNlpInstance(id: $id) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
1129
1344
|
export declare const ListNlpInstancesDocument = "\n query listNlpInstances {\n listNlpInstances {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1148,6 +1363,26 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1148
1363
|
rollbackAiAgentVersion(variables: RollbackAiAgentVersionMutationVariables, options?: C): Promise<RollbackAiAgentVersionMutation>;
|
|
1149
1364
|
removeAiAgentVersion(variables: RemoveAiAgentVersionMutationVariables, options?: C): Promise<RemoveAiAgentVersionMutation>;
|
|
1150
1365
|
removeAiAgent(variables: RemoveAiAgentMutationVariables, options?: C): Promise<RemoveAiAgentMutation>;
|
|
1366
|
+
listAiAgentUseCases(variables: ListAiAgentUseCasesQueryVariables, options?: C): Promise<ListAiAgentUseCasesQuery>;
|
|
1367
|
+
listAiAgentProcedures(variables: ListAiAgentProceduresQueryVariables, options?: C): Promise<ListAiAgentProceduresQuery>;
|
|
1368
|
+
listAiAgentTools(variables?: ListAiAgentToolsQueryVariables, options?: C): Promise<ListAiAgentToolsQuery>;
|
|
1369
|
+
aiAgentUseCaseOverlap(variables: AiAgentUseCaseOverlapQueryVariables, options?: C): Promise<AiAgentUseCaseOverlapQuery>;
|
|
1370
|
+
aiAgentTrace(variables: AiAgentTraceQueryVariables, options?: C): Promise<AiAgentTraceQuery>;
|
|
1371
|
+
listAiAgentScenarios(variables: ListAiAgentScenariosQueryVariables, options?: C): Promise<ListAiAgentScenariosQuery>;
|
|
1372
|
+
aiAgentRetentionPolicy(variables?: AiAgentRetentionPolicyQueryVariables, options?: C): Promise<AiAgentRetentionPolicyQuery>;
|
|
1373
|
+
aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
|
|
1374
|
+
aiAgentConversationOutcome(variables: AiAgentConversationOutcomeQueryVariables, options?: C): Promise<AiAgentConversationOutcomeQuery>;
|
|
1375
|
+
saveAiAgentUseCase(variables: SaveAiAgentUseCaseMutationVariables, options?: C): Promise<SaveAiAgentUseCaseMutation>;
|
|
1376
|
+
saveAiAgentProcedure(variables: SaveAiAgentProcedureMutationVariables, options?: C): Promise<SaveAiAgentProcedureMutation>;
|
|
1377
|
+
removeAiAgentUseCase(variables: RemoveAiAgentUseCaseMutationVariables, options?: C): Promise<RemoveAiAgentUseCaseMutation>;
|
|
1378
|
+
removeAiAgentProcedure(variables: RemoveAiAgentProcedureMutationVariables, options?: C): Promise<RemoveAiAgentProcedureMutation>;
|
|
1379
|
+
resolveAiAgentApproval(variables: ResolveAiAgentApprovalMutationVariables, options?: C): Promise<ResolveAiAgentApprovalMutation>;
|
|
1380
|
+
registerAiAgentTool(variables: RegisterAiAgentToolMutationVariables, options?: C): Promise<RegisterAiAgentToolMutation>;
|
|
1381
|
+
unregisterAiAgentTool(variables: UnregisterAiAgentToolMutationVariables, options?: C): Promise<UnregisterAiAgentToolMutation>;
|
|
1382
|
+
saveAiAgentScenario(variables: SaveAiAgentScenarioMutationVariables, options?: C): Promise<SaveAiAgentScenarioMutation>;
|
|
1383
|
+
checkAiAgentVersion(variables: CheckAiAgentVersionMutationVariables, options?: C): Promise<CheckAiAgentVersionMutation>;
|
|
1384
|
+
aiAgentMetrics(variables: AiAgentMetricsQueryVariables, options?: C): Promise<AiAgentMetricsQuery>;
|
|
1385
|
+
aiAgentVersionSpec(variables: AiAgentVersionSpecQueryVariables, options?: C): Promise<AiAgentVersionSpecQuery>;
|
|
1151
1386
|
extractImageMetadata(variables: ExtractImageMetadataMutationVariables, options?: C): Promise<ExtractImageMetadataMutation>;
|
|
1152
1387
|
getNlpInstance(variables: GetNlpInstanceQueryVariables, options?: C): Promise<GetNlpInstanceQuery>;
|
|
1153
1388
|
listNlpInstances(variables?: ListNlpInstancesQueryVariables, options?: C): Promise<ListNlpInstancesQuery>;
|
package/src/sdks/ai.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.AiAgentMetricsDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.ResolveAiAgentApprovalDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentMetricsByAgentDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolEffect = exports.ToolAvailability = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentVersionSpecDocument = void 0;
|
|
5
6
|
exports.getSdk = getSdk;
|
|
6
7
|
var AiAgentVersionStatus;
|
|
7
8
|
(function (AiAgentVersionStatus) {
|
|
@@ -18,6 +19,7 @@ var AppInstanceStatus;
|
|
|
18
19
|
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
19
20
|
var BudgetExceededAction;
|
|
20
21
|
(function (BudgetExceededAction) {
|
|
22
|
+
BudgetExceededAction["DegradeModel"] = "degrade_model";
|
|
21
23
|
BudgetExceededAction["EndWithNotice"] = "end_with_notice";
|
|
22
24
|
BudgetExceededAction["TransferToHuman"] = "transfer_to_human";
|
|
23
25
|
})(BudgetExceededAction || (exports.BudgetExceededAction = BudgetExceededAction = {}));
|
|
@@ -59,12 +61,14 @@ var ToolParameterType;
|
|
|
59
61
|
})(ToolParameterType || (exports.ToolParameterType = ToolParameterType = {}));
|
|
60
62
|
var Typenames;
|
|
61
63
|
(function (Typenames) {
|
|
64
|
+
Typenames["AiAgentAnswerCache"] = "AiAgentAnswerCache";
|
|
62
65
|
Typenames["AiAgentApproval"] = "AiAgentApproval";
|
|
63
66
|
Typenames["AiAgentEvalReport"] = "AiAgentEvalReport";
|
|
64
67
|
Typenames["AiAgentProcedure"] = "AiAgentProcedure";
|
|
65
68
|
Typenames["AiAgentRetentionPolicy"] = "AiAgentRetentionPolicy";
|
|
66
69
|
Typenames["AiAgentScenario"] = "AiAgentScenario";
|
|
67
70
|
Typenames["AiAgentSession"] = "AiAgentSession";
|
|
71
|
+
Typenames["AiAgentSpend"] = "AiAgentSpend";
|
|
68
72
|
Typenames["AiAgentTool"] = "AiAgentTool";
|
|
69
73
|
Typenames["AiAgentTrace"] = "AiAgentTrace";
|
|
70
74
|
Typenames["AiAgentUseCase"] = "AiAgentUseCase";
|
|
@@ -95,6 +99,47 @@ exports.AiAgentVersionFragmentDoc = `
|
|
|
95
99
|
createdAt
|
|
96
100
|
}
|
|
97
101
|
`;
|
|
102
|
+
exports.AiAgentSpecFragmentDoc = `
|
|
103
|
+
fragment aiAgentSpec on AiAgentSpec {
|
|
104
|
+
identity {
|
|
105
|
+
displayName
|
|
106
|
+
role
|
|
107
|
+
tone
|
|
108
|
+
toneNotes
|
|
109
|
+
openingMessage
|
|
110
|
+
outOfScopeBehaviour
|
|
111
|
+
}
|
|
112
|
+
can
|
|
113
|
+
cannot
|
|
114
|
+
knowledgeBaseIds
|
|
115
|
+
knowledgeFallback
|
|
116
|
+
toolIds
|
|
117
|
+
budget {
|
|
118
|
+
maxSteps
|
|
119
|
+
maxToolCalls
|
|
120
|
+
maxTokens
|
|
121
|
+
maxCostMicroUsd
|
|
122
|
+
maxPeriodCostMicroUsd
|
|
123
|
+
onExceeded
|
|
124
|
+
}
|
|
125
|
+
handoff {
|
|
126
|
+
transition
|
|
127
|
+
target
|
|
128
|
+
}
|
|
129
|
+
channels
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
exports.AiAgentVersionWithSpecFragmentDoc = `
|
|
133
|
+
fragment aiAgentVersionWithSpec on AiAgentVersion {
|
|
134
|
+
agentId
|
|
135
|
+
version
|
|
136
|
+
status
|
|
137
|
+
createdAt
|
|
138
|
+
spec {
|
|
139
|
+
...aiAgentSpec
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
98
143
|
exports.AiAgentListingMetricsFragmentDoc = `
|
|
99
144
|
fragment aiAgentListingMetrics on AiAgentMetrics {
|
|
100
145
|
agentId
|
|
@@ -106,6 +151,84 @@ exports.AiAgentListingMetricsFragmentDoc = `
|
|
|
106
151
|
costMicroUsd
|
|
107
152
|
}
|
|
108
153
|
`;
|
|
154
|
+
exports.AiAgentUseCaseFragmentDoc = `
|
|
155
|
+
fragment aiAgentUseCase on AiAgentUseCase {
|
|
156
|
+
id
|
|
157
|
+
name
|
|
158
|
+
subjectDescription
|
|
159
|
+
procedureId
|
|
160
|
+
status
|
|
161
|
+
updatedAt
|
|
162
|
+
}
|
|
163
|
+
`;
|
|
164
|
+
exports.AiAgentProcedureFragmentDoc = `
|
|
165
|
+
fragment aiAgentProcedure on AiAgentProcedure {
|
|
166
|
+
id
|
|
167
|
+
name
|
|
168
|
+
guidanceSteps
|
|
169
|
+
toolIds
|
|
170
|
+
contingency
|
|
171
|
+
executionAutonomy
|
|
172
|
+
status
|
|
173
|
+
updatedAt
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
exports.AiAgentToolFragmentDoc = `
|
|
177
|
+
fragment aiAgentTool on AiAgentTool {
|
|
178
|
+
toolId
|
|
179
|
+
name
|
|
180
|
+
description
|
|
181
|
+
effect
|
|
182
|
+
availability
|
|
183
|
+
requiresAuthenticatedCustomer
|
|
184
|
+
onFailure
|
|
185
|
+
customerScope
|
|
186
|
+
returns
|
|
187
|
+
approval
|
|
188
|
+
parameters {
|
|
189
|
+
name
|
|
190
|
+
type
|
|
191
|
+
required
|
|
192
|
+
description
|
|
193
|
+
grounding
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
`;
|
|
197
|
+
exports.AiAgentTraceFragmentDoc = `
|
|
198
|
+
fragment aiAgentTrace on AiAgentTrace {
|
|
199
|
+
sessionId
|
|
200
|
+
turn
|
|
201
|
+
agentId
|
|
202
|
+
agentVersion
|
|
203
|
+
input
|
|
204
|
+
promptBuilderVersion
|
|
205
|
+
masterRuleVersion
|
|
206
|
+
identificationRequired
|
|
207
|
+
promptFingerprint
|
|
208
|
+
knowledgeOrigins
|
|
209
|
+
outcome
|
|
210
|
+
haltReason
|
|
211
|
+
steps
|
|
212
|
+
answer
|
|
213
|
+
startedAt
|
|
214
|
+
toolCalls {
|
|
215
|
+
toolId
|
|
216
|
+
name
|
|
217
|
+
result
|
|
218
|
+
ok
|
|
219
|
+
connection
|
|
220
|
+
errorClass
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`;
|
|
224
|
+
exports.AiAgentScenarioFragmentDoc = `
|
|
225
|
+
fragment aiAgentScenario on AiAgentScenario {
|
|
226
|
+
scenarioId
|
|
227
|
+
description
|
|
228
|
+
turns
|
|
229
|
+
expectations
|
|
230
|
+
}
|
|
231
|
+
`;
|
|
109
232
|
exports.NlpInstanceFragmentDoc = `
|
|
110
233
|
fragment nlpInstance on NlpInstance {
|
|
111
234
|
id
|
|
@@ -191,6 +314,178 @@ exports.RemoveAiAgentDocument = `
|
|
|
191
314
|
removeAiAgent(input: $input)
|
|
192
315
|
}
|
|
193
316
|
`;
|
|
317
|
+
exports.ListAiAgentUseCasesDocument = `
|
|
318
|
+
query listAiAgentUseCases($agentId: ID!) {
|
|
319
|
+
listAiAgentUseCases(agentId: $agentId) {
|
|
320
|
+
...aiAgentUseCase
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
${exports.AiAgentUseCaseFragmentDoc}`;
|
|
324
|
+
exports.ListAiAgentProceduresDocument = `
|
|
325
|
+
query listAiAgentProcedures($agentId: ID!) {
|
|
326
|
+
listAiAgentProcedures(agentId: $agentId) {
|
|
327
|
+
...aiAgentProcedure
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
${exports.AiAgentProcedureFragmentDoc}`;
|
|
331
|
+
exports.ListAiAgentToolsDocument = `
|
|
332
|
+
query listAiAgentTools {
|
|
333
|
+
listAiAgentTools {
|
|
334
|
+
...aiAgentTool
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
${exports.AiAgentToolFragmentDoc}`;
|
|
338
|
+
exports.AiAgentUseCaseOverlapDocument = `
|
|
339
|
+
query aiAgentUseCaseOverlap($agentId: ID!) {
|
|
340
|
+
aiAgentUseCaseOverlap(agentId: $agentId) {
|
|
341
|
+
threshold
|
|
342
|
+
pairs {
|
|
343
|
+
left
|
|
344
|
+
right
|
|
345
|
+
score
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
`;
|
|
350
|
+
exports.AiAgentTraceDocument = `
|
|
351
|
+
query aiAgentTrace($sessionId: ID!) {
|
|
352
|
+
aiAgentTrace(sessionId: $sessionId) {
|
|
353
|
+
...aiAgentTrace
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
${exports.AiAgentTraceFragmentDoc}`;
|
|
357
|
+
exports.ListAiAgentScenariosDocument = `
|
|
358
|
+
query listAiAgentScenarios($agentId: ID!) {
|
|
359
|
+
listAiAgentScenarios(agentId: $agentId) {
|
|
360
|
+
...aiAgentScenario
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
${exports.AiAgentScenarioFragmentDoc}`;
|
|
364
|
+
exports.AiAgentRetentionPolicyDocument = `
|
|
365
|
+
query aiAgentRetentionPolicy {
|
|
366
|
+
aiAgentRetentionPolicy {
|
|
367
|
+
days {
|
|
368
|
+
transcript
|
|
369
|
+
session_state
|
|
370
|
+
long_term_memory
|
|
371
|
+
}
|
|
372
|
+
masksPersonalData
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
`;
|
|
376
|
+
exports.AiAgentConversationMetricsDocument = `
|
|
377
|
+
query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {
|
|
378
|
+
aiAgentConversationMetrics(input: $input) {
|
|
379
|
+
sessionId
|
|
380
|
+
channel
|
|
381
|
+
turns
|
|
382
|
+
startedAt
|
|
383
|
+
lastTurnAt
|
|
384
|
+
totalTokens
|
|
385
|
+
costMicroUsd
|
|
386
|
+
durationMs
|
|
387
|
+
lastOutcome
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
`;
|
|
391
|
+
exports.AiAgentConversationOutcomeDocument = `
|
|
392
|
+
query aiAgentConversationOutcome($sessionId: ID!) {
|
|
393
|
+
aiAgentConversationOutcome(sessionId: $sessionId) {
|
|
394
|
+
sessionId
|
|
395
|
+
agentId
|
|
396
|
+
agentVersion
|
|
397
|
+
resolution
|
|
398
|
+
resolutionDefinition
|
|
399
|
+
collectedData
|
|
400
|
+
collectedDataAvailable
|
|
401
|
+
turns
|
|
402
|
+
startedAt
|
|
403
|
+
lastTurnAt
|
|
404
|
+
haltReason
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
`;
|
|
408
|
+
exports.SaveAiAgentUseCaseDocument = `
|
|
409
|
+
mutation saveAiAgentUseCase($input: SaveAiAgentUseCaseInput!) {
|
|
410
|
+
saveAiAgentUseCase(input: $input) {
|
|
411
|
+
...aiAgentUseCase
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
${exports.AiAgentUseCaseFragmentDoc}`;
|
|
415
|
+
exports.SaveAiAgentProcedureDocument = `
|
|
416
|
+
mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {
|
|
417
|
+
saveAiAgentProcedure(input: $input) {
|
|
418
|
+
...aiAgentProcedure
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
${exports.AiAgentProcedureFragmentDoc}`;
|
|
422
|
+
exports.RemoveAiAgentUseCaseDocument = `
|
|
423
|
+
mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {
|
|
424
|
+
removeAiAgentUseCase(input: $input)
|
|
425
|
+
}
|
|
426
|
+
`;
|
|
427
|
+
exports.RemoveAiAgentProcedureDocument = `
|
|
428
|
+
mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {
|
|
429
|
+
removeAiAgentProcedure(input: $input)
|
|
430
|
+
}
|
|
431
|
+
`;
|
|
432
|
+
exports.ResolveAiAgentApprovalDocument = `
|
|
433
|
+
mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {
|
|
434
|
+
resolveAiAgentApproval(input: $input)
|
|
435
|
+
}
|
|
436
|
+
`;
|
|
437
|
+
exports.RegisterAiAgentToolDocument = `
|
|
438
|
+
mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {
|
|
439
|
+
registerAiAgentTool(input: $input) {
|
|
440
|
+
...aiAgentTool
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
${exports.AiAgentToolFragmentDoc}`;
|
|
444
|
+
exports.UnregisterAiAgentToolDocument = `
|
|
445
|
+
mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {
|
|
446
|
+
unregisterAiAgentTool(input: $input)
|
|
447
|
+
}
|
|
448
|
+
`;
|
|
449
|
+
exports.SaveAiAgentScenarioDocument = `
|
|
450
|
+
mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {
|
|
451
|
+
saveAiAgentScenario(input: $input) {
|
|
452
|
+
...aiAgentScenario
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
${exports.AiAgentScenarioFragmentDoc}`;
|
|
456
|
+
exports.CheckAiAgentVersionDocument = `
|
|
457
|
+
mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {
|
|
458
|
+
checkAiAgentVersion(input: $input) {
|
|
459
|
+
safeToPublish
|
|
460
|
+
reports {
|
|
461
|
+
scenarioId
|
|
462
|
+
runs
|
|
463
|
+
passed
|
|
464
|
+
rate
|
|
465
|
+
}
|
|
466
|
+
regressions {
|
|
467
|
+
scenarioId
|
|
468
|
+
before
|
|
469
|
+
after
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
`;
|
|
474
|
+
exports.AiAgentMetricsDocument = `
|
|
475
|
+
query aiAgentMetrics($input: AiAgentMetricsInput!) {
|
|
476
|
+
aiAgentMetrics(input: $input) {
|
|
477
|
+
...aiAgentListingMetrics
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
${exports.AiAgentListingMetricsFragmentDoc}`;
|
|
481
|
+
exports.AiAgentVersionSpecDocument = `
|
|
482
|
+
query aiAgentVersionSpec($agentId: ID!) {
|
|
483
|
+
listAiAgentVersions(agentId: $agentId) {
|
|
484
|
+
...aiAgentVersionWithSpec
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
${exports.AiAgentVersionWithSpecFragmentDoc}
|
|
488
|
+
${exports.AiAgentSpecFragmentDoc}`;
|
|
194
489
|
exports.ExtractImageMetadataDocument = `
|
|
195
490
|
mutation extractImageMetadata($input: ExtractImageMetadataInput!) {
|
|
196
491
|
extractImageMetadata(input: $input) {
|
|
@@ -325,6 +620,66 @@ function getSdk(requester) {
|
|
|
325
620
|
removeAiAgent(variables, options) {
|
|
326
621
|
return requester(exports.RemoveAiAgentDocument, variables, options);
|
|
327
622
|
},
|
|
623
|
+
listAiAgentUseCases(variables, options) {
|
|
624
|
+
return requester(exports.ListAiAgentUseCasesDocument, variables, options);
|
|
625
|
+
},
|
|
626
|
+
listAiAgentProcedures(variables, options) {
|
|
627
|
+
return requester(exports.ListAiAgentProceduresDocument, variables, options);
|
|
628
|
+
},
|
|
629
|
+
listAiAgentTools(variables, options) {
|
|
630
|
+
return requester(exports.ListAiAgentToolsDocument, variables, options);
|
|
631
|
+
},
|
|
632
|
+
aiAgentUseCaseOverlap(variables, options) {
|
|
633
|
+
return requester(exports.AiAgentUseCaseOverlapDocument, variables, options);
|
|
634
|
+
},
|
|
635
|
+
aiAgentTrace(variables, options) {
|
|
636
|
+
return requester(exports.AiAgentTraceDocument, variables, options);
|
|
637
|
+
},
|
|
638
|
+
listAiAgentScenarios(variables, options) {
|
|
639
|
+
return requester(exports.ListAiAgentScenariosDocument, variables, options);
|
|
640
|
+
},
|
|
641
|
+
aiAgentRetentionPolicy(variables, options) {
|
|
642
|
+
return requester(exports.AiAgentRetentionPolicyDocument, variables, options);
|
|
643
|
+
},
|
|
644
|
+
aiAgentConversationMetrics(variables, options) {
|
|
645
|
+
return requester(exports.AiAgentConversationMetricsDocument, variables, options);
|
|
646
|
+
},
|
|
647
|
+
aiAgentConversationOutcome(variables, options) {
|
|
648
|
+
return requester(exports.AiAgentConversationOutcomeDocument, variables, options);
|
|
649
|
+
},
|
|
650
|
+
saveAiAgentUseCase(variables, options) {
|
|
651
|
+
return requester(exports.SaveAiAgentUseCaseDocument, variables, options);
|
|
652
|
+
},
|
|
653
|
+
saveAiAgentProcedure(variables, options) {
|
|
654
|
+
return requester(exports.SaveAiAgentProcedureDocument, variables, options);
|
|
655
|
+
},
|
|
656
|
+
removeAiAgentUseCase(variables, options) {
|
|
657
|
+
return requester(exports.RemoveAiAgentUseCaseDocument, variables, options);
|
|
658
|
+
},
|
|
659
|
+
removeAiAgentProcedure(variables, options) {
|
|
660
|
+
return requester(exports.RemoveAiAgentProcedureDocument, variables, options);
|
|
661
|
+
},
|
|
662
|
+
resolveAiAgentApproval(variables, options) {
|
|
663
|
+
return requester(exports.ResolveAiAgentApprovalDocument, variables, options);
|
|
664
|
+
},
|
|
665
|
+
registerAiAgentTool(variables, options) {
|
|
666
|
+
return requester(exports.RegisterAiAgentToolDocument, variables, options);
|
|
667
|
+
},
|
|
668
|
+
unregisterAiAgentTool(variables, options) {
|
|
669
|
+
return requester(exports.UnregisterAiAgentToolDocument, variables, options);
|
|
670
|
+
},
|
|
671
|
+
saveAiAgentScenario(variables, options) {
|
|
672
|
+
return requester(exports.SaveAiAgentScenarioDocument, variables, options);
|
|
673
|
+
},
|
|
674
|
+
checkAiAgentVersion(variables, options) {
|
|
675
|
+
return requester(exports.CheckAiAgentVersionDocument, variables, options);
|
|
676
|
+
},
|
|
677
|
+
aiAgentMetrics(variables, options) {
|
|
678
|
+
return requester(exports.AiAgentMetricsDocument, variables, options);
|
|
679
|
+
},
|
|
680
|
+
aiAgentVersionSpec(variables, options) {
|
|
681
|
+
return requester(exports.AiAgentVersionSpecDocument, variables, options);
|
|
682
|
+
},
|
|
328
683
|
extractImageMetadata(variables, options) {
|
|
329
684
|
return requester(exports.ExtractImageMetadataDocument, variables, options);
|
|
330
685
|
},
|