@breign/client 1.0.73 → 1.0.75
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/ToolsApi.d.ts +17 -0
- package/dist/apis/ToolsApi.js +44 -0
- package/dist/models/AgentUio.d.ts +14 -0
- package/dist/models/AgentUio.js +10 -1
- package/dist/models/GuardianEngineUio.d.ts +27 -4
- package/dist/models/GuardianEngineUio.js +11 -4
- package/dist/models/GuardianPutRequestUio.d.ts +13 -0
- package/dist/models/GuardianPutRequestUio.js +5 -0
- package/dist/models/GuardianTypeUio.d.ts +2 -3
- package/dist/models/GuardianTypeUio.js +2 -3
- package/dist/models/GuardianUio.d.ts +1 -1
- package/dist/models/GuardianUio.js +3 -1
- package/dist/openapi.json +104 -6
- package/package.json +1 -1
package/dist/apis/ToolsApi.d.ts
CHANGED
|
@@ -37,6 +37,13 @@ export interface RevealToolTokenRequest {
|
|
|
37
37
|
toolId: string;
|
|
38
38
|
revealTokenRequestUio: RevealTokenRequestUio;
|
|
39
39
|
}
|
|
40
|
+
export interface SearchToolsRequest {
|
|
41
|
+
organizationId: string;
|
|
42
|
+
search?: string;
|
|
43
|
+
excludeIds?: string;
|
|
44
|
+
limit?: number;
|
|
45
|
+
page?: number;
|
|
46
|
+
}
|
|
40
47
|
export interface SetToolTokenRequest {
|
|
41
48
|
toolId: string;
|
|
42
49
|
setTokenRequestUio: SetTokenRequestUio;
|
|
@@ -112,6 +119,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
112
119
|
* Reveal stored tool token (masked in GET)
|
|
113
120
|
*/
|
|
114
121
|
revealToolToken(toolId: string, revealTokenRequestUio: RevealTokenRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevealTokenResponseUio>;
|
|
122
|
+
/**
|
|
123
|
+
* Returns tools matching optional search query, with pagination
|
|
124
|
+
* Search tools in an organization
|
|
125
|
+
*/
|
|
126
|
+
searchToolsRaw(requestParameters: SearchToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentToolUio>>>;
|
|
127
|
+
/**
|
|
128
|
+
* Returns tools matching optional search query, with pagination
|
|
129
|
+
* Search tools in an organization
|
|
130
|
+
*/
|
|
131
|
+
searchTools(organizationId: string, search?: string, excludeIds?: string, limit?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentToolUio>>;
|
|
115
132
|
/**
|
|
116
133
|
* Set or update the tool secret token
|
|
117
134
|
*/
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -272,6 +272,50 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
272
272
|
const response = await this.revealToolTokenRaw({ toolId: toolId, revealTokenRequestUio: revealTokenRequestUio }, initOverrides);
|
|
273
273
|
return await response.value();
|
|
274
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* Returns tools matching optional search query, with pagination
|
|
277
|
+
* Search tools in an organization
|
|
278
|
+
*/
|
|
279
|
+
async searchToolsRaw(requestParameters, initOverrides) {
|
|
280
|
+
if (requestParameters['organizationId'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling searchTools().');
|
|
282
|
+
}
|
|
283
|
+
const queryParameters = {};
|
|
284
|
+
if (requestParameters['organizationId'] != null) {
|
|
285
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
286
|
+
}
|
|
287
|
+
if (requestParameters['search'] != null) {
|
|
288
|
+
queryParameters['search'] = requestParameters['search'];
|
|
289
|
+
}
|
|
290
|
+
if (requestParameters['excludeIds'] != null) {
|
|
291
|
+
queryParameters['excludeIds'] = requestParameters['excludeIds'];
|
|
292
|
+
}
|
|
293
|
+
if (requestParameters['limit'] != null) {
|
|
294
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
295
|
+
}
|
|
296
|
+
if (requestParameters['page'] != null) {
|
|
297
|
+
queryParameters['page'] = requestParameters['page'];
|
|
298
|
+
}
|
|
299
|
+
const headerParameters = {};
|
|
300
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
301
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
302
|
+
}
|
|
303
|
+
const response = await this.request({
|
|
304
|
+
path: `/tools`,
|
|
305
|
+
method: 'GET',
|
|
306
|
+
headers: headerParameters,
|
|
307
|
+
query: queryParameters,
|
|
308
|
+
}, initOverrides);
|
|
309
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentToolUioFromJSON));
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Returns tools matching optional search query, with pagination
|
|
313
|
+
* Search tools in an organization
|
|
314
|
+
*/
|
|
315
|
+
async searchTools(organizationId, search, excludeIds, limit, page, initOverrides) {
|
|
316
|
+
const response = await this.searchToolsRaw({ organizationId: organizationId, search: search, excludeIds: excludeIds, limit: limit, page: page }, initOverrides);
|
|
317
|
+
return await response.value();
|
|
318
|
+
}
|
|
275
319
|
/**
|
|
276
320
|
* Set or update the tool secret token
|
|
277
321
|
*/
|
|
@@ -215,6 +215,12 @@ export interface AgentUio {
|
|
|
215
215
|
* @memberof AgentUio
|
|
216
216
|
*/
|
|
217
217
|
creator?: AgentCreatorUio;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof AgentUio
|
|
222
|
+
*/
|
|
223
|
+
engineSource?: AgentUioEngineSourceEnum;
|
|
218
224
|
/**
|
|
219
225
|
*
|
|
220
226
|
* @type {string}
|
|
@@ -222,6 +228,14 @@ export interface AgentUio {
|
|
|
222
228
|
*/
|
|
223
229
|
providerSource?: AgentUioProviderSourceEnum;
|
|
224
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* @export
|
|
233
|
+
*/
|
|
234
|
+
export declare const AgentUioEngineSourceEnum: {
|
|
235
|
+
readonly Agent: "agent";
|
|
236
|
+
readonly Organization: "organization";
|
|
237
|
+
};
|
|
238
|
+
export type AgentUioEngineSourceEnum = typeof AgentUioEngineSourceEnum[keyof typeof AgentUioEngineSourceEnum];
|
|
225
239
|
/**
|
|
226
240
|
* @export
|
|
227
241
|
*/
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AgentUioProviderSourceEnum = void 0;
|
|
16
|
+
exports.AgentUioProviderSourceEnum = exports.AgentUioEngineSourceEnum = void 0;
|
|
17
17
|
exports.instanceOfAgentUio = instanceOfAgentUio;
|
|
18
18
|
exports.AgentUioFromJSON = AgentUioFromJSON;
|
|
19
19
|
exports.AgentUioFromJSONTyped = AgentUioFromJSONTyped;
|
|
@@ -27,6 +27,13 @@ const AgentCreatorUio_1 = require("./AgentCreatorUio");
|
|
|
27
27
|
const EngineUio_1 = require("./EngineUio");
|
|
28
28
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
29
29
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.AgentUioEngineSourceEnum = {
|
|
34
|
+
Agent: 'agent',
|
|
35
|
+
Organization: 'organization'
|
|
36
|
+
};
|
|
30
37
|
/**
|
|
31
38
|
* @export
|
|
32
39
|
*/
|
|
@@ -91,6 +98,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
98
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
92
99
|
'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
|
|
93
100
|
'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
|
|
101
|
+
'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
|
|
94
102
|
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
95
103
|
};
|
|
96
104
|
}
|
|
@@ -133,6 +141,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
133
141
|
'createdBy': value['createdBy'],
|
|
134
142
|
'hideConversationsInHistory': value['hideConversationsInHistory'],
|
|
135
143
|
'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
|
|
144
|
+
'engineSource': value['engineSource'],
|
|
136
145
|
'providerSource': value['providerSource'],
|
|
137
146
|
};
|
|
138
147
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ModelDefinitionUio } from './ModelDefinitionUio';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,12 +18,34 @@
|
|
|
17
18
|
export interface GuardianEngineUio {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
21
22
|
* @memberof GuardianEngineUio
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
providerId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GuardianEngineUio
|
|
29
|
+
*/
|
|
30
|
+
model?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GuardianEngineUio
|
|
35
|
+
*/
|
|
36
|
+
endpoint?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GuardianEngineUio
|
|
41
|
+
*/
|
|
42
|
+
apiKey?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ModelDefinitionUio}
|
|
46
|
+
* @memberof GuardianEngineUio
|
|
47
|
+
*/
|
|
48
|
+
resolvedModel?: ModelDefinitionUio;
|
|
26
49
|
}
|
|
27
50
|
/**
|
|
28
51
|
* Check if a given object implements the GuardianEngineUio interface.
|
|
@@ -18,12 +18,11 @@ exports.GuardianEngineUioFromJSON = GuardianEngineUioFromJSON;
|
|
|
18
18
|
exports.GuardianEngineUioFromJSONTyped = GuardianEngineUioFromJSONTyped;
|
|
19
19
|
exports.GuardianEngineUioToJSON = GuardianEngineUioToJSON;
|
|
20
20
|
exports.GuardianEngineUioToJSONTyped = GuardianEngineUioToJSONTyped;
|
|
21
|
+
const ModelDefinitionUio_1 = require("./ModelDefinitionUio");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the GuardianEngineUio interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfGuardianEngineUio(value) {
|
|
25
|
-
if (!('configuration' in value) || value['configuration'] === undefined)
|
|
26
|
-
return false;
|
|
27
26
|
return true;
|
|
28
27
|
}
|
|
29
28
|
function GuardianEngineUioFromJSON(json) {
|
|
@@ -34,7 +33,11 @@ function GuardianEngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
33
|
return json;
|
|
35
34
|
}
|
|
36
35
|
return {
|
|
37
|
-
'
|
|
36
|
+
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
37
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
38
|
+
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
39
|
+
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
|
|
40
|
+
'resolvedModel': json['resolvedModel'] == null ? undefined : (0, ModelDefinitionUio_1.ModelDefinitionUioFromJSON)(json['resolvedModel']),
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
function GuardianEngineUioToJSON(json) {
|
|
@@ -45,6 +48,10 @@ function GuardianEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
48
|
return value;
|
|
46
49
|
}
|
|
47
50
|
return {
|
|
48
|
-
'
|
|
51
|
+
'providerId': value['providerId'],
|
|
52
|
+
'model': value['model'],
|
|
53
|
+
'endpoint': value['endpoint'],
|
|
54
|
+
'apiKey': value['apiKey'],
|
|
55
|
+
'resolvedModel': (0, ModelDefinitionUio_1.ModelDefinitionUioToJSON)(value['resolvedModel']),
|
|
49
56
|
};
|
|
50
57
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
|
+
import type { GuardianEngineUio } from './GuardianEngineUio';
|
|
13
14
|
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
14
15
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
15
16
|
/**
|
|
@@ -62,6 +63,18 @@ export interface GuardianPutRequestUio {
|
|
|
62
63
|
* @memberof GuardianPutRequestUio
|
|
63
64
|
*/
|
|
64
65
|
position?: Array<GuardianPositionUio>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {GuardianEngineUio}
|
|
69
|
+
* @memberof GuardianPutRequestUio
|
|
70
|
+
*/
|
|
71
|
+
engine?: GuardianEngineUio;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<any>}
|
|
75
|
+
* @memberof GuardianPutRequestUio
|
|
76
|
+
*/
|
|
77
|
+
excludedAgents?: Array<any>;
|
|
65
78
|
}
|
|
66
79
|
/**
|
|
67
80
|
* Check if a given object implements the GuardianPutRequestUio interface.
|
|
@@ -19,6 +19,7 @@ exports.GuardianPutRequestUioFromJSONTyped = GuardianPutRequestUioFromJSONTyped;
|
|
|
19
19
|
exports.GuardianPutRequestUioToJSON = GuardianPutRequestUioToJSON;
|
|
20
20
|
exports.GuardianPutRequestUioToJSONTyped = GuardianPutRequestUioToJSONTyped;
|
|
21
21
|
const GuardianRoleUio_1 = require("./GuardianRoleUio");
|
|
22
|
+
const GuardianEngineUio_1 = require("./GuardianEngineUio");
|
|
22
23
|
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
23
24
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
24
25
|
/**
|
|
@@ -42,6 +43,8 @@ function GuardianPutRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
|
|
43
44
|
'thresholds': json['thresholds'] == null ? undefined : json['thresholds'],
|
|
44
45
|
'position': json['position'] == null ? undefined : (json['position'].map(GuardianPositionUio_1.GuardianPositionUioFromJSON)),
|
|
46
|
+
'engine': json['engine'] == null ? undefined : (0, GuardianEngineUio_1.GuardianEngineUioFromJSON)(json['engine']),
|
|
47
|
+
'excludedAgents': json['excludedAgents'] == null ? undefined : json['excludedAgents'],
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
function GuardianPutRequestUioToJSON(json) {
|
|
@@ -59,5 +62,7 @@ function GuardianPutRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
62
|
'forbiddenMessages': value['forbiddenMessages'],
|
|
60
63
|
'thresholds': value['thresholds'],
|
|
61
64
|
'position': value['position'] == null ? undefined : (value['position'].map(GuardianPositionUio_1.GuardianPositionUioToJSON)),
|
|
65
|
+
'engine': (0, GuardianEngineUio_1.GuardianEngineUioToJSON)(value['engine']),
|
|
66
|
+
'excludedAgents': value['excludedAgents'],
|
|
62
67
|
};
|
|
63
68
|
}
|
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const GuardianTypeUio: {
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly Llmguards: "llmguards";
|
|
17
|
+
readonly ModerationApi: "moderationAPI";
|
|
18
|
+
readonly BreignGuardApi: "breignGuardAPI";
|
|
20
19
|
};
|
|
21
20
|
export type GuardianTypeUio = typeof GuardianTypeUio[keyof typeof GuardianTypeUio];
|
|
22
21
|
export declare function instanceOfGuardianTypeUio(value: any): boolean;
|
|
@@ -24,9 +24,8 @@ exports.GuardianTypeUioToJSONTyped = GuardianTypeUioToJSONTyped;
|
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.GuardianTypeUio = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Llmguards: 'llmguards'
|
|
27
|
+
ModerationApi: 'moderationAPI',
|
|
28
|
+
BreignGuardApi: 'breignGuardAPI'
|
|
30
29
|
};
|
|
31
30
|
function instanceOfGuardianTypeUio(value) {
|
|
32
31
|
for (const key in exports.GuardianTypeUio) {
|
|
@@ -30,6 +30,8 @@ function instanceOfGuardianUio(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('type' in value) || value['type'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('organisationId' in value) || value['organisationId'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('role' in value) || value['role'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -52,7 +54,7 @@ function GuardianUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'description': json['description'] == null ? undefined : json['description'],
|
|
53
55
|
'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
|
|
54
56
|
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
55
|
-
'organisationId': json['organisationId']
|
|
57
|
+
'organisationId': json['organisationId'],
|
|
56
58
|
'role': (0, GuardianRoleUio_1.GuardianRoleUioFromJSON)(json['role']),
|
|
57
59
|
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
58
60
|
'createdAt': json['createdAt'],
|
package/dist/openapi.json
CHANGED
|
@@ -5364,6 +5364,83 @@
|
|
|
5364
5364
|
}
|
|
5365
5365
|
},
|
|
5366
5366
|
"/tools" : {
|
|
5367
|
+
"get" : {
|
|
5368
|
+
"description" : "Returns tools matching optional search query, with pagination",
|
|
5369
|
+
"operationId" : "searchTools",
|
|
5370
|
+
"parameters" : [ {
|
|
5371
|
+
"description" : "Organization ID",
|
|
5372
|
+
"in" : "query",
|
|
5373
|
+
"name" : "organizationId",
|
|
5374
|
+
"required" : true,
|
|
5375
|
+
"schema" : {
|
|
5376
|
+
"type" : "string"
|
|
5377
|
+
}
|
|
5378
|
+
}, {
|
|
5379
|
+
"description" : "Search query to filter tools by name or description",
|
|
5380
|
+
"in" : "query",
|
|
5381
|
+
"name" : "search",
|
|
5382
|
+
"schema" : {
|
|
5383
|
+
"type" : "string"
|
|
5384
|
+
}
|
|
5385
|
+
}, {
|
|
5386
|
+
"description" : "Comma-separated list of tool IDs to exclude",
|
|
5387
|
+
"in" : "query",
|
|
5388
|
+
"name" : "excludeIds",
|
|
5389
|
+
"schema" : {
|
|
5390
|
+
"type" : "string"
|
|
5391
|
+
}
|
|
5392
|
+
}, {
|
|
5393
|
+
"description" : "Maximum number of tools to return",
|
|
5394
|
+
"in" : "query",
|
|
5395
|
+
"name" : "limit",
|
|
5396
|
+
"schema" : {
|
|
5397
|
+
"default" : 20,
|
|
5398
|
+
"maximum" : 100,
|
|
5399
|
+
"type" : "integer"
|
|
5400
|
+
}
|
|
5401
|
+
}, {
|
|
5402
|
+
"description" : "Page number",
|
|
5403
|
+
"in" : "query",
|
|
5404
|
+
"name" : "page",
|
|
5405
|
+
"schema" : {
|
|
5406
|
+
"type" : "integer"
|
|
5407
|
+
}
|
|
5408
|
+
} ],
|
|
5409
|
+
"responses" : {
|
|
5410
|
+
"200" : {
|
|
5411
|
+
"content" : {
|
|
5412
|
+
"application/json" : {
|
|
5413
|
+
"schema" : {
|
|
5414
|
+
"items" : {
|
|
5415
|
+
"$ref" : "#/components/schemas/AgentTool"
|
|
5416
|
+
},
|
|
5417
|
+
"type" : "array"
|
|
5418
|
+
}
|
|
5419
|
+
}
|
|
5420
|
+
},
|
|
5421
|
+
"description" : "List of tools",
|
|
5422
|
+
"headers" : {
|
|
5423
|
+
"X-Total-Count" : {
|
|
5424
|
+
"description" : "Total number of matching tools",
|
|
5425
|
+
"schema" : {
|
|
5426
|
+
"type" : "integer"
|
|
5427
|
+
}
|
|
5428
|
+
}
|
|
5429
|
+
}
|
|
5430
|
+
},
|
|
5431
|
+
"400" : {
|
|
5432
|
+
"description" : "MISSING_ORG_ID"
|
|
5433
|
+
},
|
|
5434
|
+
"401" : {
|
|
5435
|
+
"description" : "Unauthorized"
|
|
5436
|
+
},
|
|
5437
|
+
"403" : {
|
|
5438
|
+
"description" : "Forbidden"
|
|
5439
|
+
}
|
|
5440
|
+
},
|
|
5441
|
+
"summary" : "Search tools in an organization",
|
|
5442
|
+
"tags" : [ "tools" ]
|
|
5443
|
+
},
|
|
5367
5444
|
"post" : {
|
|
5368
5445
|
"description" : "Creates a tool in an organization (admin only)",
|
|
5369
5446
|
"operationId" : "createTool",
|
|
@@ -7013,6 +7090,10 @@
|
|
|
7013
7090
|
"creator" : {
|
|
7014
7091
|
"$ref" : "#/components/schemas/Agent_creator"
|
|
7015
7092
|
},
|
|
7093
|
+
"engineSource" : {
|
|
7094
|
+
"enum" : [ "agent", "organization" ],
|
|
7095
|
+
"type" : "string"
|
|
7096
|
+
},
|
|
7016
7097
|
"providerSource" : {
|
|
7017
7098
|
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
7018
7099
|
"type" : "string"
|
|
@@ -9267,7 +9348,7 @@
|
|
|
9267
9348
|
"type" : "array"
|
|
9268
9349
|
}
|
|
9269
9350
|
},
|
|
9270
|
-
"required" : [ "createdAt", "engine", "id", "role", "type" ],
|
|
9351
|
+
"required" : [ "createdAt", "engine", "id", "organisationId", "role", "type" ],
|
|
9271
9352
|
"type" : "object"
|
|
9272
9353
|
},
|
|
9273
9354
|
"GuardianCreateRequest" : {
|
|
@@ -9334,6 +9415,13 @@
|
|
|
9334
9415
|
"$ref" : "#/components/schemas/GuardianPosition"
|
|
9335
9416
|
},
|
|
9336
9417
|
"type" : "array"
|
|
9418
|
+
},
|
|
9419
|
+
"engine" : {
|
|
9420
|
+
"$ref" : "#/components/schemas/GuardianEngine"
|
|
9421
|
+
},
|
|
9422
|
+
"excludedAgents" : {
|
|
9423
|
+
"items" : { },
|
|
9424
|
+
"type" : "array"
|
|
9337
9425
|
}
|
|
9338
9426
|
},
|
|
9339
9427
|
"type" : "object"
|
|
@@ -9999,7 +10087,7 @@
|
|
|
9999
10087
|
"type" : "string"
|
|
10000
10088
|
},
|
|
10001
10089
|
"GuardianType" : {
|
|
10002
|
-
"enum" : [ "
|
|
10090
|
+
"enum" : [ "moderationAPI", "breignGuardAPI" ],
|
|
10003
10091
|
"type" : "string"
|
|
10004
10092
|
},
|
|
10005
10093
|
"GuardianRole" : {
|
|
@@ -10008,12 +10096,22 @@
|
|
|
10008
10096
|
},
|
|
10009
10097
|
"GuardianEngine" : {
|
|
10010
10098
|
"properties" : {
|
|
10011
|
-
"
|
|
10012
|
-
"
|
|
10013
|
-
|
|
10099
|
+
"providerId" : {
|
|
10100
|
+
"type" : "string"
|
|
10101
|
+
},
|
|
10102
|
+
"model" : {
|
|
10103
|
+
"type" : "string"
|
|
10104
|
+
},
|
|
10105
|
+
"endpoint" : {
|
|
10106
|
+
"type" : "string"
|
|
10107
|
+
},
|
|
10108
|
+
"apiKey" : {
|
|
10109
|
+
"type" : "string"
|
|
10110
|
+
},
|
|
10111
|
+
"resolvedModel" : {
|
|
10112
|
+
"$ref" : "#/components/schemas/ModelDefinition"
|
|
10014
10113
|
}
|
|
10015
10114
|
},
|
|
10016
|
-
"required" : [ "configuration" ],
|
|
10017
10115
|
"type" : "object"
|
|
10018
10116
|
},
|
|
10019
10117
|
"GuardianPosition" : {
|