@breign/client 1.0.124 → 1.0.126
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/dist/apis/AgentApi.d.ts +17 -12
- package/dist/apis/AgentApi.js +29 -14
- package/dist/apis/KnowledgeApi.d.ts +122 -168
- package/dist/apis/KnowledgeApi.js +232 -365
- package/dist/apis/MetricsApi.d.ts +15 -13
- package/dist/apis/MetricsApi.js +27 -21
- package/dist/apis/OrganizationsApi.d.ts +1 -26
- package/dist/apis/OrganizationsApi.js +0 -64
- package/dist/apis/SkillsApi.d.ts +14 -1
- package/dist/apis/SkillsApi.js +29 -0
- package/dist/models/AddModuleRequestUio.d.ts +60 -0
- package/dist/models/AddModuleRequestUio.js +68 -0
- package/dist/models/AgentPatchUio.d.ts +0 -30
- package/dist/models/AgentPatchUio.js +0 -10
- package/dist/models/AgentRefUio.d.ts +38 -0
- package/dist/models/AgentRefUio.js +54 -0
- package/dist/models/AgentRequestUio.d.ts +0 -59
- package/dist/models/AgentRequestUio.js +0 -22
- package/dist/models/AgentUio.d.ts +6 -44
- package/dist/models/AgentUio.js +2 -14
- package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +1 -1
- package/dist/models/ChunkCreateRequestContentInnerUio.js +1 -3
- package/dist/models/ChunkCreateRequestUio.d.ts +3 -3
- package/dist/models/ChunkCreateRequestUio.js +10 -4
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.d.ts +44 -0
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.js +58 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.d.ts +59 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.js +65 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.d.ts +46 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.js +62 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.d.ts +38 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.js +52 -0
- package/dist/models/FileCreationResponseUio.d.ts +1 -0
- package/dist/models/FileCreationResponseUio.js +2 -1
- package/dist/models/FileUio.d.ts +5 -3
- package/dist/models/FileUio.js +4 -4
- package/dist/models/FileWithDownloadUrlUio.d.ts +5 -3
- package/dist/models/FileWithDownloadUrlUio.js +4 -4
- package/dist/models/ImageKnowledgeUio.d.ts +13 -6
- package/dist/models/ImageKnowledgeUio.js +23 -6
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +14 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +10 -1
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.d.ts +45 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.js +57 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.d.ts +22 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.js +50 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.d.ts +157 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.js +102 -0
- package/dist/models/KnowledgeBaseUio.d.ts +6 -62
- package/dist/models/KnowledgeBaseUio.js +2 -22
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +68 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +64 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.d.ts +51 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.js +58 -0
- package/dist/models/KnowledgeFileSummaryUio.d.ts +2 -3
- package/dist/models/KnowledgeFileSummaryUio.js +2 -3
- package/dist/models/KnowledgeFileUio.d.ts +140 -0
- package/dist/models/KnowledgeFileUio.js +92 -0
- package/dist/models/UploadedStatusUpdateRequestUio.d.ts +39 -0
- package/dist/models/UploadedStatusUpdateRequestUio.js +57 -0
- package/dist/models/index.d.ts +13 -12
- package/dist/models/index.js +13 -12
- package/dist/openapi.json +920 -969
- package/package.json +1 -1
- package/dist/models/AgentRequestProfilePictureUio.d.ts +0 -50
- package/dist/models/AgentRequestProfilePictureUio.js +0 -62
- package/dist/models/DocumentAddRequestUio.d.ts +0 -38
- package/dist/models/DocumentAddRequestUio.js +0 -52
- package/dist/models/FileFormDataUio.d.ts +0 -38
- package/dist/models/FileFormDataUio.js +0 -50
- package/dist/models/FileStatusUpdateRequestUio.d.ts +0 -33
- package/dist/models/FileStatusUpdateRequestUio.js +0 -51
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +0 -56
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +0 -56
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +0 -44
- package/dist/models/KnowledgeBaseFilesInnerUio.js +0 -58
- package/dist/models/KnowledgeBasePrivacyUio.d.ts +0 -25
- package/dist/models/KnowledgeBasePrivacyUio.js +0 -51
- package/dist/models/KnowledgeFilePagePreviewUio.d.ts +0 -44
- package/dist/models/KnowledgeFilePagePreviewUio.js +0 -56
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.d.ts +0 -21
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.js +0 -37
- package/dist/models/UserAgentAccessAgentUio.d.ts +0 -38
- package/dist/models/UserAgentAccessAgentUio.js +0 -54
- package/dist/models/UserAgentAccessRequestUio.d.ts +0 -38
- package/dist/models/UserAgentAccessRequestUio.js +0 -54
- package/dist/models/UserAgentAccessUio.d.ts +0 -45
- package/dist/models/UserAgentAccessUio.js +0 -59
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAgentRefUio = instanceOfAgentRefUio;
|
|
17
|
+
exports.AgentRefUioFromJSON = AgentRefUioFromJSON;
|
|
18
|
+
exports.AgentRefUioFromJSONTyped = AgentRefUioFromJSONTyped;
|
|
19
|
+
exports.AgentRefUioToJSON = AgentRefUioToJSON;
|
|
20
|
+
exports.AgentRefUioToJSONTyped = AgentRefUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentRefUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentRefUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AgentRefUioFromJSON(json) {
|
|
32
|
+
return AgentRefUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AgentRefUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AgentRefUioToJSON(json) {
|
|
44
|
+
return AgentRefUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AgentRefUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -9,11 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AgentModuleUio } from './AgentModuleUio';
|
|
13
12
|
import type { PersonaUio } from './PersonaUio';
|
|
14
|
-
import type { EngineUio } from './EngineUio';
|
|
15
13
|
import type { PromptInitUio } from './PromptInitUio';
|
|
16
|
-
import type { AgentRequestProfilePictureUio } from './AgentRequestProfilePictureUio';
|
|
17
14
|
/**
|
|
18
15
|
*
|
|
19
16
|
* @export
|
|
@@ -32,24 +29,12 @@ export interface AgentRequestUio {
|
|
|
32
29
|
* @memberof AgentRequestUio
|
|
33
30
|
*/
|
|
34
31
|
persona: PersonaUio;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {EngineUio}
|
|
38
|
-
* @memberof AgentRequestUio
|
|
39
|
-
*/
|
|
40
|
-
engine?: EngineUio;
|
|
41
32
|
/**
|
|
42
33
|
*
|
|
43
34
|
* @type {PromptInitUio}
|
|
44
35
|
* @memberof AgentRequestUio
|
|
45
36
|
*/
|
|
46
37
|
promptInit: PromptInitUio;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {AgentRequestProfilePictureUio}
|
|
50
|
-
* @memberof AgentRequestUio
|
|
51
|
-
*/
|
|
52
|
-
profilePicture?: AgentRequestProfilePictureUio;
|
|
53
38
|
/**
|
|
54
39
|
*
|
|
55
40
|
* @type {string}
|
|
@@ -74,56 +59,12 @@ export interface AgentRequestUio {
|
|
|
74
59
|
* @memberof AgentRequestUio
|
|
75
60
|
*/
|
|
76
61
|
description?: string;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof AgentRequestUio
|
|
81
|
-
*/
|
|
82
|
-
template?: string;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof AgentRequestUio
|
|
87
|
-
*/
|
|
88
|
-
color?: string;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof AgentRequestUio
|
|
93
|
-
*/
|
|
94
|
-
picture?: string;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof AgentRequestUio
|
|
99
|
-
*/
|
|
100
|
-
createdAt?: string;
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {boolean}
|
|
104
|
-
* @memberof AgentRequestUio
|
|
105
|
-
*/
|
|
106
|
-
isActivated?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @type {{ [key: string]: AgentModuleUio; }}
|
|
110
|
-
* @memberof AgentRequestUio
|
|
111
|
-
*/
|
|
112
|
-
modules?: {
|
|
113
|
-
[key: string]: AgentModuleUio;
|
|
114
|
-
};
|
|
115
62
|
/**
|
|
116
63
|
*
|
|
117
64
|
* @type {boolean}
|
|
118
65
|
* @memberof AgentRequestUio
|
|
119
66
|
*/
|
|
120
67
|
personal?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
*
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof AgentRequestUio
|
|
125
|
-
*/
|
|
126
|
-
createdBy?: string;
|
|
127
68
|
}
|
|
128
69
|
/**
|
|
129
70
|
* Check if a given object implements the AgentRequestUio interface.
|
|
@@ -18,12 +18,8 @@ exports.AgentRequestUioFromJSON = AgentRequestUioFromJSON;
|
|
|
18
18
|
exports.AgentRequestUioFromJSONTyped = AgentRequestUioFromJSONTyped;
|
|
19
19
|
exports.AgentRequestUioToJSON = AgentRequestUioToJSON;
|
|
20
20
|
exports.AgentRequestUioToJSONTyped = AgentRequestUioToJSONTyped;
|
|
21
|
-
const runtime_1 = require("../runtime");
|
|
22
|
-
const AgentModuleUio_1 = require("./AgentModuleUio");
|
|
23
21
|
const PersonaUio_1 = require("./PersonaUio");
|
|
24
|
-
const EngineUio_1 = require("./EngineUio");
|
|
25
22
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
26
|
-
const AgentRequestProfilePictureUio_1 = require("./AgentRequestProfilePictureUio");
|
|
27
23
|
/**
|
|
28
24
|
* Check if a given object implements the AgentRequestUio interface.
|
|
29
25
|
*/
|
|
@@ -48,21 +44,12 @@ function AgentRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
44
|
return {
|
|
49
45
|
'name': json['name'],
|
|
50
46
|
'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
|
|
51
|
-
'engine': json['engine'] == null ? undefined : (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
|
|
52
47
|
'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
|
|
53
|
-
'profilePicture': json['profilePicture'] == null ? undefined : (0, AgentRequestProfilePictureUio_1.AgentRequestProfilePictureUioFromJSON)(json['profilePicture']),
|
|
54
48
|
'organisationId': json['organisationId'],
|
|
55
49
|
'role': json['role'] == null ? undefined : json['role'],
|
|
56
50
|
'defaultLanguage': json['defaultLanguage'] == null ? undefined : json['defaultLanguage'],
|
|
57
51
|
'description': json['description'] == null ? undefined : json['description'],
|
|
58
|
-
'template': json['template'] == null ? undefined : json['template'],
|
|
59
|
-
'color': json['color'] == null ? undefined : json['color'],
|
|
60
|
-
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
61
|
-
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
62
|
-
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
63
|
-
'modules': json['modules'] == null ? undefined : ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
|
|
64
52
|
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
65
|
-
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
66
53
|
};
|
|
67
54
|
}
|
|
68
55
|
function AgentRequestUioToJSON(json) {
|
|
@@ -75,20 +62,11 @@ function AgentRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
62
|
return {
|
|
76
63
|
'name': value['name'],
|
|
77
64
|
'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
|
|
78
|
-
'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
|
|
79
65
|
'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
|
|
80
|
-
'profilePicture': (0, AgentRequestProfilePictureUio_1.AgentRequestProfilePictureUioToJSON)(value['profilePicture']),
|
|
81
66
|
'organisationId': value['organisationId'],
|
|
82
67
|
'role': value['role'],
|
|
83
68
|
'defaultLanguage': value['defaultLanguage'],
|
|
84
69
|
'description': value['description'],
|
|
85
|
-
'template': value['template'],
|
|
86
|
-
'color': value['color'],
|
|
87
|
-
'picture': value['picture'],
|
|
88
|
-
'createdAt': value['createdAt'],
|
|
89
|
-
'isActivated': value['isActivated'],
|
|
90
|
-
'modules': value['modules'] == null ? undefined : ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
|
|
91
70
|
'personal': value['personal'],
|
|
92
|
-
'createdBy': value['createdBy'],
|
|
93
71
|
};
|
|
94
72
|
}
|
|
@@ -52,12 +52,6 @@ export interface AgentUio {
|
|
|
52
52
|
modules: {
|
|
53
53
|
[key: string]: any;
|
|
54
54
|
};
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Array<AgentToolUio>}
|
|
58
|
-
* @memberof AgentUio
|
|
59
|
-
*/
|
|
60
|
-
tools?: Array<AgentToolUio>;
|
|
61
55
|
/**
|
|
62
56
|
*
|
|
63
57
|
* @type {Array<string>}
|
|
@@ -132,24 +126,6 @@ export interface AgentUio {
|
|
|
132
126
|
* @memberof AgentUio
|
|
133
127
|
*/
|
|
134
128
|
description?: string;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @memberof AgentUio
|
|
139
|
-
*/
|
|
140
|
-
template?: string;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof AgentUio
|
|
145
|
-
*/
|
|
146
|
-
color?: string;
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @type {string}
|
|
150
|
-
* @memberof AgentUio
|
|
151
|
-
*/
|
|
152
|
-
picture?: string;
|
|
153
129
|
/**
|
|
154
130
|
*
|
|
155
131
|
* @type {string}
|
|
@@ -168,32 +144,12 @@ export interface AgentUio {
|
|
|
168
144
|
* @memberof AgentUio
|
|
169
145
|
*/
|
|
170
146
|
isActivated?: boolean;
|
|
171
|
-
/**
|
|
172
|
-
*
|
|
173
|
-
* @type {boolean}
|
|
174
|
-
* @memberof AgentUio
|
|
175
|
-
*/
|
|
176
|
-
isTemplate?: boolean;
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @type {boolean}
|
|
180
|
-
* @memberof AgentUio
|
|
181
|
-
*/
|
|
182
|
-
deleted?: boolean;
|
|
183
147
|
/**
|
|
184
148
|
*
|
|
185
149
|
* @type {AgentTypeUio}
|
|
186
150
|
* @memberof AgentUio
|
|
187
151
|
*/
|
|
188
152
|
agentType?: AgentTypeUio;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {{ [key: string]: any; }}
|
|
192
|
-
* @memberof AgentUio
|
|
193
|
-
*/
|
|
194
|
-
favoriteOutfit?: {
|
|
195
|
-
[key: string]: any;
|
|
196
|
-
};
|
|
197
153
|
/**
|
|
198
154
|
*
|
|
199
155
|
* @type {boolean}
|
|
@@ -254,6 +210,12 @@ export interface AgentUio {
|
|
|
254
210
|
* @memberof AgentUio
|
|
255
211
|
*/
|
|
256
212
|
providerSource?: AgentUioProviderSourceEnum;
|
|
213
|
+
/**
|
|
214
|
+
* Réhydraté en objets par GET /agents/{agentId}, le seul endpoint qui joint la table des tools de l'organisation. Les autres endpoints qui renvoient un agent (liste, création, mise à jour) omettent la propriété : en base elle ne contient que des identifiants.
|
|
215
|
+
* @type {Array<AgentToolUio>}
|
|
216
|
+
* @memberof AgentUio
|
|
217
|
+
*/
|
|
218
|
+
tools?: Array<AgentToolUio>;
|
|
257
219
|
}
|
|
258
220
|
/**
|
|
259
221
|
* @export
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -74,7 +74,6 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
74
|
'name': json['name'],
|
|
75
75
|
'engine': json['engine'] == null ? undefined : (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
|
|
76
76
|
'modules': json['modules'],
|
|
77
|
-
'tools': json['tools'] == null ? undefined : (json['tools'].map(AgentToolUio_1.AgentToolUioFromJSON)),
|
|
78
77
|
'knowledgeBaseIds': json['knowledgeBaseIds'] == null ? undefined : json['knowledgeBaseIds'],
|
|
79
78
|
'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
|
|
80
79
|
'promptInit': (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
|
|
@@ -87,16 +86,10 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
86
|
'roleDetails': json['roleDetails'] == null ? undefined : (0, AgentRoleDetailsUio_1.AgentRoleDetailsUioFromJSON)(json['roleDetails']),
|
|
88
87
|
'defaultLanguage': json['defaultLanguage'] == null ? undefined : json['defaultLanguage'],
|
|
89
88
|
'description': json['description'] == null ? undefined : json['description'],
|
|
90
|
-
'template': json['template'] == null ? undefined : json['template'],
|
|
91
|
-
'color': json['color'] == null ? undefined : json['color'],
|
|
92
|
-
'picture': json['picture'] == null ? undefined : json['picture'],
|
|
93
89
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
94
90
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
95
91
|
'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
|
|
96
|
-
'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
|
|
97
|
-
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
98
92
|
'agentType': json['agentType'] == null ? undefined : (0, AgentTypeUio_1.AgentTypeUioFromJSON)(json['agentType']),
|
|
99
|
-
'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
|
|
100
93
|
'personal': json['personal'] == null ? undefined : json['personal'],
|
|
101
94
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
102
95
|
'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
|
|
@@ -107,6 +100,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
100
|
'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
|
|
108
101
|
'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
|
|
109
102
|
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
103
|
+
'tools': json['tools'] == null ? undefined : (json['tools'].map(AgentToolUio_1.AgentToolUioFromJSON)),
|
|
110
104
|
};
|
|
111
105
|
}
|
|
112
106
|
function AgentUioToJSON(json) {
|
|
@@ -121,7 +115,6 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
121
115
|
'name': value['name'],
|
|
122
116
|
'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
|
|
123
117
|
'modules': value['modules'],
|
|
124
|
-
'tools': value['tools'] == null ? undefined : (value['tools'].map(AgentToolUio_1.AgentToolUioToJSON)),
|
|
125
118
|
'knowledgeBaseIds': value['knowledgeBaseIds'],
|
|
126
119
|
'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
|
|
127
120
|
'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
|
|
@@ -134,16 +127,10 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
134
127
|
'roleDetails': (0, AgentRoleDetailsUio_1.AgentRoleDetailsUioToJSON)(value['roleDetails']),
|
|
135
128
|
'defaultLanguage': value['defaultLanguage'],
|
|
136
129
|
'description': value['description'],
|
|
137
|
-
'template': value['template'],
|
|
138
|
-
'color': value['color'],
|
|
139
|
-
'picture': value['picture'],
|
|
140
130
|
'createdAt': value['createdAt'],
|
|
141
131
|
'updatedAt': value['updatedAt'],
|
|
142
132
|
'isActivated': value['isActivated'],
|
|
143
|
-
'isTemplate': value['isTemplate'],
|
|
144
|
-
'deleted': value['deleted'],
|
|
145
133
|
'agentType': (0, AgentTypeUio_1.AgentTypeUioToJSON)(value['agentType']),
|
|
146
|
-
'favoriteOutfit': value['favoriteOutfit'],
|
|
147
134
|
'personal': value['personal'],
|
|
148
135
|
'createdBy': value['createdBy'],
|
|
149
136
|
'hideConversationsInHistory': value['hideConversationsInHistory'],
|
|
@@ -154,5 +141,6 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
154
141
|
'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
|
|
155
142
|
'engineSource': value['engineSource'],
|
|
156
143
|
'providerSource': value['providerSource'],
|
|
144
|
+
'tools': value['tools'] == null ? undefined : (value['tools'].map(AgentToolUio_1.AgentToolUioToJSON)),
|
|
157
145
|
};
|
|
158
146
|
}
|
|
@@ -22,8 +22,6 @@ exports.ChunkCreateRequestContentInnerUioToJSONTyped = ChunkCreateRequestContent
|
|
|
22
22
|
* Check if a given object implements the ChunkCreateRequestContentInnerUio interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfChunkCreateRequestContentInnerUio(value) {
|
|
25
|
-
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('ext' in value) || value['ext'] === undefined)
|
|
@@ -40,7 +38,7 @@ function ChunkCreateRequestContentInnerUioFromJSONTyped(json, ignoreDiscriminato
|
|
|
40
38
|
return json;
|
|
41
39
|
}
|
|
42
40
|
return {
|
|
43
|
-
'fileName': json['fileName'],
|
|
41
|
+
'fileName': json['fileName'] == null ? undefined : json['fileName'],
|
|
44
42
|
'contentType': json['contentType'],
|
|
45
43
|
'ext': json['ext'],
|
|
46
44
|
'size': json['size'],
|
|
@@ -21,19 +21,19 @@ export interface ChunkCreateRequestUio {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof ChunkCreateRequestUio
|
|
23
23
|
*/
|
|
24
|
-
name
|
|
24
|
+
name: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof ChunkCreateRequestUio
|
|
29
29
|
*/
|
|
30
|
-
version
|
|
30
|
+
version: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {Array<ChunkCreateRequestContentInnerUio>}
|
|
34
34
|
* @memberof ChunkCreateRequestUio
|
|
35
35
|
*/
|
|
36
|
-
content
|
|
36
|
+
content: Array<ChunkCreateRequestContentInnerUio>;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Check if a given object implements the ChunkCreateRequestUio interface.
|
|
@@ -23,6 +23,12 @@ const ChunkCreateRequestContentInnerUio_1 = require("./ChunkCreateRequestContent
|
|
|
23
23
|
* Check if a given object implements the ChunkCreateRequestUio interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfChunkCreateRequestUio(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
31
|
+
return false;
|
|
26
32
|
return true;
|
|
27
33
|
}
|
|
28
34
|
function ChunkCreateRequestUioFromJSON(json) {
|
|
@@ -33,9 +39,9 @@ function ChunkCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
39
|
return json;
|
|
34
40
|
}
|
|
35
41
|
return {
|
|
36
|
-
'name': json['name']
|
|
37
|
-
'version': json['version']
|
|
38
|
-
'content':
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'version': json['version'],
|
|
44
|
+
'content': (json['content'].map(ChunkCreateRequestContentInnerUio_1.ChunkCreateRequestContentInnerUioFromJSON)),
|
|
39
45
|
};
|
|
40
46
|
}
|
|
41
47
|
function ChunkCreateRequestUioToJSON(json) {
|
|
@@ -48,6 +54,6 @@ function ChunkCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
54
|
return {
|
|
49
55
|
'name': value['name'],
|
|
50
56
|
'version': value['version'],
|
|
51
|
-
'content':
|
|
57
|
+
'content': (value['content'].map(ChunkCreateRequestContentInnerUio_1.ChunkCreateRequestContentInnerUioToJSON)),
|
|
52
58
|
};
|
|
53
59
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Obligatoire lorsque `vectorStoreType` vaut `qdrant`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateKnowledgeBaseRequestEmbeddingConfigUio
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateKnowledgeBaseRequestEmbeddingConfigUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateKnowledgeBaseRequestEmbeddingConfigUio
|
|
22
|
+
*/
|
|
23
|
+
providerId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateKnowledgeBaseRequestEmbeddingConfigUio
|
|
28
|
+
*/
|
|
29
|
+
modelId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreateKnowledgeBaseRequestEmbeddingConfigUio
|
|
34
|
+
*/
|
|
35
|
+
dimensions: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateKnowledgeBaseRequestEmbeddingConfigUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateKnowledgeBaseRequestEmbeddingConfigUio(value: object): value is CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
41
|
+
export declare function CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON(json: any): CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
42
|
+
export declare function CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
43
|
+
export declare function CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON(json: any): CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
44
|
+
export declare function CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped(value?: CreateKnowledgeBaseRequestEmbeddingConfigUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateKnowledgeBaseRequestEmbeddingConfigUio = instanceOfCreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
17
|
+
exports.CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON = CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON;
|
|
18
|
+
exports.CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped = CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped;
|
|
19
|
+
exports.CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON = CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON;
|
|
20
|
+
exports.CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped = CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateKnowledgeBaseRequestEmbeddingConfigUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateKnowledgeBaseRequestEmbeddingConfigUio(value) {
|
|
25
|
+
if (!('providerId' in value) || value['providerId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('modelId' in value) || value['modelId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('dimensions' in value) || value['dimensions'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON(json) {
|
|
34
|
+
return CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'providerId': json['providerId'],
|
|
42
|
+
'modelId': json['modelId'],
|
|
43
|
+
'dimensions': json['dimensions'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON(json) {
|
|
47
|
+
return CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function CreateKnowledgeBaseRequestEmbeddingConfigUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'providerId': value['providerId'],
|
|
55
|
+
'modelId': value['modelId'],
|
|
56
|
+
'dimensions': value['dimensions'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateKnowledgeBaseRequestEmbeddingConfigUio } from './CreateKnowledgeBaseRequestEmbeddingConfigUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateKnowledgeBaseRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateKnowledgeBaseRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateKnowledgeBaseRequestUio
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof CreateKnowledgeBaseRequestUio
|
|
29
|
+
*/
|
|
30
|
+
authorizedAgents?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Défaut `weaviate` lorsque omis.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateKnowledgeBaseRequestUio
|
|
35
|
+
*/
|
|
36
|
+
vectorStoreType?: CreateKnowledgeBaseRequestUioVectorStoreTypeEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CreateKnowledgeBaseRequestEmbeddingConfigUio}
|
|
40
|
+
* @memberof CreateKnowledgeBaseRequestUio
|
|
41
|
+
*/
|
|
42
|
+
embeddingConfig?: CreateKnowledgeBaseRequestEmbeddingConfigUio;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const CreateKnowledgeBaseRequestUioVectorStoreTypeEnum: {
|
|
48
|
+
readonly Weaviate: "weaviate";
|
|
49
|
+
readonly Qdrant: "qdrant";
|
|
50
|
+
};
|
|
51
|
+
export type CreateKnowledgeBaseRequestUioVectorStoreTypeEnum = typeof CreateKnowledgeBaseRequestUioVectorStoreTypeEnum[keyof typeof CreateKnowledgeBaseRequestUioVectorStoreTypeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the CreateKnowledgeBaseRequestUio interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfCreateKnowledgeBaseRequestUio(value: object): value is CreateKnowledgeBaseRequestUio;
|
|
56
|
+
export declare function CreateKnowledgeBaseRequestUioFromJSON(json: any): CreateKnowledgeBaseRequestUio;
|
|
57
|
+
export declare function CreateKnowledgeBaseRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKnowledgeBaseRequestUio;
|
|
58
|
+
export declare function CreateKnowledgeBaseRequestUioToJSON(json: any): CreateKnowledgeBaseRequestUio;
|
|
59
|
+
export declare function CreateKnowledgeBaseRequestUioToJSONTyped(value?: CreateKnowledgeBaseRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateKnowledgeBaseRequestUioVectorStoreTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCreateKnowledgeBaseRequestUio = instanceOfCreateKnowledgeBaseRequestUio;
|
|
18
|
+
exports.CreateKnowledgeBaseRequestUioFromJSON = CreateKnowledgeBaseRequestUioFromJSON;
|
|
19
|
+
exports.CreateKnowledgeBaseRequestUioFromJSONTyped = CreateKnowledgeBaseRequestUioFromJSONTyped;
|
|
20
|
+
exports.CreateKnowledgeBaseRequestUioToJSON = CreateKnowledgeBaseRequestUioToJSON;
|
|
21
|
+
exports.CreateKnowledgeBaseRequestUioToJSONTyped = CreateKnowledgeBaseRequestUioToJSONTyped;
|
|
22
|
+
const CreateKnowledgeBaseRequestEmbeddingConfigUio_1 = require("./CreateKnowledgeBaseRequestEmbeddingConfigUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CreateKnowledgeBaseRequestUioVectorStoreTypeEnum = {
|
|
27
|
+
Weaviate: 'weaviate',
|
|
28
|
+
Qdrant: 'qdrant'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateKnowledgeBaseRequestUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfCreateKnowledgeBaseRequestUio(value) {
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function CreateKnowledgeBaseRequestUioFromJSON(json) {
|
|
39
|
+
return CreateKnowledgeBaseRequestUioFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CreateKnowledgeBaseRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'authorizedAgents': json['authorizedAgents'] == null ? undefined : json['authorizedAgents'],
|
|
48
|
+
'vectorStoreType': json['vectorStoreType'] == null ? undefined : json['vectorStoreType'],
|
|
49
|
+
'embeddingConfig': json['embeddingConfig'] == null ? undefined : (0, CreateKnowledgeBaseRequestEmbeddingConfigUio_1.CreateKnowledgeBaseRequestEmbeddingConfigUioFromJSON)(json['embeddingConfig']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function CreateKnowledgeBaseRequestUioToJSON(json) {
|
|
53
|
+
return CreateKnowledgeBaseRequestUioToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CreateKnowledgeBaseRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'authorizedAgents': value['authorizedAgents'],
|
|
62
|
+
'vectorStoreType': value['vectorStoreType'],
|
|
63
|
+
'embeddingConfig': (0, CreateKnowledgeBaseRequestEmbeddingConfigUio_1.CreateKnowledgeBaseRequestEmbeddingConfigUioToJSON)(value['embeddingConfig']),
|
|
64
|
+
};
|
|
65
|
+
}
|