mavenagi 1.2.4 → 1.2.5
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/Client.js +2 -2
- package/README.md +390 -0
- package/api/resources/actions/client/Client.d.ts +11 -1
- package/api/resources/actions/client/Client.js +11 -1
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
- package/api/resources/agents/client/Client.d.ts +2 -2
- package/api/resources/agents/client/Client.js +5 -5
- package/api/resources/agents/client/index.d.ts +1 -0
- package/api/resources/agents/client/index.js +15 -0
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
- package/api/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/agents/client/requests/index.js +2 -0
- package/api/resources/agents/types/Agent.d.ts +8 -0
- package/api/resources/agents/types/AgentPrompting.d.ts +23 -0
- package/api/resources/agents/types/index.d.ts +1 -1
- package/api/resources/agents/types/index.js +1 -1
- package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
- package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
- package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
- package/api/resources/commons/types/ActionResponse.d.ts +7 -0
- package/api/resources/commons/types/SimulationContext.d.ts +6 -0
- package/api/resources/conversation/client/Client.d.ts +18 -1
- package/api/resources/conversation/client/Client.js +91 -1
- package/api/resources/events/client/Client.d.ts +10 -0
- package/api/resources/events/client/Client.js +83 -0
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/knowledge/client/Client.d.ts +32 -1
- package/api/resources/knowledge/client/Client.js +104 -1
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
- package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
- package/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
- package/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/actions/client/Client.d.ts +11 -1
- package/dist/api/resources/actions/client/Client.js +11 -1
- package/dist/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
- package/dist/api/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/client/Client.js +5 -5
- package/dist/api/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/agents/client/index.js +15 -0
- package/dist/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
- package/dist/api/resources/agents/client/requests/AgentPatchRequest.js +3 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/client/requests/index.js +2 -0
- package/dist/api/resources/agents/types/Agent.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentPrompting.d.ts +23 -0
- package/dist/api/resources/agents/types/AgentPrompting.js +3 -0
- package/dist/api/resources/agents/types/index.d.ts +1 -1
- package/dist/api/resources/agents/types/index.js +1 -1
- package/dist/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
- package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
- package/dist/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
- package/dist/api/resources/commons/types/ActionResponse.d.ts +7 -0
- package/dist/api/resources/commons/types/SimulationContext.d.ts +6 -0
- package/dist/api/resources/conversation/client/Client.d.ts +18 -1
- package/dist/api/resources/conversation/client/Client.js +91 -1
- package/dist/api/resources/events/client/Client.d.ts +10 -0
- package/dist/api/resources/events/client/Client.js +83 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/knowledge/client/Client.d.ts +32 -1
- package/dist/api/resources/knowledge/client/Client.js +104 -1
- package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
- package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
- package/dist/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/dist/api/resources/knowledge/types/index.d.ts +1 -0
- package/dist/api/resources/knowledge/types/index.js +1 -0
- package/dist/serialization/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/index.js +4 -0
- package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
- package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
- package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/index.js +5 -0
- package/dist/serialization/resources/agents/types/Agent.d.ts +3 -0
- package/dist/serialization/resources/agents/types/Agent.js +3 -0
- package/dist/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
- package/dist/serialization/resources/agents/types/AgentPrompting.js +46 -0
- package/dist/serialization/resources/agents/types/index.d.ts +1 -1
- package/dist/serialization/resources/agents/types/index.js +1 -1
- package/dist/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
- package/dist/serialization/resources/commons/types/SimulationContext.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
- package/dist/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +237 -4
- package/serialization/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/agents/client/index.js +4 -0
- package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
- package/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
- package/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/client/requests/index.js +5 -0
- package/serialization/resources/agents/types/Agent.d.ts +3 -0
- package/serialization/resources/agents/types/Agent.js +3 -0
- package/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
- package/serialization/resources/agents/types/AgentPrompting.js +46 -0
- package/serialization/resources/agents/types/index.d.ts +1 -1
- package/serialization/resources/agents/types/index.js +1 -1
- package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
- package/serialization/resources/commons/types/SimulationContext.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
- package/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
- package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
- package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
- package/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
- /package/api/resources/agents/{types → client/requests}/AgentPatchRequest.js +0 -0
- /package/{dist/api/resources/agents/types/AgentPatchRequest.js → api/resources/agents/types/AgentPrompting.js} +0 -0
|
@@ -31,6 +31,7 @@ export * from "./users/types";
|
|
|
31
31
|
export * from "./commons/errors";
|
|
32
32
|
export * as events from "./events";
|
|
33
33
|
export * from "./actions/client/requests";
|
|
34
|
+
export * from "./agents/client/requests";
|
|
34
35
|
export * from "./appSettings/client/requests";
|
|
35
36
|
export * from "./conversation/client/requests";
|
|
36
37
|
export * from "./events/client/requests";
|
|
@@ -70,6 +70,7 @@ __exportStar(require("./users/types"), exports);
|
|
|
70
70
|
__exportStar(require("./commons/errors"), exports);
|
|
71
71
|
exports.events = __importStar(require("./events"));
|
|
72
72
|
__exportStar(require("./actions/client/requests"), exports);
|
|
73
|
+
__exportStar(require("./agents/client/requests"), exports);
|
|
73
74
|
__exportStar(require("./appSettings/client/requests"), exports);
|
|
74
75
|
__exportStar(require("./conversation/client/requests"), exports);
|
|
75
76
|
__exportStar(require("./events/client/requests"), exports);
|
|
@@ -87,6 +87,27 @@ export declare class Knowledge {
|
|
|
87
87
|
*/
|
|
88
88
|
getKnowledgeBase(knowledgeBaseReferenceId: string, request?: MavenAGI.KnowledgeBaseGetRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseResponse>;
|
|
89
89
|
private __getKnowledgeBase;
|
|
90
|
+
/**
|
|
91
|
+
* Request that a knowledge base refresh itself.
|
|
92
|
+
*
|
|
93
|
+
* Knowledge bases refresh on a schedule determined by the `refreshFrequency` field.
|
|
94
|
+
* They can also be refreshed on demand by calling this endpoint.
|
|
95
|
+
*
|
|
96
|
+
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to refresh. All other entity ID fields are inferred from the request.
|
|
97
|
+
* @param {MavenAGI.KnowledgeBaseRefreshRequest} request
|
|
98
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
101
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
102
|
+
* @throws {@link MavenAGI.ServerError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.knowledge.refreshKnowledgeBase("help-center", {
|
|
106
|
+
* appId: "readme"
|
|
107
|
+
* })
|
|
108
|
+
*/
|
|
109
|
+
refreshKnowledgeBase(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeBaseRefreshRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<void>;
|
|
110
|
+
private __refreshKnowledgeBase;
|
|
90
111
|
/**
|
|
91
112
|
* Update mutable knowledge base fields
|
|
92
113
|
*
|
|
@@ -102,7 +123,17 @@ export declare class Knowledge {
|
|
|
102
123
|
* @throws {@link MavenAGI.ServerError}
|
|
103
124
|
*
|
|
104
125
|
* @example
|
|
105
|
-
* await client.knowledge.patchKnowledgeBase("
|
|
126
|
+
* await client.knowledge.patchKnowledgeBase("help-center", {
|
|
127
|
+
* name: "Updated Help Center",
|
|
128
|
+
* tags: new Set(["tag1", "tag2", "tag3"]),
|
|
129
|
+
* segmentId: {
|
|
130
|
+
* referenceId: "premium-users",
|
|
131
|
+
* appId: "readme",
|
|
132
|
+
* organizationId: "acme",
|
|
133
|
+
* agentId: "support",
|
|
134
|
+
* type: "SEGMENT"
|
|
135
|
+
* }
|
|
136
|
+
* })
|
|
106
137
|
*/
|
|
107
138
|
patchKnowledgeBase(knowledgeBaseReferenceId: string, request?: MavenAGI.KnowledgeBasePatchRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseResponse>;
|
|
108
139
|
private __patchKnowledgeBase;
|
|
@@ -347,6 +347,99 @@ class Knowledge {
|
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
+
/**
|
|
351
|
+
* Request that a knowledge base refresh itself.
|
|
352
|
+
*
|
|
353
|
+
* Knowledge bases refresh on a schedule determined by the `refreshFrequency` field.
|
|
354
|
+
* They can also be refreshed on demand by calling this endpoint.
|
|
355
|
+
*
|
|
356
|
+
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to refresh. All other entity ID fields are inferred from the request.
|
|
357
|
+
* @param {MavenAGI.KnowledgeBaseRefreshRequest} request
|
|
358
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
359
|
+
*
|
|
360
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
361
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
362
|
+
* @throws {@link MavenAGI.ServerError}
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* await client.knowledge.refreshKnowledgeBase("help-center", {
|
|
366
|
+
* appId: "readme"
|
|
367
|
+
* })
|
|
368
|
+
*/
|
|
369
|
+
refreshKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions) {
|
|
370
|
+
return core.HttpResponsePromise.fromPromise(this.__refreshKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions));
|
|
371
|
+
}
|
|
372
|
+
__refreshKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
375
|
+
let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
376
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
377
|
+
"X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
|
|
378
|
+
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
379
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
380
|
+
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
381
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/refresh`),
|
|
382
|
+
method: "POST",
|
|
383
|
+
headers: _headers,
|
|
384
|
+
contentType: "application/json",
|
|
385
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
386
|
+
requestType: "json",
|
|
387
|
+
body: serializers.KnowledgeBaseRefreshRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
388
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
389
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
390
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
391
|
+
});
|
|
392
|
+
if (_response.ok) {
|
|
393
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
394
|
+
}
|
|
395
|
+
if (_response.error.reason === "status-code") {
|
|
396
|
+
switch (_response.error.statusCode) {
|
|
397
|
+
case 404:
|
|
398
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
399
|
+
unrecognizedObjectKeys: "passthrough",
|
|
400
|
+
allowUnrecognizedUnionMembers: true,
|
|
401
|
+
allowUnrecognizedEnumValues: true,
|
|
402
|
+
breadcrumbsPrefix: ["response"],
|
|
403
|
+
}), _response.rawResponse);
|
|
404
|
+
case 400:
|
|
405
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
406
|
+
unrecognizedObjectKeys: "passthrough",
|
|
407
|
+
allowUnrecognizedUnionMembers: true,
|
|
408
|
+
allowUnrecognizedEnumValues: true,
|
|
409
|
+
breadcrumbsPrefix: ["response"],
|
|
410
|
+
}), _response.rawResponse);
|
|
411
|
+
case 500:
|
|
412
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
413
|
+
unrecognizedObjectKeys: "passthrough",
|
|
414
|
+
allowUnrecognizedUnionMembers: true,
|
|
415
|
+
allowUnrecognizedEnumValues: true,
|
|
416
|
+
breadcrumbsPrefix: ["response"],
|
|
417
|
+
}), _response.rawResponse);
|
|
418
|
+
default:
|
|
419
|
+
throw new errors.MavenAGIError({
|
|
420
|
+
statusCode: _response.error.statusCode,
|
|
421
|
+
body: _response.error.body,
|
|
422
|
+
rawResponse: _response.rawResponse,
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
switch (_response.error.reason) {
|
|
427
|
+
case "non-json":
|
|
428
|
+
throw new errors.MavenAGIError({
|
|
429
|
+
statusCode: _response.error.statusCode,
|
|
430
|
+
body: _response.error.rawBody,
|
|
431
|
+
rawResponse: _response.rawResponse,
|
|
432
|
+
});
|
|
433
|
+
case "timeout":
|
|
434
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/knowledge/{knowledgeBaseReferenceId}/refresh.");
|
|
435
|
+
case "unknown":
|
|
436
|
+
throw new errors.MavenAGIError({
|
|
437
|
+
message: _response.error.errorMessage,
|
|
438
|
+
rawResponse: _response.rawResponse,
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
350
443
|
/**
|
|
351
444
|
* Update mutable knowledge base fields
|
|
352
445
|
*
|
|
@@ -362,7 +455,17 @@ class Knowledge {
|
|
|
362
455
|
* @throws {@link MavenAGI.ServerError}
|
|
363
456
|
*
|
|
364
457
|
* @example
|
|
365
|
-
* await client.knowledge.patchKnowledgeBase("
|
|
458
|
+
* await client.knowledge.patchKnowledgeBase("help-center", {
|
|
459
|
+
* name: "Updated Help Center",
|
|
460
|
+
* tags: new Set(["tag1", "tag2", "tag3"]),
|
|
461
|
+
* segmentId: {
|
|
462
|
+
* referenceId: "premium-users",
|
|
463
|
+
* appId: "readme",
|
|
464
|
+
* organizationId: "acme",
|
|
465
|
+
* agentId: "support",
|
|
466
|
+
* type: "SEGMENT"
|
|
467
|
+
* }
|
|
468
|
+
* })
|
|
366
469
|
*/
|
|
367
470
|
patchKnowledgeBase(knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
368
471
|
return core.HttpResponsePromise.fromPromise(this.__patchKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions));
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import * as MavenAGI from "../../../../index";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
|
-
* {
|
|
4
|
+
* {
|
|
5
|
+
* name: "Updated Help Center",
|
|
6
|
+
* tags: new Set(["tag1", "tag2", "tag3"]),
|
|
7
|
+
* segmentId: {
|
|
8
|
+
* referenceId: "premium-users",
|
|
9
|
+
* appId: "readme",
|
|
10
|
+
* organizationId: "acme",
|
|
11
|
+
* agentId: "support",
|
|
12
|
+
* type: "SEGMENT"
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
5
15
|
*/
|
|
6
16
|
export interface KnowledgeBasePatchRequest {
|
|
7
17
|
/** The App ID of the knowledge base to patch. If not provided the ID of the calling app will be used. */
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export interface BaseKnowledgeDocument {
|
|
2
|
-
/** The title of the document. Will be shown as part of answers. */
|
|
3
|
-
title: string;
|
|
4
2
|
/** The URL of the document. Should be visible to end users. Will be shown as part of answers. Not used for crawling. */
|
|
5
3
|
url?: string;
|
|
6
4
|
/** The document language. Must be a valid ISO 639-1 language code. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as MavenAGI from "../../../index";
|
|
1
2
|
export interface KnowledgeBaseFilter {
|
|
2
3
|
/**
|
|
3
4
|
* Full-text search query for matching knowledge bases by content.
|
|
@@ -22,4 +23,8 @@ export interface KnowledgeBaseFilter {
|
|
|
22
23
|
createdBefore?: Date;
|
|
23
24
|
/** Filter by app IDs */
|
|
24
25
|
appIds?: string[];
|
|
26
|
+
/** Filter knowledge bases by the most recent version status */
|
|
27
|
+
mostRecentVersionStatus?: MavenAGI.KnowledgeBaseVersionStatus[];
|
|
28
|
+
/** Filter knowledge bases by the LLM inclusion status */
|
|
29
|
+
llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
|
|
25
30
|
}
|
|
@@ -2,6 +2,8 @@ import * as MavenAGI from "../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* createdAt: new Date("2025-01-01T00:00:00.000Z"),
|
|
6
|
+
* updatedAt: new Date("2025-02-02T00:00:00.000Z"),
|
|
5
7
|
* knowledgeBaseId: {
|
|
6
8
|
* referenceId: "help-center",
|
|
7
9
|
* appId: "readme",
|
|
@@ -9,20 +11,46 @@ import * as MavenAGI from "../../../index";
|
|
|
9
11
|
* agentId: "support",
|
|
10
12
|
* type: MavenAGI.EntityType.KnowledgeBase
|
|
11
13
|
* },
|
|
14
|
+
* activeVersionId: {
|
|
15
|
+
* referenceId: "version-1",
|
|
16
|
+
* appId: "readme",
|
|
17
|
+
* organizationId: "acme",
|
|
18
|
+
* agentId: "support",
|
|
19
|
+
* type: MavenAGI.EntityType.KnowledgeBaseVersion
|
|
20
|
+
* },
|
|
21
|
+
* mostRecentVersionStatus: MavenAGI.KnowledgeBaseVersionStatus.Succeeded,
|
|
22
|
+
* llmInclusionStatus: MavenAGI.LlmInclusionStatus.WhenRelevant,
|
|
12
23
|
* name: "Help center",
|
|
13
24
|
* type: MavenAGI.KnowledgeBaseType.Api,
|
|
14
25
|
* metadata: {
|
|
15
26
|
* "key": "value"
|
|
16
27
|
* },
|
|
17
28
|
* tags: new Set(["tag1", "tag2"]),
|
|
18
|
-
* refreshFrequency: MavenAGI.KnowledgeBaseRefreshFrequency.Daily
|
|
29
|
+
* refreshFrequency: MavenAGI.KnowledgeBaseRefreshFrequency.Daily,
|
|
30
|
+
* segmentId: {
|
|
31
|
+
* referenceId: "premium-users",
|
|
32
|
+
* appId: "readme",
|
|
33
|
+
* organizationId: "acme",
|
|
34
|
+
* agentId: "support",
|
|
35
|
+
* type: MavenAGI.EntityType.Segment
|
|
36
|
+
* }
|
|
19
37
|
* }
|
|
20
38
|
*/
|
|
21
39
|
export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties {
|
|
40
|
+
/** The date and time when the knowledge base was created. */
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
/** The date and time when the knowledge base was last updated. */
|
|
43
|
+
updatedAt: Date;
|
|
22
44
|
/** ID that uniquely identifies this knowledge base */
|
|
23
45
|
knowledgeBaseId: MavenAGI.EntityId;
|
|
24
46
|
/** ID of the knowledge base version that is currently active. Documents can be fetched using this version ID. */
|
|
25
47
|
activeVersionId?: MavenAGI.EntityId;
|
|
48
|
+
/**
|
|
49
|
+
* The status of the most recent version of the knowledge base.
|
|
50
|
+
* The `activeVersionId` will only be populated if this status is `SUCCEEDED`.
|
|
51
|
+
* Use the `listKnowledgeBaseVersions` endpoint to get the full list of versions.
|
|
52
|
+
*/
|
|
53
|
+
mostRecentVersionStatus: MavenAGI.KnowledgeBaseVersionStatus;
|
|
26
54
|
/** The type of the knowledge base. Can not be changed once created. */
|
|
27
55
|
type: MavenAGI.KnowledgeBaseType;
|
|
28
56
|
/** Metadata for the knowledge base. */
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* API knowledge bases are managed by a Maven App.
|
|
3
|
+
* All other knowledge base types are deprecated and can not be created.
|
|
4
|
+
*/
|
|
2
5
|
export declare const KnowledgeBaseType: {
|
|
3
6
|
readonly Api: "API";
|
|
7
|
+
readonly Url: "URL";
|
|
8
|
+
readonly Manual: "MANUAL";
|
|
9
|
+
readonly Rss: "RSS";
|
|
10
|
+
readonly Legacy: "LEGACY";
|
|
4
11
|
};
|
|
5
12
|
export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.KnowledgeBaseType = void 0;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* API knowledge bases are managed by a Maven App.
|
|
7
|
+
* All other knowledge base types are deprecated and can not be created.
|
|
8
|
+
*/
|
|
6
9
|
exports.KnowledgeBaseType = {
|
|
7
10
|
Api: "API",
|
|
11
|
+
Url: "URL",
|
|
12
|
+
Manual: "MANUAL",
|
|
13
|
+
Rss: "RSS",
|
|
14
|
+
Legacy: "LEGACY",
|
|
8
15
|
};
|
|
@@ -24,6 +24,8 @@ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument
|
|
|
24
24
|
/** ID that uniquely identifies which knowledge base version to create the document in. If not provided will use the most recent version of the knowledge base. */
|
|
25
25
|
versionId?: MavenAGI.EntityIdWithoutAgent;
|
|
26
26
|
contentType: MavenAGI.KnowledgeDocumentContentType;
|
|
27
|
+
/** The title of the document. Will be shown as part of answers. */
|
|
28
|
+
title: string;
|
|
27
29
|
/** The content of the document. Not shown directly to users. May be provided in HTML or markdown. HTML will be converted to markdown automatically. Images are not currently supported and will be ignored. */
|
|
28
30
|
content: string;
|
|
29
31
|
/** Metadata for the knowledge document. */
|
|
@@ -7,4 +7,6 @@ export interface KnowledgeDocumentSearchResponse extends MavenAGI.BaseKnowledgeD
|
|
|
7
7
|
* This may be missing on legacy documents.
|
|
8
8
|
*/
|
|
9
9
|
knowledgeBaseVersionId?: MavenAGI.EntityId;
|
|
10
|
+
/** The title of the document. Will be shown as part of answers. May be missing on legacy documents. */
|
|
11
|
+
title?: string;
|
|
10
12
|
}
|
|
@@ -40,3 +40,4 @@ __exportStar(require("./KnowledgeDocumentSearchRequest"), exports);
|
|
|
40
40
|
__exportStar(require("./KnowledgeDocumentSearchResponse"), exports);
|
|
41
41
|
__exportStar(require("./KnowledgeDocumentsResponse"), exports);
|
|
42
42
|
__exportStar(require("./KnowledgeBaseVersionsListResponse"), exports);
|
|
43
|
+
__exportStar(require("./KnowledgeBaseRefreshRequest"), exports);
|
|
@@ -32,6 +32,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.list = void 0;
|
|
37
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as serializers from "../../../../index";
|
|
2
|
+
import * as MavenAGI from "../../../../../api/index";
|
|
3
|
+
import * as core from "../../../../../core";
|
|
4
|
+
import { AgentEnvironment } from "../../types/AgentEnvironment";
|
|
5
|
+
import { PiiCategory } from "../../types/PiiCategory";
|
|
6
|
+
import { LlmPersona } from "../../../commons/types/LlmPersona";
|
|
7
|
+
export declare const AgentPatchRequest: core.serialization.Schema<serializers.AgentPatchRequest.Raw, MavenAGI.AgentPatchRequest>;
|
|
8
|
+
export declare namespace AgentPatchRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name?: string | null;
|
|
11
|
+
environment?: AgentEnvironment.Raw | null;
|
|
12
|
+
defaultTimezone?: string | null;
|
|
13
|
+
enabledPiiCategories?: PiiCategory.Raw[] | null;
|
|
14
|
+
systemFallbackMessage?: (string | null | undefined) | null;
|
|
15
|
+
persona?: LlmPersona.Raw | null;
|
|
16
|
+
additionalPromptText?: (string | null | undefined) | null;
|
|
17
|
+
categoryGenerationPromptText?: (string | null | undefined) | null;
|
|
18
|
+
contentSafetyViolationResponsePromptText?: (string | null | undefined) | null;
|
|
19
|
+
rejectQuestionsWithoutKnowledge?: boolean | null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.AgentPatchRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core"));
|
|
39
|
+
const AgentEnvironment_1 = require("../../types/AgentEnvironment");
|
|
40
|
+
const PiiCategory_1 = require("../../types/PiiCategory");
|
|
41
|
+
const LlmPersona_1 = require("../../../commons/types/LlmPersona");
|
|
42
|
+
exports.AgentPatchRequest = core.serialization.object({
|
|
43
|
+
name: core.serialization.string().optional(),
|
|
44
|
+
environment: AgentEnvironment_1.AgentEnvironment.optional(),
|
|
45
|
+
defaultTimezone: core.serialization.string().optional(),
|
|
46
|
+
enabledPiiCategories: core.serialization.set(PiiCategory_1.PiiCategory).optional(),
|
|
47
|
+
systemFallbackMessage: core.serialization.string().optionalNullable(),
|
|
48
|
+
persona: LlmPersona_1.LlmPersona.optional(),
|
|
49
|
+
additionalPromptText: core.serialization.string().optionalNullable(),
|
|
50
|
+
categoryGenerationPromptText: core.serialization.string().optionalNullable(),
|
|
51
|
+
contentSafetyViolationResponsePromptText: core.serialization.string().optionalNullable(),
|
|
52
|
+
rejectQuestionsWithoutKnowledge: core.serialization.boolean().optional(),
|
|
53
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AgentPatchRequest } from "./AgentPatchRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentPatchRequest = void 0;
|
|
4
|
+
var AgentPatchRequest_1 = require("./AgentPatchRequest");
|
|
5
|
+
Object.defineProperty(exports, "AgentPatchRequest", { enumerable: true, get: function () { return AgentPatchRequest_1.AgentPatchRequest; } });
|
|
@@ -4,6 +4,7 @@ import * as core from "../../../../core";
|
|
|
4
4
|
import { EntityId } from "../../commons/types/EntityId";
|
|
5
5
|
import { AgentEnvironment } from "./AgentEnvironment";
|
|
6
6
|
import { PiiCategory } from "./PiiCategory";
|
|
7
|
+
import { AgentPrompting } from "./AgentPrompting";
|
|
7
8
|
export declare const Agent: core.serialization.ObjectSchema<serializers.Agent.Raw, MavenAGI.Agent>;
|
|
8
9
|
export declare namespace Agent {
|
|
9
10
|
interface Raw {
|
|
@@ -13,5 +14,7 @@ export declare namespace Agent {
|
|
|
13
14
|
environment: AgentEnvironment.Raw;
|
|
14
15
|
defaultTimezone: string;
|
|
15
16
|
enabledPiiCategories: PiiCategory.Raw[];
|
|
17
|
+
systemFallbackMessage?: string | null;
|
|
18
|
+
prompting: AgentPrompting.Raw;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
39
39
|
const EntityId_1 = require("../../commons/types/EntityId");
|
|
40
40
|
const AgentEnvironment_1 = require("./AgentEnvironment");
|
|
41
41
|
const PiiCategory_1 = require("./PiiCategory");
|
|
42
|
+
const AgentPrompting_1 = require("./AgentPrompting");
|
|
42
43
|
exports.Agent = core.serialization.object({
|
|
43
44
|
agentId: EntityId_1.EntityId,
|
|
44
45
|
name: core.serialization.string(),
|
|
@@ -46,4 +47,6 @@ exports.Agent = core.serialization.object({
|
|
|
46
47
|
environment: AgentEnvironment_1.AgentEnvironment,
|
|
47
48
|
defaultTimezone: core.serialization.string(),
|
|
48
49
|
enabledPiiCategories: core.serialization.set(PiiCategory_1.PiiCategory),
|
|
50
|
+
systemFallbackMessage: core.serialization.string().optional(),
|
|
51
|
+
prompting: AgentPrompting_1.AgentPrompting,
|
|
49
52
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as serializers from "../../../index";
|
|
2
|
+
import * as MavenAGI from "../../../../api/index";
|
|
3
|
+
import * as core from "../../../../core";
|
|
4
|
+
import { LlmPersona } from "../../commons/types/LlmPersona";
|
|
5
|
+
export declare const AgentPrompting: core.serialization.ObjectSchema<serializers.AgentPrompting.Raw, MavenAGI.AgentPrompting>;
|
|
6
|
+
export declare namespace AgentPrompting {
|
|
7
|
+
interface Raw {
|
|
8
|
+
persona: LlmPersona.Raw;
|
|
9
|
+
additionalPromptText?: string | null;
|
|
10
|
+
categoryGenerationPromptText?: string | null;
|
|
11
|
+
contentSafetyViolationResponsePromptText?: string | null;
|
|
12
|
+
rejectQuestionsWithoutKnowledge: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.AgentPrompting = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const LlmPersona_1 = require("../../commons/types/LlmPersona");
|
|
40
|
+
exports.AgentPrompting = core.serialization.object({
|
|
41
|
+
persona: LlmPersona_1.LlmPersona,
|
|
42
|
+
additionalPromptText: core.serialization.string().optional(),
|
|
43
|
+
categoryGenerationPromptText: core.serialization.string().optional(),
|
|
44
|
+
contentSafetyViolationResponsePromptText: core.serialization.string().optional(),
|
|
45
|
+
rejectQuestionsWithoutKnowledge: core.serialization.boolean(),
|
|
46
|
+
});
|
|
@@ -2,8 +2,8 @@ export * from "./PiiCategory";
|
|
|
2
2
|
export * from "./AgentEnvironment";
|
|
3
3
|
export * from "./Agent";
|
|
4
4
|
export * from "./CreateAgentRequest";
|
|
5
|
-
export * from "./AgentPatchRequest";
|
|
6
5
|
export * from "./AgentsSearchRequest";
|
|
7
6
|
export * from "./AgentField";
|
|
8
7
|
export * from "./AgentFilter";
|
|
9
8
|
export * from "./AgentsSearchResponse";
|
|
9
|
+
export * from "./AgentPrompting";
|
|
@@ -18,8 +18,8 @@ __exportStar(require("./PiiCategory"), exports);
|
|
|
18
18
|
__exportStar(require("./AgentEnvironment"), exports);
|
|
19
19
|
__exportStar(require("./Agent"), exports);
|
|
20
20
|
__exportStar(require("./CreateAgentRequest"), exports);
|
|
21
|
-
__exportStar(require("./AgentPatchRequest"), exports);
|
|
22
21
|
__exportStar(require("./AgentsSearchRequest"), exports);
|
|
23
22
|
__exportStar(require("./AgentField"), exports);
|
|
24
23
|
__exportStar(require("./AgentFilter"), exports);
|
|
25
24
|
__exportStar(require("./AgentsSearchResponse"), exports);
|
|
25
|
+
__exportStar(require("./AgentPrompting"), exports);
|
|
@@ -6,6 +6,7 @@ import { EntityId } from "./EntityId";
|
|
|
6
6
|
export declare const SimulationContext: core.serialization.ObjectSchema<serializers.SimulationContext.Raw, MavenAGI.SimulationContext>;
|
|
7
7
|
export declare namespace SimulationContext {
|
|
8
8
|
interface Raw {
|
|
9
|
+
additionalPromptText?: string | null;
|
|
9
10
|
persona?: LlmPersona.Raw | null;
|
|
10
11
|
availableKnowledgeBases?: EntityId.Raw[] | null;
|
|
11
12
|
}
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
39
39
|
const LlmPersona_1 = require("./LlmPersona");
|
|
40
40
|
const EntityId_1 = require("./EntityId");
|
|
41
41
|
exports.SimulationContext = core.serialization.object({
|
|
42
|
+
additionalPromptText: core.serialization.string().optional(),
|
|
42
43
|
persona: LlmPersona_1.LlmPersona.optional(),
|
|
43
44
|
availableKnowledgeBases: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
44
45
|
});
|
|
@@ -68,4 +68,5 @@ __exportStar(require("./triggers/types"), exports);
|
|
|
68
68
|
exports.users = __importStar(require("./users"));
|
|
69
69
|
__exportStar(require("./users/types"), exports);
|
|
70
70
|
__exportStar(require("./actions/client/requests"), exports);
|
|
71
|
+
__exportStar(require("./agents/client/requests"), exports);
|
|
71
72
|
__exportStar(require("./knowledge/client/requests"), exports);
|