@droz-js/sdk 0.19.25 → 0.19.28
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 +2 -2
- package/src/sdks/ai.d.ts +8 -13
- package/src/sdks/ai.js +2 -2
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -96,8 +96,8 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
96
96
|
aiAgentRoutingPreview(variables: import("./sdks/ai").Exact<{
|
|
97
97
|
input: import("./sdks/ai").AiAgentRoutingPreviewInput;
|
|
98
98
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentRoutingPreviewQuery>;
|
|
99
|
-
aiAgentKnowledgeBases(variables
|
|
100
|
-
|
|
99
|
+
aiAgentKnowledgeBases(variables?: import("./sdks/ai").Exact<{
|
|
100
|
+
[key: string]: never;
|
|
101
101
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentKnowledgeBasesQuery>;
|
|
102
102
|
extractImageMetadata(variables: import("./sdks/ai").Exact<{
|
|
103
103
|
input: import("./sdks/ai").ExtractImageMetadataInput;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -399,8 +399,10 @@ export type AiAgentRoutingPreview = {
|
|
|
399
399
|
};
|
|
400
400
|
export type AiAgentRoutingPreviewInput = {
|
|
401
401
|
agentId: Scalars['ID']['input'];
|
|
402
|
-
/** Mensagens
|
|
402
|
+
/** Mensagens a testar. Vazio cai em `subject`; sem os dois, previa vazia e nao erro. */
|
|
403
403
|
examples: Array<Scalars['String']['input']>;
|
|
404
|
+
/** Descricao do assunto: as mensagens sao geradas a partir dela (§5.4). Ignorada se `examples` vier. */
|
|
405
|
+
subject?: InputMaybe<Scalars['String']['input']>;
|
|
404
406
|
};
|
|
405
407
|
export type AiAgentScenario = {
|
|
406
408
|
description: Scalars['String']['output'];
|
|
@@ -431,8 +433,6 @@ export type AiAgentSpec = {
|
|
|
431
433
|
* por elas; sem recorte o agente varreria o acervo inteiro do tenant.
|
|
432
434
|
*/
|
|
433
435
|
knowledgeBaseIds: Array<Scalars['ID']['output']>;
|
|
434
|
-
/** Credencial do Droz Base. Obrigatoria quando ha base vinculada. */
|
|
435
|
-
knowledgeCredentialRef?: Maybe<Scalars['ID']['output']>;
|
|
436
436
|
/** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
|
|
437
437
|
knowledgeFallback?: Maybe<Scalars['String']['output']>;
|
|
438
438
|
toolIds: Array<Scalars['ID']['output']>;
|
|
@@ -449,8 +449,6 @@ export type AiAgentSpecInput = {
|
|
|
449
449
|
* por elas; sem recorte o agente varreria o acervo inteiro do tenant.
|
|
450
450
|
*/
|
|
451
451
|
knowledgeBaseIds: Array<Scalars['ID']['input']>;
|
|
452
|
-
/** Credencial do Droz Base. Obrigatoria quando ha base vinculada. */
|
|
453
|
-
knowledgeCredentialRef?: InputMaybe<Scalars['ID']['input']>;
|
|
454
452
|
/** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
|
|
455
453
|
knowledgeFallback?: InputMaybe<Scalars['String']['input']>;
|
|
456
454
|
toolIds: Array<Scalars['ID']['input']>;
|
|
@@ -806,8 +804,8 @@ export type Query = {
|
|
|
806
804
|
aiAgentConversationMetrics: Array<AiAgentConversationMetrics>;
|
|
807
805
|
aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
|
|
808
806
|
/**
|
|
809
|
-
* §4.8: as bases do Droz Base
|
|
810
|
-
* credencial
|
|
807
|
+
* §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
|
|
808
|
+
* credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
|
|
811
809
|
*/
|
|
812
810
|
aiAgentKnowledgeBases: Array<AiAgentKnowledgeBase>;
|
|
813
811
|
aiAgentMetrics: AiAgentMetrics;
|
|
@@ -854,9 +852,6 @@ export type QueryAiAgentConversationMetricsArgs = {
|
|
|
854
852
|
export type QueryAiAgentConversationOutcomeArgs = {
|
|
855
853
|
sessionId: Scalars['ID']['input'];
|
|
856
854
|
};
|
|
857
|
-
export type QueryAiAgentKnowledgeBasesArgs = {
|
|
858
|
-
credentialRef: Scalars['ID']['input'];
|
|
859
|
-
};
|
|
860
855
|
export type QueryAiAgentMetricsArgs = {
|
|
861
856
|
input: AiAgentMetricsInput;
|
|
862
857
|
};
|
|
@@ -1267,7 +1262,7 @@ export type AiAgentRoutingPreviewQuery = {
|
|
|
1267
1262
|
});
|
|
1268
1263
|
};
|
|
1269
1264
|
export type AiAgentKnowledgeBasesQueryVariables = Exact<{
|
|
1270
|
-
|
|
1265
|
+
[key: string]: never;
|
|
1271
1266
|
}>;
|
|
1272
1267
|
export type AiAgentKnowledgeBasesQuery = {
|
|
1273
1268
|
aiAgentKnowledgeBases: Array<Pick<AiAgentKnowledgeBase, 'id' | 'title'>>;
|
|
@@ -1403,7 +1398,7 @@ export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentV
|
|
|
1403
1398
|
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 ";
|
|
1404
1399
|
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 ";
|
|
1405
1400
|
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 ";
|
|
1406
|
-
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases
|
|
1401
|
+
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n }\n}\n ";
|
|
1407
1402
|
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 ";
|
|
1408
1403
|
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 ";
|
|
1409
1404
|
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 ";
|
|
@@ -1449,7 +1444,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1449
1444
|
aiAgentMetrics(variables: AiAgentMetricsQueryVariables, options?: C): Promise<AiAgentMetricsQuery>;
|
|
1450
1445
|
aiAgentVersionSpec(variables: AiAgentVersionSpecQueryVariables, options?: C): Promise<AiAgentVersionSpecQuery>;
|
|
1451
1446
|
aiAgentRoutingPreview(variables: AiAgentRoutingPreviewQueryVariables, options?: C): Promise<AiAgentRoutingPreviewQuery>;
|
|
1452
|
-
aiAgentKnowledgeBases(variables
|
|
1447
|
+
aiAgentKnowledgeBases(variables?: AiAgentKnowledgeBasesQueryVariables, options?: C): Promise<AiAgentKnowledgeBasesQuery>;
|
|
1453
1448
|
extractImageMetadata(variables: ExtractImageMetadataMutationVariables, options?: C): Promise<ExtractImageMetadataMutation>;
|
|
1454
1449
|
getNlpInstance(variables: GetNlpInstanceQueryVariables, options?: C): Promise<GetNlpInstanceQuery>;
|
|
1455
1450
|
listNlpInstances(variables?: ListNlpInstancesQueryVariables, options?: C): Promise<ListNlpInstancesQuery>;
|
package/src/sdks/ai.js
CHANGED
|
@@ -501,8 +501,8 @@ exports.AiAgentRoutingPreviewDocument = `
|
|
|
501
501
|
}
|
|
502
502
|
`;
|
|
503
503
|
exports.AiAgentKnowledgeBasesDocument = `
|
|
504
|
-
query aiAgentKnowledgeBases
|
|
505
|
-
aiAgentKnowledgeBases
|
|
504
|
+
query aiAgentKnowledgeBases {
|
|
505
|
+
aiAgentKnowledgeBases {
|
|
506
506
|
id
|
|
507
507
|
title
|
|
508
508
|
}
|