@ideascol/agents-generator-sdk 0.5.2 → 0.6.0
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/bin/cli.js +74 -3
- package/dist/index.js +76 -3
- package/dist/lib/clients/agents-generator/index.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/GenerateSchemaRequest.d.ts +5 -0
- package/dist/lib/clients/agents-generator/models/GenerateSchemaResponse.d.ts +3 -0
- package/dist/lib/clients/agents-generator/models/NodeData.d.ts +20 -0
- package/dist/lib/clients/agents-generator/services/AdminApiKeysService.d.ts +2 -2
- package/dist/lib/clients/agents-generator/services/ModelsService.d.ts +37 -0
- package/dist/lib/clients/agents-generator/services/SchemaGeneratorService.d.ts +12 -0
- package/dist/lib/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -598,7 +598,7 @@ var OpenAPI;
|
|
|
598
598
|
var init_OpenAPI = __esm(() => {
|
|
599
599
|
OpenAPI = {
|
|
600
600
|
BASE: "",
|
|
601
|
-
VERSION: "main-
|
|
601
|
+
VERSION: "main-d4137163367888e6b3bdfc21d6bb8fa2ce4bceba",
|
|
602
602
|
WITH_CREDENTIALS: false,
|
|
603
603
|
CREDENTIALS: "include",
|
|
604
604
|
TOKEN: undefined,
|
|
@@ -2199,6 +2199,54 @@ var init_McpServersService = __esm(() => {
|
|
|
2199
2199
|
init_request();
|
|
2200
2200
|
});
|
|
2201
2201
|
|
|
2202
|
+
// src/lib/clients/agents-generator/services/ModelsService.ts
|
|
2203
|
+
class ModelsService {
|
|
2204
|
+
static getModelsModelsGet(provider, mode, supportsFunctionCalling, supportsVision, search) {
|
|
2205
|
+
return request(OpenAPI, {
|
|
2206
|
+
method: "GET",
|
|
2207
|
+
url: "/models",
|
|
2208
|
+
query: {
|
|
2209
|
+
provider,
|
|
2210
|
+
mode,
|
|
2211
|
+
supports_function_calling: supportsFunctionCalling,
|
|
2212
|
+
supports_vision: supportsVision,
|
|
2213
|
+
search
|
|
2214
|
+
},
|
|
2215
|
+
errors: {
|
|
2216
|
+
422: `Validation Error`
|
|
2217
|
+
}
|
|
2218
|
+
});
|
|
2219
|
+
}
|
|
2220
|
+
static getProvidersModelsProvidersGet() {
|
|
2221
|
+
return request(OpenAPI, {
|
|
2222
|
+
method: "GET",
|
|
2223
|
+
url: "/models/providers"
|
|
2224
|
+
});
|
|
2225
|
+
}
|
|
2226
|
+
static getModesModelsModesGet() {
|
|
2227
|
+
return request(OpenAPI, {
|
|
2228
|
+
method: "GET",
|
|
2229
|
+
url: "/models/modes"
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
static getModelByNameModelsModelNameGet(modelName) {
|
|
2233
|
+
return request(OpenAPI, {
|
|
2234
|
+
method: "GET",
|
|
2235
|
+
url: "/models/{model_name}",
|
|
2236
|
+
path: {
|
|
2237
|
+
model_name: modelName
|
|
2238
|
+
},
|
|
2239
|
+
errors: {
|
|
2240
|
+
422: `Validation Error`
|
|
2241
|
+
}
|
|
2242
|
+
});
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
var init_ModelsService = __esm(() => {
|
|
2246
|
+
init_OpenAPI();
|
|
2247
|
+
init_request();
|
|
2248
|
+
});
|
|
2249
|
+
|
|
2202
2250
|
// src/lib/clients/agents-generator/services/PresenceService.ts
|
|
2203
2251
|
class PresenceService {
|
|
2204
2252
|
static getAgentPresencePresenceAgentsAgentIdGet(agentId) {
|
|
@@ -2312,6 +2360,25 @@ var init_RootService = __esm(() => {
|
|
|
2312
2360
|
init_request();
|
|
2313
2361
|
});
|
|
2314
2362
|
|
|
2363
|
+
// src/lib/clients/agents-generator/services/SchemaGeneratorService.ts
|
|
2364
|
+
class SchemaGeneratorService {
|
|
2365
|
+
static generateSchemaApiGenerateSchemaPost(requestBody) {
|
|
2366
|
+
return request(OpenAPI, {
|
|
2367
|
+
method: "POST",
|
|
2368
|
+
url: "/api/generate-schema",
|
|
2369
|
+
body: requestBody,
|
|
2370
|
+
mediaType: "application/json",
|
|
2371
|
+
errors: {
|
|
2372
|
+
422: `Validation Error`
|
|
2373
|
+
}
|
|
2374
|
+
});
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
var init_SchemaGeneratorService = __esm(() => {
|
|
2378
|
+
init_OpenAPI();
|
|
2379
|
+
init_request();
|
|
2380
|
+
});
|
|
2381
|
+
|
|
2315
2382
|
// src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
|
|
2316
2383
|
class WorkspaceCollaboratorsService {
|
|
2317
2384
|
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
@@ -2487,10 +2554,12 @@ var init_agents_generator = __esm(() => {
|
|
|
2487
2554
|
init_CredentialsService();
|
|
2488
2555
|
init_FileLibraryService();
|
|
2489
2556
|
init_McpServersService();
|
|
2557
|
+
init_ModelsService();
|
|
2490
2558
|
init_PresenceService();
|
|
2491
2559
|
init_PublicAgentsService();
|
|
2492
2560
|
init_PublicConversationsService();
|
|
2493
2561
|
init_RootService();
|
|
2562
|
+
init_SchemaGeneratorService();
|
|
2494
2563
|
init_WorkspaceCollaboratorsService();
|
|
2495
2564
|
init_WorkspacesService();
|
|
2496
2565
|
});
|
|
@@ -2535,11 +2604,13 @@ class AgentClient {
|
|
|
2535
2604
|
workspaces: AdminWorkspacesService,
|
|
2536
2605
|
collaborators: WorkspaceCollaboratorsService,
|
|
2537
2606
|
apiKeys: AdminApiKeysService,
|
|
2538
|
-
presence: PresenceService
|
|
2607
|
+
presence: PresenceService,
|
|
2608
|
+
schema: SchemaGeneratorService
|
|
2539
2609
|
};
|
|
2540
2610
|
this.public = {
|
|
2541
2611
|
agents: PublicAgentsService,
|
|
2542
|
-
conversations: PublicConversationsServiceExtended
|
|
2612
|
+
conversations: PublicConversationsServiceExtended,
|
|
2613
|
+
models: ModelsService
|
|
2543
2614
|
};
|
|
2544
2615
|
this.ApiError = ApiError;
|
|
2545
2616
|
this.CancelError = CancelError;
|
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var OpenAPI;
|
|
|
166
166
|
var init_OpenAPI = __esm(() => {
|
|
167
167
|
OpenAPI = {
|
|
168
168
|
BASE: "",
|
|
169
|
-
VERSION: "main-
|
|
169
|
+
VERSION: "main-d4137163367888e6b3bdfc21d6bb8fa2ce4bceba",
|
|
170
170
|
WITH_CREDENTIALS: false,
|
|
171
171
|
CREDENTIALS: "include",
|
|
172
172
|
TOKEN: undefined,
|
|
@@ -1767,6 +1767,54 @@ var init_McpServersService = __esm(() => {
|
|
|
1767
1767
|
init_request();
|
|
1768
1768
|
});
|
|
1769
1769
|
|
|
1770
|
+
// src/lib/clients/agents-generator/services/ModelsService.ts
|
|
1771
|
+
class ModelsService {
|
|
1772
|
+
static getModelsModelsGet(provider, mode, supportsFunctionCalling, supportsVision, search) {
|
|
1773
|
+
return request(OpenAPI, {
|
|
1774
|
+
method: "GET",
|
|
1775
|
+
url: "/models",
|
|
1776
|
+
query: {
|
|
1777
|
+
provider,
|
|
1778
|
+
mode,
|
|
1779
|
+
supports_function_calling: supportsFunctionCalling,
|
|
1780
|
+
supports_vision: supportsVision,
|
|
1781
|
+
search
|
|
1782
|
+
},
|
|
1783
|
+
errors: {
|
|
1784
|
+
422: `Validation Error`
|
|
1785
|
+
}
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
static getProvidersModelsProvidersGet() {
|
|
1789
|
+
return request(OpenAPI, {
|
|
1790
|
+
method: "GET",
|
|
1791
|
+
url: "/models/providers"
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
static getModesModelsModesGet() {
|
|
1795
|
+
return request(OpenAPI, {
|
|
1796
|
+
method: "GET",
|
|
1797
|
+
url: "/models/modes"
|
|
1798
|
+
});
|
|
1799
|
+
}
|
|
1800
|
+
static getModelByNameModelsModelNameGet(modelName) {
|
|
1801
|
+
return request(OpenAPI, {
|
|
1802
|
+
method: "GET",
|
|
1803
|
+
url: "/models/{model_name}",
|
|
1804
|
+
path: {
|
|
1805
|
+
model_name: modelName
|
|
1806
|
+
},
|
|
1807
|
+
errors: {
|
|
1808
|
+
422: `Validation Error`
|
|
1809
|
+
}
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
var init_ModelsService = __esm(() => {
|
|
1814
|
+
init_OpenAPI();
|
|
1815
|
+
init_request();
|
|
1816
|
+
});
|
|
1817
|
+
|
|
1770
1818
|
// src/lib/clients/agents-generator/services/PresenceService.ts
|
|
1771
1819
|
class PresenceService {
|
|
1772
1820
|
static getAgentPresencePresenceAgentsAgentIdGet(agentId) {
|
|
@@ -1880,6 +1928,25 @@ var init_RootService = __esm(() => {
|
|
|
1880
1928
|
init_request();
|
|
1881
1929
|
});
|
|
1882
1930
|
|
|
1931
|
+
// src/lib/clients/agents-generator/services/SchemaGeneratorService.ts
|
|
1932
|
+
class SchemaGeneratorService {
|
|
1933
|
+
static generateSchemaApiGenerateSchemaPost(requestBody) {
|
|
1934
|
+
return request(OpenAPI, {
|
|
1935
|
+
method: "POST",
|
|
1936
|
+
url: "/api/generate-schema",
|
|
1937
|
+
body: requestBody,
|
|
1938
|
+
mediaType: "application/json",
|
|
1939
|
+
errors: {
|
|
1940
|
+
422: `Validation Error`
|
|
1941
|
+
}
|
|
1942
|
+
});
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
var init_SchemaGeneratorService = __esm(() => {
|
|
1946
|
+
init_OpenAPI();
|
|
1947
|
+
init_request();
|
|
1948
|
+
});
|
|
1949
|
+
|
|
1883
1950
|
// src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
|
|
1884
1951
|
class WorkspaceCollaboratorsService {
|
|
1885
1952
|
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
@@ -2055,10 +2122,12 @@ var init_agents_generator = __esm(() => {
|
|
|
2055
2122
|
init_CredentialsService();
|
|
2056
2123
|
init_FileLibraryService();
|
|
2057
2124
|
init_McpServersService();
|
|
2125
|
+
init_ModelsService();
|
|
2058
2126
|
init_PresenceService();
|
|
2059
2127
|
init_PublicAgentsService();
|
|
2060
2128
|
init_PublicConversationsService();
|
|
2061
2129
|
init_RootService();
|
|
2130
|
+
init_SchemaGeneratorService();
|
|
2062
2131
|
init_WorkspaceCollaboratorsService();
|
|
2063
2132
|
init_WorkspacesService();
|
|
2064
2133
|
});
|
|
@@ -2103,11 +2172,13 @@ class AgentClient {
|
|
|
2103
2172
|
workspaces: AdminWorkspacesService,
|
|
2104
2173
|
collaborators: WorkspaceCollaboratorsService,
|
|
2105
2174
|
apiKeys: AdminApiKeysService,
|
|
2106
|
-
presence: PresenceService
|
|
2175
|
+
presence: PresenceService,
|
|
2176
|
+
schema: SchemaGeneratorService
|
|
2107
2177
|
};
|
|
2108
2178
|
this.public = {
|
|
2109
2179
|
agents: PublicAgentsService,
|
|
2110
|
-
conversations: PublicConversationsServiceExtended
|
|
2180
|
+
conversations: PublicConversationsServiceExtended,
|
|
2181
|
+
models: ModelsService
|
|
2111
2182
|
};
|
|
2112
2183
|
this.ApiError = ApiError;
|
|
2113
2184
|
this.CancelError = CancelError;
|
|
@@ -2358,11 +2429,13 @@ var exports_src = {};
|
|
|
2358
2429
|
__export(exports_src, {
|
|
2359
2430
|
WorkspacesService: () => WorkspacesService,
|
|
2360
2431
|
WorkspaceCollaboratorsService: () => WorkspaceCollaboratorsService,
|
|
2432
|
+
SchemaGeneratorService: () => SchemaGeneratorService,
|
|
2361
2433
|
RootService: () => RootService,
|
|
2362
2434
|
PublicConversationsService: () => PublicConversationsService,
|
|
2363
2435
|
PublicAgentsService: () => PublicAgentsService,
|
|
2364
2436
|
PresenceService: () => PresenceService,
|
|
2365
2437
|
OpenAPI: () => OpenAPI,
|
|
2438
|
+
ModelsService: () => ModelsService,
|
|
2366
2439
|
McpServersService: () => McpServersService,
|
|
2367
2440
|
FileLibraryService: () => FileLibraryService,
|
|
2368
2441
|
CredentialsService: () => CredentialsService,
|
|
@@ -31,6 +31,8 @@ export type { FolderCreate } from './models/FolderCreate';
|
|
|
31
31
|
export type { FolderResponse } from './models/FolderResponse';
|
|
32
32
|
export type { FolderUploadRequest } from './models/FolderUploadRequest';
|
|
33
33
|
export type { FolderUploadResponse } from './models/FolderUploadResponse';
|
|
34
|
+
export type { GenerateSchemaRequest } from './models/GenerateSchemaRequest';
|
|
35
|
+
export type { GenerateSchemaResponse } from './models/GenerateSchemaResponse';
|
|
34
36
|
export type { GetAgentResponse } from './models/GetAgentResponse';
|
|
35
37
|
export type { Handoff } from './models/Handoff';
|
|
36
38
|
export type { HTTPValidationError } from './models/HTTPValidationError';
|
|
@@ -65,9 +67,11 @@ export { ConversationsService } from './services/ConversationsService';
|
|
|
65
67
|
export { CredentialsService } from './services/CredentialsService';
|
|
66
68
|
export { FileLibraryService } from './services/FileLibraryService';
|
|
67
69
|
export { McpServersService } from './services/McpServersService';
|
|
70
|
+
export { ModelsService } from './services/ModelsService';
|
|
68
71
|
export { PresenceService } from './services/PresenceService';
|
|
69
72
|
export { PublicAgentsService } from './services/PublicAgentsService';
|
|
70
73
|
export { PublicConversationsService } from './services/PublicConversationsService';
|
|
71
74
|
export { RootService } from './services/RootService';
|
|
75
|
+
export { SchemaGeneratorService } from './services/SchemaGeneratorService';
|
|
72
76
|
export { WorkspaceCollaboratorsService } from './services/WorkspaceCollaboratorsService';
|
|
73
77
|
export { WorkspacesService } from './services/WorkspacesService';
|
|
@@ -29,4 +29,24 @@ export type NodeData = {
|
|
|
29
29
|
* JSON schema for the agent output
|
|
30
30
|
*/
|
|
31
31
|
output_schema?: (Record<string, any> | null);
|
|
32
|
+
/**
|
|
33
|
+
* Model provider (openai, ollama, lmstudio, etc.)
|
|
34
|
+
*/
|
|
35
|
+
model_provider?: (string | null);
|
|
36
|
+
/**
|
|
37
|
+
* Model name to use for this node
|
|
38
|
+
*/
|
|
39
|
+
model_name?: (string | null);
|
|
40
|
+
/**
|
|
41
|
+
* Base URL for custom model providers (e.g., Ollama, LMStudio)
|
|
42
|
+
*/
|
|
43
|
+
base_url?: (string | null);
|
|
44
|
+
/**
|
|
45
|
+
* ID of the credential to use for this node (overrides agent-level credential)
|
|
46
|
+
*/
|
|
47
|
+
credential_id?: (string | null);
|
|
48
|
+
/**
|
|
49
|
+
* Maximum number of tokens to generate in the response
|
|
50
|
+
*/
|
|
51
|
+
max_tokens?: (number | null);
|
|
32
52
|
};
|
|
@@ -12,7 +12,7 @@ export declare class AdminApiKeysService {
|
|
|
12
12
|
* @returns ApiKeyWithSecret Successful Response
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
|
-
static createWorkspaceApiKey(workspaceId: string, requestBody
|
|
15
|
+
static createWorkspaceApiKey(workspaceId: string, requestBody: ApiKeyCreate): CancelablePromise<ApiKeyWithSecret>;
|
|
16
16
|
/**
|
|
17
17
|
* Get Api Keys
|
|
18
18
|
* Get all API keys for a workspace
|
|
@@ -39,7 +39,7 @@ export declare class AdminApiKeysService {
|
|
|
39
39
|
* @returns ApiKeyResponse Successful Response
|
|
40
40
|
* @throws ApiError
|
|
41
41
|
*/
|
|
42
|
-
static updateWorkspaceApiKey(workspaceId: string, apiKeyId: string, requestBody
|
|
42
|
+
static updateWorkspaceApiKey(workspaceId: string, apiKeyId: string, requestBody: ApiKeyUpdate): CancelablePromise<ApiKeyResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* Delete Api Key
|
|
45
45
|
* Delete an API key
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class ModelsService {
|
|
3
|
+
/**
|
|
4
|
+
* Get all models with optional filtering
|
|
5
|
+
* Returns all available LiteLLM models with pricing and capability information. Supports filtering by provider, mode, capabilities, and search.
|
|
6
|
+
* @param provider Filter by litellm_provider (e.g., 'openai', 'anthropic', 'bedrock')
|
|
7
|
+
* @param mode Filter by mode (e.g., 'chat', 'embedding', 'image_generation')
|
|
8
|
+
* @param supportsFunctionCalling Filter by function calling support
|
|
9
|
+
* @param supportsVision Filter by vision support
|
|
10
|
+
* @param search Search in model names (case-insensitive)
|
|
11
|
+
* @returns any List of models matching the filter criteria
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static getModelsModelsGet(provider?: (string | null), mode?: (string | null), supportsFunctionCalling?: (boolean | null), supportsVision?: (boolean | null), search?: (string | null)): CancelablePromise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* Get all available providers
|
|
17
|
+
* Returns a sorted list of all unique LiteLLM providers available in the model database.
|
|
18
|
+
* @returns any List of provider names
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
static getProvidersModelsProvidersGet(): CancelablePromise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Get all available modes
|
|
24
|
+
* Returns a sorted list of all unique model modes (e.g., chat, embedding, image_generation).
|
|
25
|
+
* @returns any List of mode types
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static getModesModelsModesGet(): CancelablePromise<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Get model details by name
|
|
31
|
+
* Returns detailed information for a specific model including pricing, token limits, and capabilities.
|
|
32
|
+
* @param modelName
|
|
33
|
+
* @returns any Model details or error if not found
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static getModelByNameModelsModelNameGet(modelName: string): CancelablePromise<any>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GenerateSchemaRequest } from '../models/GenerateSchemaRequest';
|
|
2
|
+
import type { GenerateSchemaResponse } from '../models/GenerateSchemaResponse';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class SchemaGeneratorService {
|
|
5
|
+
/**
|
|
6
|
+
* Generate Schema
|
|
7
|
+
* @param requestBody
|
|
8
|
+
* @returns GenerateSchemaResponse Successful Response
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static generateSchemaApiGenerateSchemaPost(requestBody: GenerateSchemaRequest): CancelablePromise<GenerateSchemaResponse>;
|
|
12
|
+
}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService, AdminAgentsService, PublicAgentsService, PublicConversationsService, AdminConversationsService, AdminCredentialsService, AdminFileLibraryService, AdminMcpServersService, AdminWorkspacesService, WorkspaceCollaboratorsService, AdminApiKeysService, PresenceService } from "./clients/agents-generator";
|
|
1
|
+
import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService, AdminAgentsService, PublicAgentsService, PublicConversationsService, AdminConversationsService, AdminCredentialsService, AdminFileLibraryService, AdminMcpServersService, AdminWorkspacesService, WorkspaceCollaboratorsService, AdminApiKeysService, PresenceService, ModelsService, SchemaGeneratorService } from "./clients/agents-generator";
|
|
2
2
|
export * from "./clients/agents-generator";
|
|
3
3
|
export interface StreamEvent {
|
|
4
4
|
type: string;
|
|
@@ -55,10 +55,12 @@ export declare class AgentClient {
|
|
|
55
55
|
collaborators: typeof WorkspaceCollaboratorsService;
|
|
56
56
|
apiKeys: typeof AdminApiKeysService;
|
|
57
57
|
presence: typeof PresenceService;
|
|
58
|
+
schema: typeof SchemaGeneratorService;
|
|
58
59
|
};
|
|
59
60
|
public: {
|
|
60
61
|
agents: typeof PublicAgentsService;
|
|
61
62
|
conversations: typeof PublicConversationsServiceExtended;
|
|
63
|
+
models: typeof ModelsService;
|
|
62
64
|
};
|
|
63
65
|
/**
|
|
64
66
|
* @deprecated agent: Use client.admin.agents
|