@stack-spot/portal-network 1.0.0-dev.1768917458768 → 1.0.0-dev.1769117840606
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/CHANGELOG.md +13 -0
- package/dist/api/accountAssetManager.d.ts +14 -10
- package/dist/api/accountAssetManager.d.ts.map +1 -1
- package/dist/api/accountAssetManager.js +5 -2
- package/dist/api/accountAssetManager.js.map +1 -1
- package/dist/api/agent-tools.d.ts +754 -165
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +203 -43
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +3 -2
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +1 -2
- package/dist/api/ai.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +41 -0
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +34 -0
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/client/account-asset-manager.d.ts +3 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +130 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +105 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts +72 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +71 -6
- package/dist/client/ai.js.map +1 -1
- package/dist/client/workspace-ai.d.ts +15 -4
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +17 -3
- package/dist/client/workspace-ai.js.map +1 -1
- package/package.json +1 -1
- package/src/api/accountAssetManager.ts +18 -11
- package/src/api/agent-tools.ts +1182 -394
- package/src/api/ai.ts +3 -3
- package/src/api/workspace-ai.ts +83 -0
- package/src/client/agent-tools.ts +55 -2
- package/src/client/ai.ts +41 -6
- package/src/client/workspace-ai.ts +23 -7
package/src/api/agent-tools.ts
CHANGED
|
@@ -81,7 +81,7 @@ export type CustomToolkitToolResponse = {
|
|
|
81
81
|
}[] | null;
|
|
82
82
|
request_body?: {
|
|
83
83
|
[key: string]: any;
|
|
84
|
-
} | null;
|
|
84
|
+
} | any[] | null;
|
|
85
85
|
response_transformation?: string | null;
|
|
86
86
|
creator_name?: string | null;
|
|
87
87
|
};
|
|
@@ -175,15 +175,18 @@ export type AgentUsingToolsResponse = {
|
|
|
175
175
|
name: string;
|
|
176
176
|
avatar?: string | null;
|
|
177
177
|
};
|
|
178
|
-
export type
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
export type Function = {
|
|
179
|
+
name: string;
|
|
180
|
+
description: string;
|
|
181
|
+
parameters: {
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
};
|
|
184
|
+
strict?: boolean;
|
|
181
185
|
};
|
|
182
|
-
export type
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
mcp_toolkit_ids?: string[] | null;
|
|
186
|
+
export type McpToolFunction = {
|
|
187
|
+
"type"?: string | null;
|
|
188
|
+
"function"?: Function | null;
|
|
189
|
+
id?: string | null;
|
|
187
190
|
};
|
|
188
191
|
export type ToolkitMcpResponse = {
|
|
189
192
|
id?: string | null;
|
|
@@ -195,11 +198,20 @@ export type ToolkitMcpResponse = {
|
|
|
195
198
|
secrets?: string[] | null;
|
|
196
199
|
url?: string | null;
|
|
197
200
|
toolkit_type?: ToolkitType | null;
|
|
201
|
+
tools?: McpToolFunction[] | null;
|
|
202
|
+
};
|
|
203
|
+
export type MultiAgentToolkitResponse = {
|
|
204
|
+
id: string;
|
|
205
|
+
agent_version_number: number | null;
|
|
206
|
+
avatar: string | null;
|
|
207
|
+
name: string;
|
|
208
|
+
description: string;
|
|
198
209
|
};
|
|
199
210
|
export type AgentToolsResponse = {
|
|
200
211
|
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
201
212
|
custom_toolkits?: CustomToolkitResponse[];
|
|
202
213
|
mcp_toolkits?: ToolkitMcpResponse[];
|
|
214
|
+
multi_agent_toolkits?: MultiAgentToolkitResponse[];
|
|
203
215
|
};
|
|
204
216
|
export type SchemaEnum = "OPENAI";
|
|
205
217
|
export type FunctionParameter = {
|
|
@@ -218,7 +230,7 @@ export type FunctionParameter = {
|
|
|
218
230
|
/** Allow arbitrary data of specific typed */
|
|
219
231
|
additionalProperties?: boolean;
|
|
220
232
|
};
|
|
221
|
-
export type
|
|
233
|
+
export type Function2 = {
|
|
222
234
|
/** The name of the function */
|
|
223
235
|
name: string;
|
|
224
236
|
/** A description of what the function does */
|
|
@@ -234,7 +246,7 @@ export type OpenAiTool = {
|
|
|
234
246
|
/** The type of the tool; must be 'function' */
|
|
235
247
|
"type": "function";
|
|
236
248
|
/** The function associated with this tool */
|
|
237
|
-
"function":
|
|
249
|
+
"function": Function2;
|
|
238
250
|
};
|
|
239
251
|
export type ExecuteAgentToolRequest = {
|
|
240
252
|
arguments?: string | null;
|
|
@@ -244,6 +256,19 @@ export type ExecuteAgentToolRequest = {
|
|
|
244
256
|
export type AgentToolExecutionResponse = {
|
|
245
257
|
result: string;
|
|
246
258
|
};
|
|
259
|
+
export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
|
|
260
|
+
export type ListAccountAgentResponseV1 = {
|
|
261
|
+
name: string;
|
|
262
|
+
username: string;
|
|
263
|
+
created_at?: string | null;
|
|
264
|
+
visibility_level: string;
|
|
265
|
+
id: string;
|
|
266
|
+
slug: string;
|
|
267
|
+
};
|
|
268
|
+
export type PaginatedResponseListAccountAgentResponseV1 = {
|
|
269
|
+
total_pages: number;
|
|
270
|
+
items: ListAccountAgentResponseV1[];
|
|
271
|
+
};
|
|
247
272
|
export type AgentVisibilityLevelEnum = "built_in" | "recently_used";
|
|
248
273
|
export type KnowledgeSourcesConfig = {
|
|
249
274
|
knowledge_sources: string[];
|
|
@@ -252,16 +277,26 @@ export type KnowledgeSourcesConfig = {
|
|
|
252
277
|
similarity_function?: string;
|
|
253
278
|
post_processing?: boolean;
|
|
254
279
|
};
|
|
280
|
+
export type AgentVersionStatus = "draft" | "published" | "deprecated";
|
|
255
281
|
export type ListAgentResponse = {
|
|
282
|
+
/** Username of creator */
|
|
283
|
+
created_by?: string | null;
|
|
284
|
+
/** Creation timestamp */
|
|
285
|
+
created_at?: string | null;
|
|
286
|
+
/** Username of last updater */
|
|
287
|
+
updated_by?: string | null;
|
|
288
|
+
/** Last update timestamp */
|
|
289
|
+
updated_at?: string | null;
|
|
256
290
|
id: string;
|
|
257
291
|
name: string;
|
|
258
292
|
slug: string;
|
|
259
|
-
created_by: string | null;
|
|
260
|
-
created_at: string | null;
|
|
261
293
|
visibility_level: string;
|
|
262
|
-
avatar
|
|
263
|
-
suggested_prompts
|
|
294
|
+
avatar?: string | null;
|
|
295
|
+
suggested_prompts?: string[] | null;
|
|
264
296
|
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
297
|
+
version_number: number;
|
|
298
|
+
status: AgentVersionStatus;
|
|
299
|
+
is_recommended: boolean;
|
|
265
300
|
has_multiagent_tool?: boolean;
|
|
266
301
|
"type"?: string;
|
|
267
302
|
system_prompt?: string;
|
|
@@ -277,8 +312,12 @@ export type KnowledgeSourcesConfigRequest = {
|
|
|
277
312
|
knowledge_sources?: string[] | null;
|
|
278
313
|
sealed?: boolean | null;
|
|
279
314
|
};
|
|
315
|
+
export type AssignCustomToolsAgentRequest = {
|
|
316
|
+
toolkit_id: string;
|
|
317
|
+
tools_ids: string[];
|
|
318
|
+
};
|
|
280
319
|
export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
|
|
281
|
-
export type AgentMemory = "vector" | "buffer";
|
|
320
|
+
export type AgentMemory = "vector" | "buffer" | "summary";
|
|
282
321
|
export type PlannerType = "simple" | "tool_oriented";
|
|
283
322
|
export type NewAgentRequest = {
|
|
284
323
|
/** LLM model name */
|
|
@@ -304,8 +343,10 @@ export type NewAgentRequest = {
|
|
|
304
343
|
/** Custom tools to assign to the agent */
|
|
305
344
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
306
345
|
mcp_toolkit_ids?: string[] | null;
|
|
346
|
+
/** Multi-agents assignment to the agent */
|
|
307
347
|
sub_agents_ids?: string[] | null;
|
|
308
348
|
detail_mode?: boolean;
|
|
349
|
+
/** JSON schema for structured output */
|
|
309
350
|
structured_output?: string | null;
|
|
310
351
|
llm_settings?: {
|
|
311
352
|
[key: string]: any;
|
|
@@ -320,13 +361,21 @@ export type NewAgentRequest = {
|
|
|
320
361
|
planner_type?: PlannerType | null;
|
|
321
362
|
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
322
363
|
max_llm_interactions?: number | null;
|
|
364
|
+
/** LLM planner model name */
|
|
365
|
+
planner_model_name?: string | null;
|
|
366
|
+
/** LLM planner model id */
|
|
367
|
+
planner_model_id?: string | null;
|
|
323
368
|
};
|
|
324
369
|
export type SearchAgentsRequest = {
|
|
325
370
|
/** Agent ids to filter for */
|
|
326
371
|
ids: string[];
|
|
327
372
|
};
|
|
373
|
+
export type AssignMultiAgentVersionRequest = {
|
|
374
|
+
agent_core_id: string;
|
|
375
|
+
version_number?: number | null;
|
|
376
|
+
};
|
|
328
377
|
export type WorkspaceForkRequest = {
|
|
329
|
-
|
|
378
|
+
agents: AssignMultiAgentVersionRequest[];
|
|
330
379
|
member_id: string;
|
|
331
380
|
};
|
|
332
381
|
export type AgentItemFork = {
|
|
@@ -366,7 +415,7 @@ export type ListMultiAgentsResponse = {
|
|
|
366
415
|
visibility_level: VisibilityLevelEnum;
|
|
367
416
|
has_multiagent_tool: boolean;
|
|
368
417
|
};
|
|
369
|
-
export type
|
|
418
|
+
export type KnowledgeSourceDetailsResponse = {
|
|
370
419
|
id: string;
|
|
371
420
|
slug: string;
|
|
372
421
|
name: string;
|
|
@@ -374,139 +423,110 @@ export type KnowledgeSourceDetails = {
|
|
|
374
423
|
"type": string;
|
|
375
424
|
creator?: string | null;
|
|
376
425
|
"default": boolean;
|
|
377
|
-
visibility_level:
|
|
426
|
+
visibility_level: string;
|
|
378
427
|
model_name: string;
|
|
379
428
|
username?: string | null;
|
|
380
429
|
};
|
|
381
|
-
export type
|
|
382
|
-
|
|
383
|
-
max_number_of_kos: number;
|
|
384
|
-
relevancy_threshold: number;
|
|
385
|
-
post_processing: boolean;
|
|
386
|
-
knowledge_sources: string[];
|
|
387
|
-
knowledge_sources_details: KnowledgeSourceDetails[];
|
|
388
|
-
sealed: boolean;
|
|
430
|
+
export type KnowledgeSourcesConfigResponse = {
|
|
431
|
+
/** Username of creator */
|
|
389
432
|
created_by?: string | null;
|
|
433
|
+
/** Creation timestamp */
|
|
390
434
|
created_at?: string | null;
|
|
435
|
+
/** Username of last updater */
|
|
391
436
|
updated_by?: string | null;
|
|
437
|
+
/** Last update timestamp */
|
|
392
438
|
updated_at?: string | null;
|
|
439
|
+
knowledge_sources: string[];
|
|
440
|
+
max_number_of_kos: number;
|
|
441
|
+
relevancy_threshold: number;
|
|
442
|
+
similarity_function: string;
|
|
443
|
+
post_processing: boolean;
|
|
444
|
+
sealed: boolean;
|
|
445
|
+
knowledge_sources_details?: KnowledgeSourceDetailsResponse[] | null;
|
|
393
446
|
};
|
|
394
|
-
export type
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
toolkit_id: string;
|
|
399
|
-
};
|
|
400
|
-
export type BuiltinToolkitDto = {
|
|
401
|
-
id: string;
|
|
402
|
-
name: string;
|
|
403
|
-
description: string;
|
|
404
|
-
image_url: string;
|
|
405
|
-
tools: BuiltinToolDto[];
|
|
406
|
-
};
|
|
407
|
-
export type CustomToolkitToolDto = {
|
|
408
|
-
id: string;
|
|
409
|
-
name: string;
|
|
410
|
-
description: string;
|
|
411
|
-
method: string;
|
|
412
|
-
url: string;
|
|
413
|
-
parameters?: {
|
|
414
|
-
[key: string]: any;
|
|
415
|
-
}[] | null;
|
|
416
|
-
request_body?: {
|
|
417
|
-
[key: string]: any;
|
|
418
|
-
} | null;
|
|
419
|
-
response_transformation?: string | null;
|
|
420
|
-
creator_name?: string | null;
|
|
421
|
-
};
|
|
422
|
-
export type CustomToolkitDto = {
|
|
423
|
-
id: string;
|
|
424
|
-
name: string;
|
|
425
|
-
description: string | null;
|
|
426
|
-
avatar: string | null;
|
|
427
|
-
tools: CustomToolkitToolDto[];
|
|
428
|
-
secrets: string[] | null;
|
|
429
|
-
visibility_level: VisibilityLevelEnum;
|
|
430
|
-
creator_name: string;
|
|
431
|
-
is_usable_by_others: boolean;
|
|
432
|
-
url: string | null;
|
|
433
|
-
toolkit_type: ToolkitType | null;
|
|
434
|
-
};
|
|
435
|
-
export type SecretScope = "ACCOUNT" | "SCOPED" | "SPOT" | "USER" | "UNKNOWN";
|
|
436
|
-
export type SecretDto = {
|
|
437
|
-
id: string;
|
|
438
|
-
scope?: SecretScope | null;
|
|
439
|
-
};
|
|
440
|
-
export type Function2 = {
|
|
441
|
-
name: string;
|
|
442
|
-
description: string;
|
|
443
|
-
parameters: {
|
|
444
|
-
[key: string]: any;
|
|
445
|
-
};
|
|
446
|
-
strict?: boolean;
|
|
447
|
-
};
|
|
448
|
-
export type ToolkitMcpdto = {
|
|
449
|
-
secrets: SecretDto[] | null;
|
|
450
|
-
name: string;
|
|
451
|
-
description?: string | null;
|
|
452
|
-
avatar?: string | null;
|
|
453
|
-
visibility_level?: VisibilityLevelEnum;
|
|
454
|
-
id?: string | null;
|
|
455
|
-
url?: string | null;
|
|
456
|
-
tools?: Function2[] | null;
|
|
457
|
-
/** Toolkit type */
|
|
458
|
-
toolkit_type?: ToolkitType | null;
|
|
447
|
+
export type LlmSettingsResponse = {
|
|
448
|
+
property_key: string;
|
|
449
|
+
property_value: string;
|
|
450
|
+
property_type: string;
|
|
459
451
|
};
|
|
460
|
-
export type
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
452
|
+
export type AgentLlmModelResponse = {
|
|
453
|
+
model_id: string;
|
|
454
|
+
model_name: string;
|
|
455
|
+
is_default: boolean;
|
|
464
456
|
};
|
|
465
|
-
export type
|
|
466
|
-
|
|
467
|
-
property_value?: string | null;
|
|
468
|
-
property_type?: string | null;
|
|
469
|
-
agent_id: string;
|
|
457
|
+
export type FindByIdAgentResponse = {
|
|
458
|
+
/** Username of creator */
|
|
470
459
|
created_by?: string | null;
|
|
460
|
+
/** Creation timestamp */
|
|
471
461
|
created_at?: string | null;
|
|
462
|
+
/** Username of last updater */
|
|
472
463
|
updated_by?: string | null;
|
|
464
|
+
/** Last update timestamp */
|
|
473
465
|
updated_at?: string | null;
|
|
474
|
-
|
|
475
|
-
export type AgentLlmModelDto = {
|
|
476
|
-
model_id: string;
|
|
477
|
-
model_name: string;
|
|
478
|
-
is_default?: boolean;
|
|
479
|
-
};
|
|
480
|
-
export type AgentModel = {
|
|
466
|
+
/** Agent core ID */
|
|
481
467
|
id: string;
|
|
468
|
+
/** Agent name */
|
|
482
469
|
name: string;
|
|
470
|
+
/** Agent unique slug */
|
|
483
471
|
slug: string;
|
|
472
|
+
/** Agent description */
|
|
484
473
|
description?: string | null;
|
|
485
|
-
|
|
486
|
-
visibility_level: string;
|
|
474
|
+
/** Agent avatar image URL */
|
|
487
475
|
avatar?: string | null;
|
|
476
|
+
/** Agent visibility level */
|
|
477
|
+
visibility_level: string;
|
|
478
|
+
/** Agent type */
|
|
488
479
|
"type": string;
|
|
489
|
-
|
|
480
|
+
/** Whether agent is use-only (hides implementation) */
|
|
490
481
|
use_only: boolean;
|
|
482
|
+
/** Whether agent is internal */
|
|
483
|
+
is_internal: boolean;
|
|
484
|
+
/** Whether detail mode is enabled */
|
|
491
485
|
detail_mode: boolean;
|
|
486
|
+
/** Agent execution mode */
|
|
492
487
|
mode: AgentMode;
|
|
488
|
+
/** Agent memory type */
|
|
489
|
+
memory: AgentMemory;
|
|
490
|
+
/** Version status */
|
|
491
|
+
status: AgentVersionStatus;
|
|
492
|
+
/** Version number */
|
|
493
|
+
version_number: number;
|
|
494
|
+
/** Whether this is the recommended version */
|
|
495
|
+
is_recommended: boolean;
|
|
496
|
+
/** Whether this is the latest version */
|
|
497
|
+
is_latest: boolean;
|
|
498
|
+
/** System prompt for the agent */
|
|
499
|
+
system_prompt?: string | null;
|
|
500
|
+
/** Default LLM model ID */
|
|
501
|
+
model_id?: string | null;
|
|
502
|
+
/** Default LLM model name */
|
|
503
|
+
model_name?: string | null;
|
|
504
|
+
/** Original agent ID if forked */
|
|
505
|
+
origin_fork_id?: string | null;
|
|
506
|
+
/** Suggested conversation starters */
|
|
507
|
+
conversation_starter?: string[] | null;
|
|
508
|
+
/** JSON schema for structured output */
|
|
493
509
|
structured_output?: {
|
|
494
510
|
[key: string]: any;
|
|
495
511
|
} | null;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
toolkits?: AgentToolsDto | null;
|
|
500
|
-
settings?: LlmSettingsModel[];
|
|
501
|
-
is_sub_agent?: boolean | null;
|
|
502
|
-
created_by?: string | null;
|
|
503
|
-
created_at?: string | null;
|
|
504
|
-
updated_by?: string | null;
|
|
505
|
-
updated_at?: string | null;
|
|
506
|
-
available_llm_models?: AgentLlmModelDto[];
|
|
507
|
-
memory?: AgentMemory;
|
|
512
|
+
/** Base version ID for version history */
|
|
513
|
+
base_version_id?: string | null;
|
|
514
|
+
/** Agent planner type */
|
|
508
515
|
planner_type?: PlannerType | null;
|
|
516
|
+
/** Maximum number of LLM interactions */
|
|
509
517
|
max_llm_interactions?: number | null;
|
|
518
|
+
/** Default LLM planner model ID */
|
|
519
|
+
planner_model_id?: string | null;
|
|
520
|
+
/** Default LLM planner model name */
|
|
521
|
+
planner_model_name?: string | null;
|
|
522
|
+
/** Knowledge sources configuration with details */
|
|
523
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse | null;
|
|
524
|
+
/** Agent toolkits (builtin and custom) */
|
|
525
|
+
toolkits?: AgentToolsResponse;
|
|
526
|
+
/** LLM settings */
|
|
527
|
+
settings?: LlmSettingsResponse[];
|
|
528
|
+
/** Available LLM models for this agent */
|
|
529
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
510
530
|
};
|
|
511
531
|
export type UpdateAgentRequest = {
|
|
512
532
|
use_only?: boolean | null;
|
|
@@ -524,17 +544,21 @@ export type UpdateAgentRequest = {
|
|
|
524
544
|
avatar?: string | null;
|
|
525
545
|
/** Agent suggested prompt */
|
|
526
546
|
suggested_prompts?: string[];
|
|
547
|
+
/** agent status */
|
|
548
|
+
status?: AgentVersionStatus | null;
|
|
527
549
|
/** System prompt */
|
|
528
550
|
system_prompt?: string | null;
|
|
529
551
|
/** Agent type */
|
|
530
552
|
"type"?: AgentType | null;
|
|
531
553
|
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
532
554
|
builtin_tools_ids?: string[];
|
|
555
|
+
/** Multi-agents assignment to the agent */
|
|
533
556
|
sub_agents_ids?: string[];
|
|
534
557
|
/** Custom tools to assign to the agent */
|
|
535
558
|
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
536
559
|
mcp_toolkit_ids?: string[] | null;
|
|
537
560
|
detail_mode?: boolean | null;
|
|
561
|
+
/** JSON schema for structured output */
|
|
538
562
|
structured_output?: string | null;
|
|
539
563
|
llm_settings?: {
|
|
540
564
|
[key: string]: any;
|
|
@@ -549,6 +573,10 @@ export type UpdateAgentRequest = {
|
|
|
549
573
|
planner_type?: PlannerType;
|
|
550
574
|
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
551
575
|
max_llm_interactions?: number | null;
|
|
576
|
+
/** LLM planner model name */
|
|
577
|
+
planner_model_name?: string | null;
|
|
578
|
+
/** LLM planner model id */
|
|
579
|
+
planner_model_id?: string | null;
|
|
552
580
|
};
|
|
553
581
|
export type ForkAgentRequest = {
|
|
554
582
|
/** Agent slug to fork */
|
|
@@ -558,86 +586,532 @@ export type ForkAgentRequest = {
|
|
|
558
586
|
export type PublishAgentRequest = {
|
|
559
587
|
use_only?: boolean;
|
|
560
588
|
is_public?: boolean;
|
|
589
|
+
version_number?: number | null;
|
|
561
590
|
};
|
|
562
|
-
export type
|
|
591
|
+
export type CreateVersionRequest = {
|
|
592
|
+
/** The version number to use as base for the new version. If not provided, uses latest version */
|
|
593
|
+
base_version_number?: number | null;
|
|
594
|
+
};
|
|
595
|
+
export type AgentVersionResponse = {
|
|
596
|
+
/** Username of creator */
|
|
597
|
+
created_by?: string | null;
|
|
598
|
+
/** Creation timestamp */
|
|
599
|
+
created_at?: string | null;
|
|
600
|
+
/** Username of last updater */
|
|
601
|
+
updated_by?: string | null;
|
|
602
|
+
/** Last update timestamp */
|
|
603
|
+
updated_at?: string | null;
|
|
604
|
+
/** Agent version unique identifier */
|
|
605
|
+
id: string;
|
|
606
|
+
/** Reference to parent agent core */
|
|
607
|
+
agent_core_id: string;
|
|
608
|
+
/** Whether detail mode is enabled for responses */
|
|
609
|
+
detail_mode: boolean;
|
|
610
|
+
/** Whether version is internal-only */
|
|
611
|
+
is_internal: boolean;
|
|
612
|
+
/** Agent execution mode (autonomous, orchestrator, etc.) */
|
|
613
|
+
mode: AgentMode;
|
|
614
|
+
/** Memory type used by the agent */
|
|
615
|
+
memory: string;
|
|
616
|
+
/** Version status (draft, published, archived) */
|
|
617
|
+
status: AgentVersionStatus;
|
|
618
|
+
/** Sequential version number */
|
|
619
|
+
version_number: number;
|
|
620
|
+
/** Whether this is the recommended version for use */
|
|
621
|
+
is_recommended: boolean;
|
|
622
|
+
/** Whether this is the most recent version */
|
|
623
|
+
is_latest: boolean;
|
|
624
|
+
/** Base version ID used for creating this version */
|
|
625
|
+
base_version_id?: string | null;
|
|
626
|
+
/** Original agent version ID if this is a fork */
|
|
627
|
+
origin_fork_id?: string | null;
|
|
628
|
+
/** System prompt for the agent version */
|
|
629
|
+
system_prompt?: string | null;
|
|
630
|
+
/** LLM model ID used by this version */
|
|
631
|
+
model_id?: string | null;
|
|
632
|
+
/** LLM model name used by this version */
|
|
633
|
+
model_name?: string | null;
|
|
634
|
+
/** Suggested conversation starters */
|
|
635
|
+
conversation_starter?: string[] | null;
|
|
636
|
+
/** JSON schema for structured output */
|
|
637
|
+
structured_output?: {
|
|
638
|
+
[key: string]: any;
|
|
639
|
+
} | null;
|
|
640
|
+
/** Agent planner type */
|
|
641
|
+
planner_type?: PlannerType | null;
|
|
642
|
+
max_llm_interactions?: number | null;
|
|
643
|
+
/** Default LLM planner model ID */
|
|
644
|
+
planner_model_id?: string | null;
|
|
645
|
+
/** Default LLM planner model name */
|
|
646
|
+
planner_model_name?: string | null;
|
|
647
|
+
/** Knowledge sources configuration with details */
|
|
648
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse | null;
|
|
649
|
+
/** List of tools (builtin) assigned to this version */
|
|
650
|
+
toolkits?: AgentToolsResponse;
|
|
651
|
+
/** LLM-specific settings for this version */
|
|
652
|
+
settings?: LlmSettingsResponse[];
|
|
653
|
+
/** Available LLM models for this version */
|
|
654
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
655
|
+
};
|
|
656
|
+
export type CreateVersionResponse = {
|
|
657
|
+
/** Username of creator */
|
|
658
|
+
created_by?: string | null;
|
|
659
|
+
/** Creation timestamp */
|
|
660
|
+
created_at?: string | null;
|
|
661
|
+
/** Username of last updater */
|
|
662
|
+
updated_by?: string | null;
|
|
663
|
+
/** Last update timestamp */
|
|
664
|
+
updated_at?: string | null;
|
|
665
|
+
/** Agent core unique identifier */
|
|
563
666
|
id: string;
|
|
667
|
+
/** Agent name */
|
|
564
668
|
name: string;
|
|
669
|
+
/** Agent unique slug */
|
|
565
670
|
slug: string;
|
|
566
|
-
|
|
567
|
-
|
|
671
|
+
/** Agent description */
|
|
672
|
+
description?: string | null;
|
|
673
|
+
/** Agent avatar image URL */
|
|
674
|
+
avatar?: string | null;
|
|
675
|
+
/** Agent visibility level (personal, shared, account) */
|
|
568
676
|
visibility_level: string;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
572
|
-
"type"?: string;
|
|
573
|
-
system_prompt?: string;
|
|
574
|
-
creator_name?: string;
|
|
677
|
+
/** The newly created agent version details */
|
|
678
|
+
version: AgentVersionResponse;
|
|
575
679
|
};
|
|
576
|
-
export type
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
slug?: string | null;
|
|
582
|
-
/** Paginated param to configure page size */
|
|
583
|
-
size?: number;
|
|
584
|
-
/** Paginated param to configure which page is being requested */
|
|
585
|
-
page?: number;
|
|
586
|
-
/** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
|
|
587
|
-
visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
|
|
588
|
-
order?: OrderEnum | null;
|
|
680
|
+
export type ListAgentVersionResponse = {
|
|
681
|
+
id: string;
|
|
682
|
+
version_number: number;
|
|
683
|
+
status: AgentVersionStatus;
|
|
684
|
+
is_recommended: boolean;
|
|
589
685
|
};
|
|
590
|
-
export type
|
|
686
|
+
export type AgentCoreWithSingleVersionResponse = {
|
|
687
|
+
/** Username of creator */
|
|
688
|
+
created_by?: string | null;
|
|
689
|
+
/** Creation timestamp */
|
|
690
|
+
created_at?: string | null;
|
|
691
|
+
/** Username of last updater */
|
|
692
|
+
updated_by?: string | null;
|
|
693
|
+
/** Last update timestamp */
|
|
694
|
+
updated_at?: string | null;
|
|
695
|
+
/** Agent core unique identifier (ULID format) */
|
|
696
|
+
id: string;
|
|
697
|
+
/** Agent display name */
|
|
698
|
+
name: string;
|
|
699
|
+
/** Agent unique slug for URL-friendly identification */
|
|
700
|
+
slug: string;
|
|
701
|
+
/** Agent core type */
|
|
702
|
+
"type": string;
|
|
703
|
+
/** Whether agent is use-only (hides implementation) */
|
|
704
|
+
use_only: boolean;
|
|
705
|
+
/** Detailed description of the agent's purpose and capabilities */
|
|
706
|
+
description?: string | null;
|
|
707
|
+
/** URL or path to agent's avatar image */
|
|
708
|
+
avatar?: string | null;
|
|
709
|
+
/** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
|
|
710
|
+
visibility_level: string;
|
|
711
|
+
/** Origin ID of forking agent */
|
|
712
|
+
origin_fork_id?: string | null;
|
|
713
|
+
/** Specific or recommend version associated with this agent core */
|
|
714
|
+
version: AgentVersionResponse;
|
|
715
|
+
};
|
|
716
|
+
export type AgentCoreResponse = {
|
|
717
|
+
/** Username of creator */
|
|
718
|
+
created_by?: string | null;
|
|
719
|
+
/** Creation timestamp */
|
|
720
|
+
created_at?: string | null;
|
|
721
|
+
/** Username of last updater */
|
|
722
|
+
updated_by?: string | null;
|
|
723
|
+
/** Last update timestamp */
|
|
724
|
+
updated_at?: string | null;
|
|
725
|
+
/** Agent core unique identifier (ULID format) */
|
|
726
|
+
id: string;
|
|
727
|
+
/** Agent display name */
|
|
728
|
+
name: string;
|
|
729
|
+
/** Agent unique slug for URL-friendly identification */
|
|
730
|
+
slug: string;
|
|
731
|
+
/** Agent core type */
|
|
732
|
+
"type": string;
|
|
733
|
+
/** Whether agent is use-only (hides implementation) */
|
|
734
|
+
use_only: boolean;
|
|
735
|
+
/** Detailed description of the agent's purpose and capabilities */
|
|
736
|
+
description?: string | null;
|
|
737
|
+
/** URL or path to agent's avatar image */
|
|
738
|
+
avatar?: string | null;
|
|
739
|
+
/** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
|
|
740
|
+
visibility_level: string;
|
|
741
|
+
/** Specific or recommend version associated with this agent core */
|
|
742
|
+
versions: AgentVersionResponse[];
|
|
743
|
+
};
|
|
744
|
+
export type KnowledgeSourceDetailsResponse2 = {
|
|
745
|
+
id: string;
|
|
746
|
+
slug: string;
|
|
747
|
+
name: string;
|
|
748
|
+
description: string;
|
|
749
|
+
"type": string;
|
|
750
|
+
creator?: string | null;
|
|
751
|
+
"default": boolean;
|
|
752
|
+
visibility_level: VisibilityLevelEnum;
|
|
753
|
+
model_name: string;
|
|
754
|
+
username?: string | null;
|
|
755
|
+
};
|
|
756
|
+
export type KnowledgeSourcesConfigResponse2 = {
|
|
591
757
|
knowledge_sources: string[];
|
|
592
758
|
max_number_of_kos?: number;
|
|
593
759
|
relevancy_threshold?: number;
|
|
594
|
-
similarity_function?:
|
|
760
|
+
similarity_function?: SimilarityFunctionEnum;
|
|
595
761
|
post_processing?: boolean;
|
|
762
|
+
knowledge_sources_details?: KnowledgeSourceDetailsResponse2[];
|
|
763
|
+
sealed: boolean;
|
|
596
764
|
};
|
|
597
|
-
export type
|
|
765
|
+
export type ListAgentResponseV2 = {
|
|
766
|
+
/** Username of creator */
|
|
767
|
+
created_by?: string | null;
|
|
768
|
+
/** Creation timestamp */
|
|
769
|
+
created_at?: string | null;
|
|
770
|
+
/** Username of last updater */
|
|
771
|
+
updated_by?: string | null;
|
|
772
|
+
/** Last update timestamp */
|
|
773
|
+
updated_at?: string | null;
|
|
598
774
|
id: string;
|
|
599
775
|
name: string;
|
|
600
776
|
slug: string;
|
|
601
|
-
created_by: string | null;
|
|
602
|
-
created_at: string | null;
|
|
603
777
|
visibility_level: string;
|
|
604
|
-
avatar
|
|
605
|
-
|
|
606
|
-
knowledge_sources_config:
|
|
607
|
-
has_multiagent_tool?: boolean;
|
|
778
|
+
avatar?: string | null;
|
|
779
|
+
conversation_starter?: string[] | null;
|
|
780
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponse2;
|
|
608
781
|
"type"?: string;
|
|
609
782
|
system_prompt?: string;
|
|
610
783
|
creator_name?: string;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
export type PaginatedResponseAgentResponseV3 = {
|
|
615
|
-
total_pages: number;
|
|
616
|
-
items: AgentResponseV3[];
|
|
617
|
-
};
|
|
618
|
-
export type InternalListToolkitsRequest = {
|
|
619
|
-
/** List of toolkit IDs to retrieve */
|
|
620
|
-
toolkit_ids: string[];
|
|
621
|
-
};
|
|
622
|
-
export type InternalDeleteToolkitsRequest = {
|
|
623
|
-
/** List of toolkit IDs to delete */
|
|
624
|
-
toolkit_ids: string[];
|
|
625
|
-
};
|
|
626
|
-
export type InternalToolkitForkRequest = {
|
|
627
|
-
/** List of toolkit IDs to fork */
|
|
628
|
-
toolkit_ids: string[];
|
|
629
|
-
};
|
|
630
|
-
export type ToolkitForkResponse = {
|
|
631
|
-
/** List of successfully forked toolkits */
|
|
632
|
-
forked_toolkits: CustomToolkitSimpleResponse[];
|
|
633
|
-
/** List of toolkit IDs that were already account-level and not forked */
|
|
634
|
-
toolkit_ids_account: string[];
|
|
635
|
-
/** List of toolkit IDs that failed to fork */
|
|
636
|
-
error_ids: string[];
|
|
784
|
+
version_number: number;
|
|
785
|
+
status: AgentVersionStatus;
|
|
786
|
+
is_recommended: boolean;
|
|
637
787
|
};
|
|
638
|
-
export type
|
|
639
|
-
|
|
640
|
-
|
|
788
|
+
export type NewAgentRequestV2 = {
|
|
789
|
+
/** LLM model name */
|
|
790
|
+
model_name?: string | null;
|
|
791
|
+
/** LLM model id */
|
|
792
|
+
model_id?: string | null;
|
|
793
|
+
/** Agent name */
|
|
794
|
+
name: string;
|
|
795
|
+
/** Agent unique slug */
|
|
796
|
+
slug: string;
|
|
797
|
+
/** Agent description */
|
|
798
|
+
description?: string | null;
|
|
799
|
+
/** Agent avatar image */
|
|
800
|
+
avatar?: string | null;
|
|
801
|
+
/** Agent suggested prompt */
|
|
802
|
+
suggested_prompts?: string[];
|
|
803
|
+
/** System prompt */
|
|
804
|
+
system_prompt?: string | null;
|
|
805
|
+
/** Agent type */
|
|
806
|
+
"type": AgentType;
|
|
807
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
808
|
+
builtin_tools_ids?: string[];
|
|
809
|
+
/** Custom tools to assign to the agent */
|
|
810
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
811
|
+
/** Multi-agents assignment to the agent */
|
|
812
|
+
sub_agents_ids?: AssignMultiAgentVersionRequest[] | null;
|
|
813
|
+
mcp_toolkit_ids?: string[] | null;
|
|
814
|
+
detail_mode?: boolean;
|
|
815
|
+
/** JSON schema for structured output */
|
|
816
|
+
structured_output?: string | null;
|
|
817
|
+
llm_settings?: {
|
|
818
|
+
[key: string]: any;
|
|
819
|
+
} | null;
|
|
820
|
+
/** Agent mode */
|
|
821
|
+
mode?: AgentMode;
|
|
822
|
+
/** Agent memory */
|
|
823
|
+
memory?: AgentMemory;
|
|
824
|
+
/** Available models for this particular agent */
|
|
825
|
+
available_models_ids?: string[];
|
|
826
|
+
/** Agent planner type */
|
|
827
|
+
planner_type?: PlannerType | null;
|
|
828
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
829
|
+
max_llm_interactions?: number | null;
|
|
830
|
+
/** LLM planner model name */
|
|
831
|
+
planner_model_name?: string | null;
|
|
832
|
+
/** LLM planner model id */
|
|
833
|
+
planner_model_id?: string | null;
|
|
834
|
+
};
|
|
835
|
+
export type SearchAgentVersionRequest = {
|
|
836
|
+
agent_core_id: string;
|
|
837
|
+
version_number?: number | null;
|
|
838
|
+
};
|
|
839
|
+
export type SearchAgentsRequestV2 = {
|
|
840
|
+
agents: SearchAgentVersionRequest[];
|
|
841
|
+
};
|
|
842
|
+
export type UpdateAgentRequestV2 = {
|
|
843
|
+
use_only?: boolean | null;
|
|
844
|
+
/** LLM model name */
|
|
845
|
+
model_name?: string | null;
|
|
846
|
+
/** LLM model id */
|
|
847
|
+
model_id?: string | null;
|
|
848
|
+
/** Agent name */
|
|
849
|
+
name?: string | null;
|
|
850
|
+
/** Agent unique slug */
|
|
851
|
+
slug?: string | null;
|
|
852
|
+
/** agent status */
|
|
853
|
+
status?: AgentVersionStatus | null;
|
|
854
|
+
/** Agent description */
|
|
855
|
+
description?: string | null;
|
|
856
|
+
/** Agent avatar image */
|
|
857
|
+
avatar?: string | null;
|
|
858
|
+
/** Agent suggested prompt */
|
|
859
|
+
suggested_prompts?: string[];
|
|
860
|
+
/** System prompt */
|
|
861
|
+
system_prompt?: string | null;
|
|
862
|
+
/** Agent type */
|
|
863
|
+
"type"?: AgentType | null;
|
|
864
|
+
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
865
|
+
builtin_tools_ids?: string[];
|
|
866
|
+
/** Multi-agents assignment to the agent */
|
|
867
|
+
sub_agents_ids?: AssignMultiAgentVersionRequest[];
|
|
868
|
+
/** Custom tools to assign to the agent */
|
|
869
|
+
custom_tools?: AssignCustomToolsAgentRequest[] | null;
|
|
870
|
+
mcp_toolkit_ids?: string[] | null;
|
|
871
|
+
detail_mode?: boolean | null;
|
|
872
|
+
/** JSON schema for structured output */
|
|
873
|
+
structured_output?: string | null;
|
|
874
|
+
llm_settings?: {
|
|
875
|
+
[key: string]: any;
|
|
876
|
+
} | null;
|
|
877
|
+
/** Agent mode */
|
|
878
|
+
mode?: AgentMode | null;
|
|
879
|
+
/** Available models for this particular agent */
|
|
880
|
+
available_models_ids?: string[];
|
|
881
|
+
/** Agent memory */
|
|
882
|
+
memory?: AgentMemory;
|
|
883
|
+
/** Agent planner type */
|
|
884
|
+
planner_type?: PlannerType;
|
|
885
|
+
/** Maximum number of LLM interactions allowed for the agent when using simple planner */
|
|
886
|
+
max_llm_interactions?: number | null;
|
|
887
|
+
/** LLM planner model name */
|
|
888
|
+
planner_model_name?: string | null;
|
|
889
|
+
/** LLM planner model id */
|
|
890
|
+
planner_model_id?: string | null;
|
|
891
|
+
};
|
|
892
|
+
export type CustomToolkitToolResponse2 = {
|
|
893
|
+
id: string;
|
|
894
|
+
name: string;
|
|
895
|
+
description: string;
|
|
896
|
+
method: string;
|
|
897
|
+
url: string;
|
|
898
|
+
parameters?: {
|
|
899
|
+
[key: string]: any;
|
|
900
|
+
}[] | null;
|
|
901
|
+
request_body?: {
|
|
902
|
+
[key: string]: any;
|
|
903
|
+
} | null;
|
|
904
|
+
response_transformation?: string | null;
|
|
905
|
+
creator_name?: string | null;
|
|
906
|
+
};
|
|
907
|
+
export type CustomToolkitResponse2 = {
|
|
908
|
+
id: string;
|
|
909
|
+
name: string;
|
|
910
|
+
description?: string | null;
|
|
911
|
+
avatar?: string | null;
|
|
912
|
+
visibility_level: string;
|
|
913
|
+
creator_name: string | null;
|
|
914
|
+
toolkit_type?: ToolkitType | null;
|
|
915
|
+
tools: CustomToolkitToolResponse2[];
|
|
916
|
+
secret_id?: string | null;
|
|
917
|
+
secrets?: string[] | null;
|
|
918
|
+
is_usable_by_others: boolean;
|
|
919
|
+
url?: string | null;
|
|
920
|
+
};
|
|
921
|
+
export type AgentToolsResponse2 = {
|
|
922
|
+
builtin_toolkits?: BuiltinToolkitResponse[];
|
|
923
|
+
custom_toolkits?: CustomToolkitResponse2[];
|
|
924
|
+
mcp_toolkits?: ToolkitMcpResponse[];
|
|
925
|
+
multi_agent_toolkits?: MultiAgentToolkitResponse[];
|
|
926
|
+
};
|
|
927
|
+
export type AgentVersionResponse2 = {
|
|
928
|
+
/** Username of creator */
|
|
929
|
+
created_by?: string | null;
|
|
930
|
+
/** Creation timestamp */
|
|
931
|
+
created_at?: string | null;
|
|
932
|
+
/** Username of last updater */
|
|
933
|
+
updated_by?: string | null;
|
|
934
|
+
/** Last update timestamp */
|
|
935
|
+
updated_at?: string | null;
|
|
936
|
+
/** System prompt for the agent version */
|
|
937
|
+
system_prompt: string;
|
|
938
|
+
/** Whether detail mode is enabled for responses */
|
|
939
|
+
detail_mode: boolean;
|
|
940
|
+
/** Whether version is internal-only */
|
|
941
|
+
is_internal: boolean;
|
|
942
|
+
/** Agent execution mode (autonomous, orchestrator, etc.) */
|
|
943
|
+
mode: AgentMode;
|
|
944
|
+
/** Memory type used by the agent */
|
|
945
|
+
memory: string;
|
|
946
|
+
/** Version status (draft, published, archived) */
|
|
947
|
+
status: AgentVersionStatus;
|
|
948
|
+
/** Sequential version number */
|
|
949
|
+
version_number: number;
|
|
950
|
+
/** Whether this is the recommended version for use */
|
|
951
|
+
is_recommended: boolean;
|
|
952
|
+
/** Whether this is the most recent version */
|
|
953
|
+
is_latest: boolean;
|
|
954
|
+
/** Base version ID used for creating this version */
|
|
955
|
+
base_version_id?: string | null;
|
|
956
|
+
/** Original agent version ID if this is a fork */
|
|
957
|
+
origin_fork_id?: string | null;
|
|
958
|
+
/** LLM model ID used by this version */
|
|
959
|
+
model_id?: string | null;
|
|
960
|
+
/** LLM model name used by this version */
|
|
961
|
+
model_name?: string | null;
|
|
962
|
+
/** Suggested conversation starters */
|
|
963
|
+
conversation_starter?: string[] | null;
|
|
964
|
+
/** JSON schema for structured output */
|
|
965
|
+
structured_output?: {
|
|
966
|
+
[key: string]: any;
|
|
967
|
+
} | null;
|
|
968
|
+
/** Agent planner type */
|
|
969
|
+
planner_type?: PlannerType | null;
|
|
970
|
+
/** Maximum number of LLM interactions */
|
|
971
|
+
max_llm_interactions?: number | null;
|
|
972
|
+
/** Default LLM planner model ID */
|
|
973
|
+
planner_model_id?: string | null;
|
|
974
|
+
/** Default LLM planner model name */
|
|
975
|
+
planner_model_name?: string | null;
|
|
976
|
+
/** Knowledge sources configuration for RAG capabilities */
|
|
977
|
+
knowledge_sources_config?: KnowledgeSourcesConfigResponse2 | null;
|
|
978
|
+
/** List of tools (builtin) assigned to this version */
|
|
979
|
+
toolkits?: AgentToolsResponse2;
|
|
980
|
+
/** LLM-specific settings for this version */
|
|
981
|
+
settings?: LlmSettingsResponse[];
|
|
982
|
+
/** Available LLM models for this version */
|
|
983
|
+
available_llm_models?: AgentLlmModelResponse[];
|
|
984
|
+
};
|
|
985
|
+
export type AgentCoreWithSingleVersionResponse2 = {
|
|
986
|
+
/** Username of creator */
|
|
987
|
+
created_by?: string | null;
|
|
988
|
+
/** Creation timestamp */
|
|
989
|
+
created_at?: string | null;
|
|
990
|
+
/** Username of last updater */
|
|
991
|
+
updated_by?: string | null;
|
|
992
|
+
/** Last update timestamp */
|
|
993
|
+
updated_at?: string | null;
|
|
994
|
+
/** Agent core unique identifier (ULID format) */
|
|
995
|
+
id: string;
|
|
996
|
+
/** Agent display name */
|
|
997
|
+
name: string;
|
|
998
|
+
/** Agent unique slug for URL-friendly identification */
|
|
999
|
+
slug: string;
|
|
1000
|
+
/** Agent core type */
|
|
1001
|
+
"type": string;
|
|
1002
|
+
/** Whether agent is use-only (hides implementation) */
|
|
1003
|
+
use_only: boolean;
|
|
1004
|
+
/** Detailed description of the agent's purpose and capabilities */
|
|
1005
|
+
description?: string | null;
|
|
1006
|
+
/** URL or path to agent's avatar image */
|
|
1007
|
+
avatar?: string | null;
|
|
1008
|
+
/** Agent visibility level (PERSONAL, WORKSPACE, ORGANIZATION, PUBLIC) */
|
|
1009
|
+
visibility_level: string;
|
|
1010
|
+
/** Origin ID of forking agent */
|
|
1011
|
+
origin_fork_id?: string | null;
|
|
1012
|
+
/** Specific or recommend version associated with this agent core */
|
|
1013
|
+
version: AgentVersionResponse2;
|
|
1014
|
+
};
|
|
1015
|
+
export type ListAgentRequestV4 = {
|
|
1016
|
+
/** Agent name to filter the list */
|
|
1017
|
+
name?: string | null;
|
|
1018
|
+
/** Agent slug to filter the list */
|
|
1019
|
+
slug?: string | null;
|
|
1020
|
+
/** Paginated param to configure page size */
|
|
1021
|
+
size?: number;
|
|
1022
|
+
/** Paginated param to configure which page is being requested */
|
|
1023
|
+
page?: number;
|
|
1024
|
+
/** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
|
|
1025
|
+
visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
|
|
1026
|
+
order?: OrderEnum | null;
|
|
1027
|
+
};
|
|
1028
|
+
export type KnowledgeSourcesConfigResponseV3 = {
|
|
1029
|
+
knowledge_sources: string[];
|
|
1030
|
+
max_number_of_kos?: number;
|
|
1031
|
+
relevancy_threshold?: number;
|
|
1032
|
+
similarity_function?: string;
|
|
1033
|
+
post_processing?: boolean;
|
|
1034
|
+
};
|
|
1035
|
+
export type AgentResponseV3 = {
|
|
1036
|
+
/** Username of creator */
|
|
1037
|
+
created_by?: string | null;
|
|
1038
|
+
/** Creation timestamp */
|
|
1039
|
+
created_at?: string | null;
|
|
1040
|
+
/** Username of last updater */
|
|
1041
|
+
updated_by?: string | null;
|
|
1042
|
+
/** Last update timestamp */
|
|
1043
|
+
updated_at?: string | null;
|
|
1044
|
+
id: string;
|
|
1045
|
+
name: string;
|
|
1046
|
+
slug: string;
|
|
1047
|
+
visibility_level: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1048
|
+
avatar?: string | null;
|
|
1049
|
+
suggested_prompts?: string[] | null;
|
|
1050
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
|
|
1051
|
+
has_multiagent_tool?: boolean;
|
|
1052
|
+
"type"?: string;
|
|
1053
|
+
system_prompt?: string;
|
|
1054
|
+
creator_name?: string;
|
|
1055
|
+
is_favorite?: boolean;
|
|
1056
|
+
is_recently_used?: boolean;
|
|
1057
|
+
version_number: number;
|
|
1058
|
+
status: AgentVersionStatus;
|
|
1059
|
+
is_recommended: boolean;
|
|
1060
|
+
};
|
|
1061
|
+
export type PaginatedResponseAgentResponseV3 = {
|
|
1062
|
+
total_pages: number;
|
|
1063
|
+
items: AgentResponseV3[];
|
|
1064
|
+
};
|
|
1065
|
+
export type ListAgentVersionResponse2 = {
|
|
1066
|
+
version_number: number;
|
|
1067
|
+
status: AgentVersionStatus;
|
|
1068
|
+
is_recommended: boolean;
|
|
1069
|
+
};
|
|
1070
|
+
export type ListAgentCoreResponse = {
|
|
1071
|
+
/** Username of creator */
|
|
1072
|
+
created_by?: string | null;
|
|
1073
|
+
/** Creation timestamp */
|
|
1074
|
+
created_at?: string | null;
|
|
1075
|
+
/** Username of last updater */
|
|
1076
|
+
updated_by?: string | null;
|
|
1077
|
+
/** Last update timestamp */
|
|
1078
|
+
updated_at?: string | null;
|
|
1079
|
+
id: string;
|
|
1080
|
+
name: string;
|
|
1081
|
+
slug: string;
|
|
1082
|
+
visibility_level: string;
|
|
1083
|
+
avatar?: string | null;
|
|
1084
|
+
is_favorite?: boolean;
|
|
1085
|
+
is_recently_used?: boolean;
|
|
1086
|
+
version: ListAgentVersionResponse2;
|
|
1087
|
+
};
|
|
1088
|
+
export type PaginatedResponseListAgentCoreResponse = {
|
|
1089
|
+
total_pages: number;
|
|
1090
|
+
items: ListAgentCoreResponse[];
|
|
1091
|
+
};
|
|
1092
|
+
export type InternalListToolkitsRequest = {
|
|
1093
|
+
/** List of toolkit IDs to retrieve */
|
|
1094
|
+
toolkit_ids: string[];
|
|
1095
|
+
};
|
|
1096
|
+
export type InternalDeleteToolkitsRequest = {
|
|
1097
|
+
/** List of toolkit IDs to delete */
|
|
1098
|
+
toolkit_ids: string[];
|
|
1099
|
+
};
|
|
1100
|
+
export type InternalToolkitForkRequest = {
|
|
1101
|
+
/** List of toolkit IDs to fork */
|
|
1102
|
+
toolkit_ids: string[];
|
|
1103
|
+
};
|
|
1104
|
+
export type ToolkitForkResponse = {
|
|
1105
|
+
/** List of successfully forked toolkits */
|
|
1106
|
+
forked_toolkits: CustomToolkitSimpleResponse[];
|
|
1107
|
+
/** List of toolkit IDs that were already account-level and not forked */
|
|
1108
|
+
toolkit_ids_account: string[];
|
|
1109
|
+
/** List of toolkit IDs that failed to fork */
|
|
1110
|
+
error_ids: string[];
|
|
1111
|
+
};
|
|
1112
|
+
export type PaginatedResponseCustomToolkitSimpleResponse = {
|
|
1113
|
+
total_pages: number;
|
|
1114
|
+
items: CustomToolkitSimpleResponse[];
|
|
641
1115
|
};
|
|
642
1116
|
export type ParametersModel = {
|
|
643
1117
|
properties: {
|
|
@@ -1165,31 +1639,31 @@ export function listAgentsUsingToolsV1ToolkitsToolkitIdToolsAgentsPost({ toolkit
|
|
|
1165
1639
|
})));
|
|
1166
1640
|
}
|
|
1167
1641
|
/**
|
|
1168
|
-
*
|
|
1642
|
+
* List Tools
|
|
1169
1643
|
*/
|
|
1170
|
-
export function
|
|
1644
|
+
export function listToolsV1AgentsAgentIdToolsGet({ agentId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1171
1645
|
agentId: string;
|
|
1646
|
+
versionNumber?: number | null;
|
|
1172
1647
|
isPublic?: boolean;
|
|
1173
1648
|
xAccountId?: string | null;
|
|
1174
1649
|
xUsername?: string | null;
|
|
1175
1650
|
xUserId?: string | null;
|
|
1176
1651
|
xUserFullName?: string | null;
|
|
1177
1652
|
authorization: string;
|
|
1178
|
-
assignToolsToAgentRequest: AssignToolsToAgentRequest;
|
|
1179
1653
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1180
1654
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1181
|
-
status:
|
|
1655
|
+
status: 200;
|
|
1656
|
+
data: AgentToolsResponse;
|
|
1182
1657
|
} | {
|
|
1183
1658
|
status: 404;
|
|
1184
1659
|
} | {
|
|
1185
1660
|
status: 422;
|
|
1186
1661
|
data: HttpValidationError;
|
|
1187
1662
|
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1663
|
+
version_number: versionNumber,
|
|
1188
1664
|
is_public: isPublic
|
|
1189
|
-
}))}`,
|
|
1665
|
+
}))}`, {
|
|
1190
1666
|
...opts,
|
|
1191
|
-
method: "POST",
|
|
1192
|
-
body: assignToolsToAgentRequest,
|
|
1193
1667
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1194
1668
|
"x-account-id": xAccountId,
|
|
1195
1669
|
"x-username": xUsername,
|
|
@@ -1197,13 +1671,15 @@ export function assignToolsV1AgentsAgentIdToolsPost({ agentId, isPublic, xAccoun
|
|
|
1197
1671
|
"x-user-full-name": xUserFullName,
|
|
1198
1672
|
authorization
|
|
1199
1673
|
})
|
|
1200
|
-
}))
|
|
1674
|
+
}));
|
|
1201
1675
|
}
|
|
1202
1676
|
/**
|
|
1203
|
-
* List Tools
|
|
1677
|
+
* List Tools By Agent For Schema
|
|
1204
1678
|
*/
|
|
1205
|
-
export function
|
|
1679
|
+
export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ agentId, schema, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1206
1680
|
agentId: string;
|
|
1681
|
+
schema: SchemaEnum;
|
|
1682
|
+
versionNumber?: number | null;
|
|
1207
1683
|
isPublic?: boolean;
|
|
1208
1684
|
xAccountId?: string | null;
|
|
1209
1685
|
xUsername?: string | null;
|
|
@@ -1213,13 +1689,16 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
|
|
|
1213
1689
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1214
1690
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1215
1691
|
status: 200;
|
|
1216
|
-
data:
|
|
1692
|
+
data: (OpenAiTool | {
|
|
1693
|
+
[key: string]: any;
|
|
1694
|
+
})[];
|
|
1217
1695
|
} | {
|
|
1218
1696
|
status: 404;
|
|
1219
1697
|
} | {
|
|
1220
1698
|
status: 422;
|
|
1221
1699
|
data: HttpValidationError;
|
|
1222
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools${QS.query(QS.explode({
|
|
1700
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/tools/schema/${encodeURIComponent(schema)}${QS.query(QS.explode({
|
|
1701
|
+
version_number: versionNumber,
|
|
1223
1702
|
is_public: isPublic
|
|
1224
1703
|
}))}`, {
|
|
1225
1704
|
...opts,
|
|
@@ -1233,29 +1712,32 @@ export function listToolsV1AgentsAgentIdToolsGet({ agentId, isPublic, xAccountId
|
|
|
1233
1712
|
}));
|
|
1234
1713
|
}
|
|
1235
1714
|
/**
|
|
1236
|
-
*
|
|
1715
|
+
* Execute Tool
|
|
1237
1716
|
*/
|
|
1238
|
-
export function
|
|
1239
|
-
|
|
1717
|
+
export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, executeAgentToolRequest }: {
|
|
1718
|
+
agentToolId: string;
|
|
1240
1719
|
isPublic?: boolean;
|
|
1241
1720
|
xAccountId?: string | null;
|
|
1242
1721
|
xUsername?: string | null;
|
|
1243
1722
|
xUserId?: string | null;
|
|
1244
1723
|
xUserFullName?: string | null;
|
|
1245
1724
|
authorization: string;
|
|
1725
|
+
executeAgentToolRequest: ExecuteAgentToolRequest;
|
|
1246
1726
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1247
1727
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1248
|
-
status:
|
|
1728
|
+
status: 200;
|
|
1729
|
+
data: AgentToolExecutionResponse;
|
|
1249
1730
|
} | {
|
|
1250
1731
|
status: 404;
|
|
1251
1732
|
} | {
|
|
1252
1733
|
status: 422;
|
|
1253
1734
|
data: HttpValidationError;
|
|
1254
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1735
|
+
}>(`/v1/agents/tools/${encodeURIComponent(agentToolId)}/execute${QS.query(QS.explode({
|
|
1255
1736
|
is_public: isPublic
|
|
1256
|
-
}))}`, {
|
|
1737
|
+
}))}`, oazapfts.json({
|
|
1257
1738
|
...opts,
|
|
1258
|
-
method: "
|
|
1739
|
+
method: "POST",
|
|
1740
|
+
body: executeAgentToolRequest,
|
|
1259
1741
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1260
1742
|
"x-account-id": xAccountId,
|
|
1261
1743
|
"x-username": xUsername,
|
|
@@ -1263,15 +1745,17 @@ export function deleteToolsV1AgentsAgentIdToolsDelete({ agentId, isPublic, xAcco
|
|
|
1263
1745
|
"x-user-full-name": xUserFullName,
|
|
1264
1746
|
authorization
|
|
1265
1747
|
})
|
|
1266
|
-
}));
|
|
1748
|
+
})));
|
|
1267
1749
|
}
|
|
1268
1750
|
/**
|
|
1269
|
-
* List
|
|
1751
|
+
* List Account Agents
|
|
1270
1752
|
*/
|
|
1271
|
-
export function
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1753
|
+
export function listAccountAgentsV1AgentsAccountGet({ name, size, page, username, order, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1754
|
+
name?: string | null;
|
|
1755
|
+
size?: number;
|
|
1756
|
+
page?: number;
|
|
1757
|
+
username?: string | null;
|
|
1758
|
+
order?: OrderEnum | null;
|
|
1275
1759
|
xAccountId?: string | null;
|
|
1276
1760
|
xUsername?: string | null;
|
|
1277
1761
|
xUserId?: string | null;
|
|
@@ -1280,16 +1764,18 @@ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ a
|
|
|
1280
1764
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1281
1765
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1282
1766
|
status: 200;
|
|
1283
|
-
data:
|
|
1284
|
-
[key: string]: any;
|
|
1285
|
-
})[];
|
|
1767
|
+
data: PaginatedResponseListAccountAgentResponseV1;
|
|
1286
1768
|
} | {
|
|
1287
1769
|
status: 404;
|
|
1288
1770
|
} | {
|
|
1289
1771
|
status: 422;
|
|
1290
1772
|
data: HttpValidationError;
|
|
1291
|
-
}>(`/v1/agents
|
|
1292
|
-
|
|
1773
|
+
}>(`/v1/agents/account${QS.query(QS.explode({
|
|
1774
|
+
name,
|
|
1775
|
+
size,
|
|
1776
|
+
page,
|
|
1777
|
+
username,
|
|
1778
|
+
order
|
|
1293
1779
|
}))}`, {
|
|
1294
1780
|
...opts,
|
|
1295
1781
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1302,32 +1788,73 @@ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ a
|
|
|
1302
1788
|
}));
|
|
1303
1789
|
}
|
|
1304
1790
|
/**
|
|
1305
|
-
*
|
|
1791
|
+
* List Agents
|
|
1306
1792
|
*/
|
|
1307
|
-
export function
|
|
1308
|
-
agentToolId: string;
|
|
1793
|
+
export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1309
1794
|
isPublic?: boolean;
|
|
1795
|
+
name?: string | null;
|
|
1796
|
+
slug?: string | null;
|
|
1797
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1798
|
+
size?: number;
|
|
1799
|
+
page?: number;
|
|
1310
1800
|
xAccountId?: string | null;
|
|
1311
1801
|
xUsername?: string | null;
|
|
1312
1802
|
xUserId?: string | null;
|
|
1313
1803
|
xUserFullName?: string | null;
|
|
1314
1804
|
authorization: string;
|
|
1315
|
-
executeAgentToolRequest: ExecuteAgentToolRequest;
|
|
1316
1805
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1317
1806
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1318
1807
|
status: 200;
|
|
1319
|
-
data:
|
|
1808
|
+
data: ListAgentResponse[];
|
|
1320
1809
|
} | {
|
|
1321
1810
|
status: 404;
|
|
1322
1811
|
} | {
|
|
1323
1812
|
status: 422;
|
|
1324
1813
|
data: HttpValidationError;
|
|
1325
|
-
}>(`/v1/agents
|
|
1814
|
+
}>(`/v1/agents${QS.query(QS.explode({
|
|
1815
|
+
is_public: isPublic,
|
|
1816
|
+
name,
|
|
1817
|
+
slug,
|
|
1818
|
+
visibility,
|
|
1819
|
+
size,
|
|
1820
|
+
page
|
|
1821
|
+
}))}`, {
|
|
1822
|
+
...opts,
|
|
1823
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1824
|
+
"x-account-id": xAccountId,
|
|
1825
|
+
"x-username": xUsername,
|
|
1826
|
+
"x-user-id": xUserId,
|
|
1827
|
+
"x-user-full-name": xUserFullName,
|
|
1828
|
+
authorization
|
|
1829
|
+
})
|
|
1830
|
+
}));
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* Create Agent
|
|
1834
|
+
*/
|
|
1835
|
+
export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequest }: {
|
|
1836
|
+
isPublic?: boolean;
|
|
1837
|
+
xAccountId?: string | null;
|
|
1838
|
+
xUsername?: string | null;
|
|
1839
|
+
xUserId?: string | null;
|
|
1840
|
+
xUserFullName?: string | null;
|
|
1841
|
+
authorization: string;
|
|
1842
|
+
newAgentRequest: NewAgentRequest;
|
|
1843
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1844
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1845
|
+
status: 201;
|
|
1846
|
+
data: CreatedResponse;
|
|
1847
|
+
} | {
|
|
1848
|
+
status: 404;
|
|
1849
|
+
} | {
|
|
1850
|
+
status: 422;
|
|
1851
|
+
data: HttpValidationError;
|
|
1852
|
+
}>(`/v1/agents${QS.query(QS.explode({
|
|
1326
1853
|
is_public: isPublic
|
|
1327
1854
|
}))}`, oazapfts.json({
|
|
1328
1855
|
...opts,
|
|
1329
1856
|
method: "POST",
|
|
1330
|
-
body:
|
|
1857
|
+
body: newAgentRequest,
|
|
1331
1858
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1332
1859
|
"x-account-id": xAccountId,
|
|
1333
1860
|
"x-username": xUsername,
|
|
@@ -1338,10 +1865,168 @@ export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, is
|
|
|
1338
1865
|
})));
|
|
1339
1866
|
}
|
|
1340
1867
|
/**
|
|
1341
|
-
*
|
|
1868
|
+
* Search Agents By Ids
|
|
1342
1869
|
*/
|
|
1343
|
-
export function
|
|
1344
|
-
|
|
1870
|
+
export function searchAgentsByIdsV1AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequest }: {
|
|
1871
|
+
xAccountId?: string | null;
|
|
1872
|
+
xUsername?: string | null;
|
|
1873
|
+
xUserId?: string | null;
|
|
1874
|
+
xUserFullName?: string | null;
|
|
1875
|
+
authorization: string;
|
|
1876
|
+
searchAgentsRequest: SearchAgentsRequest;
|
|
1877
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1878
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1879
|
+
status: 200;
|
|
1880
|
+
data: ListAgentResponse[];
|
|
1881
|
+
} | {
|
|
1882
|
+
status: 404;
|
|
1883
|
+
} | {
|
|
1884
|
+
status: 422;
|
|
1885
|
+
data: HttpValidationError;
|
|
1886
|
+
}>("/v1/agents/search", oazapfts.json({
|
|
1887
|
+
...opts,
|
|
1888
|
+
method: "POST",
|
|
1889
|
+
body: searchAgentsRequest,
|
|
1890
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1891
|
+
"x-account-id": xAccountId,
|
|
1892
|
+
"x-username": xUsername,
|
|
1893
|
+
"x-user-id": xUserId,
|
|
1894
|
+
"x-user-full-name": xUserFullName,
|
|
1895
|
+
authorization
|
|
1896
|
+
})
|
|
1897
|
+
})));
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* Workspace Fork
|
|
1901
|
+
*/
|
|
1902
|
+
export function workspaceForkV1AgentsWorkspaceForkPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceForkRequest }: {
|
|
1903
|
+
xAccountId?: string | null;
|
|
1904
|
+
xUsername?: string | null;
|
|
1905
|
+
xUserId?: string | null;
|
|
1906
|
+
xUserFullName?: string | null;
|
|
1907
|
+
authorization: string;
|
|
1908
|
+
workspaceForkRequest: WorkspaceForkRequest;
|
|
1909
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1910
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1911
|
+
status: 201;
|
|
1912
|
+
data: WorkspaceForkAgent;
|
|
1913
|
+
} | {
|
|
1914
|
+
status: 404;
|
|
1915
|
+
} | {
|
|
1916
|
+
status: 422;
|
|
1917
|
+
data: HttpValidationError;
|
|
1918
|
+
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1919
|
+
...opts,
|
|
1920
|
+
method: "POST",
|
|
1921
|
+
body: workspaceForkRequest,
|
|
1922
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1923
|
+
"x-account-id": xAccountId,
|
|
1924
|
+
"x-username": xUsername,
|
|
1925
|
+
"x-user-id": xUserId,
|
|
1926
|
+
"x-user-full-name": xUserFullName,
|
|
1927
|
+
authorization
|
|
1928
|
+
})
|
|
1929
|
+
})));
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Delete Workspace Fork
|
|
1933
|
+
*/
|
|
1934
|
+
export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceDeleteRequest }: {
|
|
1935
|
+
xAccountId?: string | null;
|
|
1936
|
+
xUsername?: string | null;
|
|
1937
|
+
xUserId?: string | null;
|
|
1938
|
+
xUserFullName?: string | null;
|
|
1939
|
+
authorization: string;
|
|
1940
|
+
workspaceDeleteRequest: WorkspaceDeleteRequest;
|
|
1941
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1942
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1943
|
+
status: 204;
|
|
1944
|
+
} | {
|
|
1945
|
+
status: 404;
|
|
1946
|
+
} | {
|
|
1947
|
+
status: 422;
|
|
1948
|
+
data: HttpValidationError;
|
|
1949
|
+
}>("/v1/agents/workspace/fork", oazapfts.json({
|
|
1950
|
+
...opts,
|
|
1951
|
+
method: "DELETE",
|
|
1952
|
+
body: workspaceDeleteRequest,
|
|
1953
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1954
|
+
"x-account-id": xAccountId,
|
|
1955
|
+
"x-username": xUsername,
|
|
1956
|
+
"x-user-id": xUserId,
|
|
1957
|
+
"x-user-full-name": xUserFullName,
|
|
1958
|
+
authorization
|
|
1959
|
+
})
|
|
1960
|
+
})));
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* List Workspace
|
|
1964
|
+
*/
|
|
1965
|
+
export function listWorkspaceV1AgentsWorkspaceListPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, workspaceListRequest }: {
|
|
1966
|
+
xAccountId?: string | null;
|
|
1967
|
+
xUsername?: string | null;
|
|
1968
|
+
xUserId?: string | null;
|
|
1969
|
+
xUserFullName?: string | null;
|
|
1970
|
+
authorization: string;
|
|
1971
|
+
workspaceListRequest: WorkspaceListRequest;
|
|
1972
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1973
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1974
|
+
status: 200;
|
|
1975
|
+
data: ListAgentResponse[];
|
|
1976
|
+
} | {
|
|
1977
|
+
status: 404;
|
|
1978
|
+
} | {
|
|
1979
|
+
status: 422;
|
|
1980
|
+
data: HttpValidationError;
|
|
1981
|
+
}>("/v1/agents/workspace/list", oazapfts.json({
|
|
1982
|
+
...opts,
|
|
1983
|
+
method: "POST",
|
|
1984
|
+
body: workspaceListRequest,
|
|
1985
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1986
|
+
"x-account-id": xAccountId,
|
|
1987
|
+
"x-username": xUsername,
|
|
1988
|
+
"x-user-id": xUserId,
|
|
1989
|
+
"x-user-full-name": xUserFullName,
|
|
1990
|
+
authorization
|
|
1991
|
+
})
|
|
1992
|
+
})));
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* List Agent Dependencies
|
|
1996
|
+
*/
|
|
1997
|
+
export function listAgentDependenciesV1AgentsDependenciesPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, agentDependenciesRequest }: {
|
|
1998
|
+
xAccountId?: string | null;
|
|
1999
|
+
xUsername?: string | null;
|
|
2000
|
+
xUserId?: string | null;
|
|
2001
|
+
xUserFullName?: string | null;
|
|
2002
|
+
authorization: string;
|
|
2003
|
+
agentDependenciesRequest: AgentDependenciesRequest;
|
|
2004
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2005
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2006
|
+
status: 200;
|
|
2007
|
+
data: WorkspaceAgentDependencies;
|
|
2008
|
+
} | {
|
|
2009
|
+
status: 404;
|
|
2010
|
+
} | {
|
|
2011
|
+
status: 422;
|
|
2012
|
+
data: HttpValidationError;
|
|
2013
|
+
}>("/v1/agents/dependencies", oazapfts.json({
|
|
2014
|
+
...opts,
|
|
2015
|
+
method: "POST",
|
|
2016
|
+
body: agentDependenciesRequest,
|
|
2017
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2018
|
+
"x-account-id": xAccountId,
|
|
2019
|
+
"x-username": xUsername,
|
|
2020
|
+
"x-user-id": xUserId,
|
|
2021
|
+
"x-user-full-name": xUserFullName,
|
|
2022
|
+
authorization
|
|
2023
|
+
})
|
|
2024
|
+
})));
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* List Multi Agents
|
|
2028
|
+
*/
|
|
2029
|
+
export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1345
2030
|
name?: string | null;
|
|
1346
2031
|
slug?: string | null;
|
|
1347
2032
|
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
@@ -1355,14 +2040,13 @@ export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size,
|
|
|
1355
2040
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1356
2041
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1357
2042
|
status: 200;
|
|
1358
|
-
data:
|
|
2043
|
+
data: ListMultiAgentsResponse[];
|
|
1359
2044
|
} | {
|
|
1360
2045
|
status: 404;
|
|
1361
2046
|
} | {
|
|
1362
2047
|
status: 422;
|
|
1363
2048
|
data: HttpValidationError;
|
|
1364
|
-
}>(`/v1/agents${QS.query(QS.explode({
|
|
1365
|
-
is_public: isPublic,
|
|
2049
|
+
}>(`/v1/agents/multi-agents${QS.query(QS.explode({
|
|
1366
2050
|
name,
|
|
1367
2051
|
slug,
|
|
1368
2052
|
visibility,
|
|
@@ -1380,31 +2064,66 @@ export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size,
|
|
|
1380
2064
|
}));
|
|
1381
2065
|
}
|
|
1382
2066
|
/**
|
|
1383
|
-
*
|
|
2067
|
+
* Get Agent
|
|
1384
2068
|
*/
|
|
1385
|
-
export function
|
|
2069
|
+
export function getAgentV1AgentsAgentIdGet({ agentId, details, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2070
|
+
agentId: string;
|
|
2071
|
+
details?: boolean;
|
|
2072
|
+
versionNumber?: number | null;
|
|
2073
|
+
xAccountId?: string | null;
|
|
2074
|
+
xUsername?: string | null;
|
|
2075
|
+
xUserId?: string | null;
|
|
2076
|
+
xUserFullName?: string | null;
|
|
2077
|
+
authorization: string;
|
|
2078
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2079
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2080
|
+
status: 200;
|
|
2081
|
+
data: FindByIdAgentResponse;
|
|
2082
|
+
} | {
|
|
2083
|
+
status: 404;
|
|
2084
|
+
} | {
|
|
2085
|
+
status: 422;
|
|
2086
|
+
data: HttpValidationError;
|
|
2087
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
2088
|
+
details,
|
|
2089
|
+
version_number: versionNumber
|
|
2090
|
+
}))}`, {
|
|
2091
|
+
...opts,
|
|
2092
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2093
|
+
"x-account-id": xAccountId,
|
|
2094
|
+
"x-username": xUsername,
|
|
2095
|
+
"x-user-id": xUserId,
|
|
2096
|
+
"x-user-full-name": xUserFullName,
|
|
2097
|
+
authorization
|
|
2098
|
+
})
|
|
2099
|
+
}));
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* Update Agent
|
|
2103
|
+
*/
|
|
2104
|
+
export function updateAgentV1AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequest }: {
|
|
2105
|
+
agentId: string;
|
|
1386
2106
|
isPublic?: boolean;
|
|
1387
2107
|
xAccountId?: string | null;
|
|
1388
2108
|
xUsername?: string | null;
|
|
1389
2109
|
xUserId?: string | null;
|
|
1390
2110
|
xUserFullName?: string | null;
|
|
1391
2111
|
authorization: string;
|
|
1392
|
-
|
|
2112
|
+
updateAgentRequest: UpdateAgentRequest;
|
|
1393
2113
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1394
2114
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1395
|
-
status:
|
|
1396
|
-
data: CreatedResponse;
|
|
2115
|
+
status: 204;
|
|
1397
2116
|
} | {
|
|
1398
2117
|
status: 404;
|
|
1399
2118
|
} | {
|
|
1400
2119
|
status: 422;
|
|
1401
2120
|
data: HttpValidationError;
|
|
1402
|
-
}>(`/v1/agents${QS.query(QS.explode({
|
|
2121
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
1403
2122
|
is_public: isPublic
|
|
1404
2123
|
}))}`, oazapfts.json({
|
|
1405
2124
|
...opts,
|
|
1406
|
-
method: "
|
|
1407
|
-
body:
|
|
2125
|
+
method: "PATCH",
|
|
2126
|
+
body: updateAgentRequest,
|
|
1408
2127
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1409
2128
|
"x-account-id": xAccountId,
|
|
1410
2129
|
"x-username": xUsername,
|
|
@@ -1415,28 +2134,89 @@ export function createAgentV1AgentsPost({ isPublic, xAccountId, xUsername, xUser
|
|
|
1415
2134
|
})));
|
|
1416
2135
|
}
|
|
1417
2136
|
/**
|
|
1418
|
-
*
|
|
2137
|
+
* Delete Agent
|
|
1419
2138
|
*/
|
|
1420
|
-
export function
|
|
2139
|
+
export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2140
|
+
agentId: string;
|
|
2141
|
+
isPublic?: boolean;
|
|
1421
2142
|
xAccountId?: string | null;
|
|
1422
2143
|
xUsername?: string | null;
|
|
1423
2144
|
xUserId?: string | null;
|
|
1424
2145
|
xUserFullName?: string | null;
|
|
1425
2146
|
authorization: string;
|
|
1426
|
-
searchAgentsRequest: SearchAgentsRequest;
|
|
1427
2147
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1428
2148
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1429
|
-
status:
|
|
1430
|
-
|
|
2149
|
+
status: 204;
|
|
2150
|
+
} | {
|
|
2151
|
+
status: 404;
|
|
2152
|
+
} | {
|
|
2153
|
+
status: 422;
|
|
2154
|
+
data: HttpValidationError;
|
|
2155
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
2156
|
+
is_public: isPublic
|
|
2157
|
+
}))}`, {
|
|
2158
|
+
...opts,
|
|
2159
|
+
method: "DELETE",
|
|
2160
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2161
|
+
"x-account-id": xAccountId,
|
|
2162
|
+
"x-username": xUsername,
|
|
2163
|
+
"x-user-id": xUserId,
|
|
2164
|
+
"x-user-full-name": xUserFullName,
|
|
2165
|
+
authorization
|
|
2166
|
+
})
|
|
2167
|
+
}));
|
|
2168
|
+
}
|
|
2169
|
+
/**
|
|
2170
|
+
* Add Favorite
|
|
2171
|
+
*/
|
|
2172
|
+
export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2173
|
+
agentId: string;
|
|
2174
|
+
xAccountId?: string | null;
|
|
2175
|
+
xUsername?: string | null;
|
|
2176
|
+
xUserId?: string | null;
|
|
2177
|
+
xUserFullName?: string | null;
|
|
2178
|
+
authorization: string;
|
|
2179
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2180
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2181
|
+
status: 204;
|
|
2182
|
+
} | {
|
|
2183
|
+
status: 404;
|
|
2184
|
+
} | {
|
|
2185
|
+
status: 422;
|
|
2186
|
+
data: HttpValidationError;
|
|
2187
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
2188
|
+
...opts,
|
|
2189
|
+
method: "POST",
|
|
2190
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2191
|
+
"x-account-id": xAccountId,
|
|
2192
|
+
"x-username": xUsername,
|
|
2193
|
+
"x-user-id": xUserId,
|
|
2194
|
+
"x-user-full-name": xUserFullName,
|
|
2195
|
+
authorization
|
|
2196
|
+
})
|
|
2197
|
+
}));
|
|
2198
|
+
}
|
|
2199
|
+
/**
|
|
2200
|
+
* Delete Favorite
|
|
2201
|
+
*/
|
|
2202
|
+
export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2203
|
+
agentId: string;
|
|
2204
|
+
xAccountId?: string | null;
|
|
2205
|
+
xUsername?: string | null;
|
|
2206
|
+
xUserId?: string | null;
|
|
2207
|
+
xUserFullName?: string | null;
|
|
2208
|
+
authorization: string;
|
|
2209
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2210
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2211
|
+
status: 204;
|
|
1431
2212
|
} | {
|
|
1432
2213
|
status: 404;
|
|
1433
2214
|
} | {
|
|
1434
2215
|
status: 422;
|
|
1435
2216
|
data: HttpValidationError;
|
|
1436
|
-
}>(
|
|
2217
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
1437
2218
|
...opts,
|
|
1438
|
-
method: "
|
|
1439
|
-
body: searchAgentsRequest,
|
|
2219
|
+
method: "DELETE",
|
|
1440
2220
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1441
2221
|
"x-account-id": xAccountId,
|
|
1442
2222
|
"x-username": xUsername,
|
|
@@ -1444,31 +2224,35 @@ export function searchAgentsV1AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
1444
2224
|
"x-user-full-name": xUserFullName,
|
|
1445
2225
|
authorization
|
|
1446
2226
|
})
|
|
1447
|
-
}))
|
|
2227
|
+
}));
|
|
1448
2228
|
}
|
|
1449
2229
|
/**
|
|
1450
|
-
*
|
|
2230
|
+
* Fork Agent
|
|
1451
2231
|
*/
|
|
1452
|
-
export function
|
|
2232
|
+
export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
2233
|
+
agentId: string;
|
|
2234
|
+
isPublic?: boolean;
|
|
1453
2235
|
xAccountId?: string | null;
|
|
1454
2236
|
xUsername?: string | null;
|
|
1455
2237
|
xUserId?: string | null;
|
|
1456
2238
|
xUserFullName?: string | null;
|
|
1457
2239
|
authorization: string;
|
|
1458
|
-
|
|
2240
|
+
forkAgentRequest: ForkAgentRequest;
|
|
1459
2241
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1460
2242
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1461
2243
|
status: 201;
|
|
1462
|
-
data:
|
|
2244
|
+
data: CreatedResponse;
|
|
1463
2245
|
} | {
|
|
1464
2246
|
status: 404;
|
|
1465
2247
|
} | {
|
|
1466
2248
|
status: 422;
|
|
1467
2249
|
data: HttpValidationError;
|
|
1468
|
-
}>(
|
|
2250
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/fork${QS.query(QS.explode({
|
|
2251
|
+
is_public: isPublic
|
|
2252
|
+
}))}`, oazapfts.json({
|
|
1469
2253
|
...opts,
|
|
1470
2254
|
method: "POST",
|
|
1471
|
-
body:
|
|
2255
|
+
body: forkAgentRequest,
|
|
1472
2256
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1473
2257
|
"x-account-id": xAccountId,
|
|
1474
2258
|
"x-username": xUsername,
|
|
@@ -1479,15 +2263,16 @@ export function workspaceForkV1AgentsWorkspaceForkPost({ xAccountId, xUsername,
|
|
|
1479
2263
|
})));
|
|
1480
2264
|
}
|
|
1481
2265
|
/**
|
|
1482
|
-
*
|
|
2266
|
+
* Publish Agent
|
|
1483
2267
|
*/
|
|
1484
|
-
export function
|
|
2268
|
+
export function publishAgentV1AgentsAgentIdPublishPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization, publishAgentRequest }: {
|
|
2269
|
+
agentId: string;
|
|
1485
2270
|
xAccountId?: string | null;
|
|
1486
2271
|
xUsername?: string | null;
|
|
1487
2272
|
xUserId?: string | null;
|
|
1488
2273
|
xUserFullName?: string | null;
|
|
1489
2274
|
authorization: string;
|
|
1490
|
-
|
|
2275
|
+
publishAgentRequest: PublishAgentRequest;
|
|
1491
2276
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1492
2277
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1493
2278
|
status: 204;
|
|
@@ -1496,10 +2281,10 @@ export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUs
|
|
|
1496
2281
|
} | {
|
|
1497
2282
|
status: 422;
|
|
1498
2283
|
data: HttpValidationError;
|
|
1499
|
-
}>(
|
|
2284
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
|
|
1500
2285
|
...opts,
|
|
1501
|
-
method: "
|
|
1502
|
-
body:
|
|
2286
|
+
method: "POST",
|
|
2287
|
+
body: publishAgentRequest,
|
|
1503
2288
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1504
2289
|
"x-account-id": xAccountId,
|
|
1505
2290
|
"x-username": xUsername,
|
|
@@ -1510,28 +2295,26 @@ export function deleteWorkspaceForkV1AgentsWorkspaceForkDelete({ xAccountId, xUs
|
|
|
1510
2295
|
})));
|
|
1511
2296
|
}
|
|
1512
2297
|
/**
|
|
1513
|
-
*
|
|
2298
|
+
* Share
|
|
1514
2299
|
*/
|
|
1515
|
-
export function
|
|
2300
|
+
export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2301
|
+
agentId: string;
|
|
1516
2302
|
xAccountId?: string | null;
|
|
1517
2303
|
xUsername?: string | null;
|
|
1518
2304
|
xUserId?: string | null;
|
|
1519
2305
|
xUserFullName?: string | null;
|
|
1520
2306
|
authorization: string;
|
|
1521
|
-
workspaceListRequest: WorkspaceListRequest;
|
|
1522
2307
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1523
2308
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1524
|
-
status:
|
|
1525
|
-
data: ListAgentResponse[];
|
|
2309
|
+
status: 204;
|
|
1526
2310
|
} | {
|
|
1527
2311
|
status: 404;
|
|
1528
2312
|
} | {
|
|
1529
2313
|
status: 422;
|
|
1530
2314
|
data: HttpValidationError;
|
|
1531
|
-
}>(
|
|
2315
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/share`, {
|
|
1532
2316
|
...opts,
|
|
1533
2317
|
method: "POST",
|
|
1534
|
-
body: workspaceListRequest,
|
|
1535
2318
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1536
2319
|
"x-account-id": xAccountId,
|
|
1537
2320
|
"x-username": xUsername,
|
|
@@ -1539,31 +2322,29 @@ export function listWorkspaceV1AgentsWorkspaceListPost({ xAccountId, xUsername,
|
|
|
1539
2322
|
"x-user-full-name": xUserFullName,
|
|
1540
2323
|
authorization
|
|
1541
2324
|
})
|
|
1542
|
-
}))
|
|
2325
|
+
}));
|
|
1543
2326
|
}
|
|
1544
2327
|
/**
|
|
1545
|
-
*
|
|
2328
|
+
* Disassociate Ks From All Agents
|
|
1546
2329
|
*/
|
|
1547
|
-
export function
|
|
2330
|
+
export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2331
|
+
ksId: string;
|
|
1548
2332
|
xAccountId?: string | null;
|
|
1549
2333
|
xUsername?: string | null;
|
|
1550
2334
|
xUserId?: string | null;
|
|
1551
2335
|
xUserFullName?: string | null;
|
|
1552
2336
|
authorization: string;
|
|
1553
|
-
agentDependenciesRequest: AgentDependenciesRequest;
|
|
1554
2337
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1555
2338
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1556
|
-
status:
|
|
1557
|
-
data: WorkspaceAgentDependencies;
|
|
2339
|
+
status: 204;
|
|
1558
2340
|
} | {
|
|
1559
2341
|
status: 404;
|
|
1560
2342
|
} | {
|
|
1561
2343
|
status: 422;
|
|
1562
2344
|
data: HttpValidationError;
|
|
1563
|
-
}>(
|
|
2345
|
+
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1564
2346
|
...opts,
|
|
1565
|
-
method: "
|
|
1566
|
-
body: agentDependenciesRequest,
|
|
2347
|
+
method: "DELETE",
|
|
1567
2348
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1568
2349
|
"x-account-id": xAccountId,
|
|
1569
2350
|
"x-username": xUsername,
|
|
@@ -1571,17 +2352,13 @@ export function listAgentDependenciesV1AgentsDependenciesPost({ xAccountId, xUse
|
|
|
1571
2352
|
"x-user-full-name": xUserFullName,
|
|
1572
2353
|
authorization
|
|
1573
2354
|
})
|
|
1574
|
-
}))
|
|
2355
|
+
}));
|
|
1575
2356
|
}
|
|
1576
2357
|
/**
|
|
1577
|
-
*
|
|
2358
|
+
* Get Agent By Ks Id
|
|
1578
2359
|
*/
|
|
1579
|
-
export function
|
|
1580
|
-
|
|
1581
|
-
slug?: string | null;
|
|
1582
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1583
|
-
size?: number;
|
|
1584
|
-
page?: number;
|
|
2360
|
+
export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2361
|
+
ksId: string;
|
|
1585
2362
|
xAccountId?: string | null;
|
|
1586
2363
|
xUsername?: string | null;
|
|
1587
2364
|
xUserId?: string | null;
|
|
@@ -1590,19 +2367,13 @@ export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility,
|
|
|
1590
2367
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1591
2368
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1592
2369
|
status: 200;
|
|
1593
|
-
data:
|
|
2370
|
+
data: ListAgentResponse[];
|
|
1594
2371
|
} | {
|
|
1595
2372
|
status: 404;
|
|
1596
2373
|
} | {
|
|
1597
2374
|
status: 422;
|
|
1598
2375
|
data: HttpValidationError;
|
|
1599
|
-
}>(`/v1/agents/
|
|
1600
|
-
name,
|
|
1601
|
-
slug,
|
|
1602
|
-
visibility,
|
|
1603
|
-
size,
|
|
1604
|
-
page
|
|
1605
|
-
}))}`, {
|
|
2376
|
+
}>(`/v1/agents/knowledge-source/${encodeURIComponent(ksId)}`, {
|
|
1606
2377
|
...opts,
|
|
1607
2378
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1608
2379
|
"x-account-id": xAccountId,
|
|
@@ -1614,11 +2385,10 @@ export function listMultiAgentsV1AgentsMultiAgentsGet({ name, slug, visibility,
|
|
|
1614
2385
|
}));
|
|
1615
2386
|
}
|
|
1616
2387
|
/**
|
|
1617
|
-
*
|
|
2388
|
+
* Migrate Agent Avatar By Id
|
|
1618
2389
|
*/
|
|
1619
|
-
export function
|
|
2390
|
+
export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1620
2391
|
agentId: string;
|
|
1621
|
-
details?: boolean;
|
|
1622
2392
|
xAccountId?: string | null;
|
|
1623
2393
|
xUsername?: string | null;
|
|
1624
2394
|
xUserId?: string | null;
|
|
@@ -1626,17 +2396,15 @@ export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUser
|
|
|
1626
2396
|
authorization: string;
|
|
1627
2397
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1628
2398
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1629
|
-
status:
|
|
1630
|
-
data: AgentModel;
|
|
2399
|
+
status: 204;
|
|
1631
2400
|
} | {
|
|
1632
2401
|
status: 404;
|
|
1633
2402
|
} | {
|
|
1634
2403
|
status: 422;
|
|
1635
2404
|
data: HttpValidationError;
|
|
1636
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}
|
|
1637
|
-
details
|
|
1638
|
-
}))}`, {
|
|
2405
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/migrate-avatar`, {
|
|
1639
2406
|
...opts,
|
|
2407
|
+
method: "POST",
|
|
1640
2408
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1641
2409
|
"x-account-id": xAccountId,
|
|
1642
2410
|
"x-username": xUsername,
|
|
@@ -1647,31 +2415,32 @@ export function getAgentV1AgentsAgentIdGet({ agentId, details, xAccountId, xUser
|
|
|
1647
2415
|
}));
|
|
1648
2416
|
}
|
|
1649
2417
|
/**
|
|
1650
|
-
*
|
|
2418
|
+
* Create Version
|
|
1651
2419
|
*/
|
|
1652
|
-
export function
|
|
1653
|
-
|
|
1654
|
-
isPublic?: boolean;
|
|
2420
|
+
export function createVersionV1AgentsAgentCoreIdVersionsPost({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization, createVersionRequest }: {
|
|
2421
|
+
agentCoreId: string;
|
|
1655
2422
|
xAccountId?: string | null;
|
|
1656
2423
|
xUsername?: string | null;
|
|
1657
2424
|
xUserId?: string | null;
|
|
1658
2425
|
xUserFullName?: string | null;
|
|
1659
2426
|
authorization: string;
|
|
1660
|
-
|
|
2427
|
+
createVersionRequest: CreateVersionRequest;
|
|
1661
2428
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1662
2429
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1663
|
-
status:
|
|
2430
|
+
status: 200;
|
|
2431
|
+
data: CreateVersionResponse;
|
|
2432
|
+
} | {
|
|
2433
|
+
status: 201;
|
|
2434
|
+
data: CreateVersionResponse;
|
|
1664
2435
|
} | {
|
|
1665
2436
|
status: 404;
|
|
1666
2437
|
} | {
|
|
1667
2438
|
status: 422;
|
|
1668
2439
|
data: HttpValidationError;
|
|
1669
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1670
|
-
is_public: isPublic
|
|
1671
|
-
}))}`, oazapfts.json({
|
|
2440
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, oazapfts.json({
|
|
1672
2441
|
...opts,
|
|
1673
|
-
method: "
|
|
1674
|
-
body:
|
|
2442
|
+
method: "POST",
|
|
2443
|
+
body: createVersionRequest,
|
|
1675
2444
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1676
2445
|
"x-account-id": xAccountId,
|
|
1677
2446
|
"x-username": xUsername,
|
|
@@ -1682,11 +2451,10 @@ export function updateAgentV1AgentsAgentIdPatch({ agentId, isPublic, xAccountId,
|
|
|
1682
2451
|
})));
|
|
1683
2452
|
}
|
|
1684
2453
|
/**
|
|
1685
|
-
*
|
|
2454
|
+
* List Versions Of Agent Core
|
|
1686
2455
|
*/
|
|
1687
|
-
export function
|
|
1688
|
-
|
|
1689
|
-
isPublic?: boolean;
|
|
2456
|
+
export function listVersionsOfAgentCoreV1AgentsAgentCoreIdVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2457
|
+
agentCoreId: string;
|
|
1690
2458
|
xAccountId?: string | null;
|
|
1691
2459
|
xUsername?: string | null;
|
|
1692
2460
|
xUserId?: string | null;
|
|
@@ -1694,17 +2462,15 @@ export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId
|
|
|
1694
2462
|
authorization: string;
|
|
1695
2463
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1696
2464
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1697
|
-
status:
|
|
2465
|
+
status: 200;
|
|
2466
|
+
data: ListAgentVersionResponse[];
|
|
1698
2467
|
} | {
|
|
1699
2468
|
status: 404;
|
|
1700
2469
|
} | {
|
|
1701
2470
|
status: 422;
|
|
1702
2471
|
data: HttpValidationError;
|
|
1703
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1704
|
-
is_public: isPublic
|
|
1705
|
-
}))}`, {
|
|
2472
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions`, {
|
|
1706
2473
|
...opts,
|
|
1707
|
-
method: "DELETE",
|
|
1708
2474
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1709
2475
|
"x-account-id": xAccountId,
|
|
1710
2476
|
"x-username": xUsername,
|
|
@@ -1715,10 +2481,12 @@ export function deleteAgentV1AgentsAgentIdDelete({ agentId, isPublic, xAccountId
|
|
|
1715
2481
|
}));
|
|
1716
2482
|
}
|
|
1717
2483
|
/**
|
|
1718
|
-
*
|
|
2484
|
+
* Delete Version
|
|
1719
2485
|
*/
|
|
1720
|
-
export function
|
|
1721
|
-
|
|
2486
|
+
export function deleteVersionV1AgentsAgentCoreIdVersionsVersionNumberDelete({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2487
|
+
agentCoreId: string;
|
|
2488
|
+
versionNumber: number;
|
|
2489
|
+
isPublic?: boolean;
|
|
1722
2490
|
xAccountId?: string | null;
|
|
1723
2491
|
xUsername?: string | null;
|
|
1724
2492
|
xUserId?: string | null;
|
|
@@ -1732,9 +2500,11 @@ export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xU
|
|
|
1732
2500
|
} | {
|
|
1733
2501
|
status: 422;
|
|
1734
2502
|
data: HttpValidationError;
|
|
1735
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2503
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}${QS.query(QS.explode({
|
|
2504
|
+
is_public: isPublic
|
|
2505
|
+
}))}`, {
|
|
1736
2506
|
...opts,
|
|
1737
|
-
method: "
|
|
2507
|
+
method: "DELETE",
|
|
1738
2508
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1739
2509
|
"x-account-id": xAccountId,
|
|
1740
2510
|
"x-username": xUsername,
|
|
@@ -1745,10 +2515,12 @@ export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId, xAccountId, xU
|
|
|
1745
2515
|
}));
|
|
1746
2516
|
}
|
|
1747
2517
|
/**
|
|
1748
|
-
*
|
|
2518
|
+
* Patch Version Recommended
|
|
1749
2519
|
*/
|
|
1750
|
-
export function
|
|
1751
|
-
|
|
2520
|
+
export function patchVersionRecommendedV1AgentsAgentCoreIdVersionsVersionNumberPatch({ agentCoreId, versionNumber, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2521
|
+
agentCoreId: string;
|
|
2522
|
+
versionNumber: number;
|
|
2523
|
+
isPublic?: boolean;
|
|
1752
2524
|
xAccountId?: string | null;
|
|
1753
2525
|
xUsername?: string | null;
|
|
1754
2526
|
xUserId?: string | null;
|
|
@@ -1756,15 +2528,18 @@ export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountI
|
|
|
1756
2528
|
authorization: string;
|
|
1757
2529
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1758
2530
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1759
|
-
status:
|
|
2531
|
+
status: 200;
|
|
2532
|
+
data: AgentVersionResponse;
|
|
1760
2533
|
} | {
|
|
1761
2534
|
status: 404;
|
|
1762
2535
|
} | {
|
|
1763
2536
|
status: 422;
|
|
1764
2537
|
data: HttpValidationError;
|
|
1765
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2538
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}${QS.query(QS.explode({
|
|
2539
|
+
is_public: isPublic
|
|
2540
|
+
}))}`, {
|
|
1766
2541
|
...opts,
|
|
1767
|
-
method: "
|
|
2542
|
+
method: "PATCH",
|
|
1768
2543
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1769
2544
|
"x-account-id": xAccountId,
|
|
1770
2545
|
"x-username": xUsername,
|
|
@@ -1775,11 +2550,11 @@ export function deleteFavoriteV1AgentsAgentIdFavoriteDelete({ agentId, xAccountI
|
|
|
1775
2550
|
}));
|
|
1776
2551
|
}
|
|
1777
2552
|
/**
|
|
1778
|
-
* Fork Agent
|
|
2553
|
+
* Fork Agent Version
|
|
1779
2554
|
*/
|
|
1780
|
-
export function
|
|
1781
|
-
|
|
1782
|
-
|
|
2555
|
+
export function forkAgentVersionV1AgentsAgentCoreIdVersionsVersionNumberForkPost({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization, forkAgentRequest }: {
|
|
2556
|
+
agentCoreId: string;
|
|
2557
|
+
versionNumber: number;
|
|
1783
2558
|
xAccountId?: string | null;
|
|
1784
2559
|
xUsername?: string | null;
|
|
1785
2560
|
xUserId?: string | null;
|
|
@@ -1789,15 +2564,13 @@ export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId
|
|
|
1789
2564
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1790
2565
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1791
2566
|
status: 201;
|
|
1792
|
-
data:
|
|
2567
|
+
data: AgentCoreWithSingleVersionResponse;
|
|
1793
2568
|
} | {
|
|
1794
2569
|
status: 404;
|
|
1795
2570
|
} | {
|
|
1796
2571
|
status: 422;
|
|
1797
2572
|
data: HttpValidationError;
|
|
1798
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
1799
|
-
is_public: isPublic
|
|
1800
|
-
}))}`, oazapfts.json({
|
|
2573
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/versions/${encodeURIComponent(versionNumber)}/fork`, oazapfts.json({
|
|
1801
2574
|
...opts,
|
|
1802
2575
|
method: "POST",
|
|
1803
2576
|
body: forkAgentRequest,
|
|
@@ -1811,28 +2584,26 @@ export function forkAgentV1AgentsAgentIdForkPost({ agentId, isPublic, xAccountId
|
|
|
1811
2584
|
})));
|
|
1812
2585
|
}
|
|
1813
2586
|
/**
|
|
1814
|
-
*
|
|
2587
|
+
* Find By Agent Core Id With All Versions
|
|
1815
2588
|
*/
|
|
1816
|
-
export function
|
|
1817
|
-
|
|
2589
|
+
export function findByAgentCoreIdWithAllVersionsV1AgentsAgentCoreIdAllVersionsGet({ agentCoreId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2590
|
+
agentCoreId: string;
|
|
1818
2591
|
xAccountId?: string | null;
|
|
1819
2592
|
xUsername?: string | null;
|
|
1820
2593
|
xUserId?: string | null;
|
|
1821
2594
|
xUserFullName?: string | null;
|
|
1822
2595
|
authorization: string;
|
|
1823
|
-
publishAgentRequest: PublishAgentRequest;
|
|
1824
2596
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1825
2597
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1826
|
-
status:
|
|
2598
|
+
status: 200;
|
|
2599
|
+
data: AgentCoreResponse;
|
|
1827
2600
|
} | {
|
|
1828
2601
|
status: 404;
|
|
1829
2602
|
} | {
|
|
1830
2603
|
status: 422;
|
|
1831
2604
|
data: HttpValidationError;
|
|
1832
|
-
}>(`/v1/agents/${encodeURIComponent(
|
|
2605
|
+
}>(`/v1/agents/${encodeURIComponent(agentCoreId)}/all-versions`, {
|
|
1833
2606
|
...opts,
|
|
1834
|
-
method: "POST",
|
|
1835
|
-
body: publishAgentRequest,
|
|
1836
2607
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1837
2608
|
"x-account-id": xAccountId,
|
|
1838
2609
|
"x-username": xUsername,
|
|
@@ -1840,13 +2611,17 @@ export function publishAgentV1AgentsAgentIdPublishPost({ agentId, xAccountId, xU
|
|
|
1840
2611
|
"x-user-full-name": xUserFullName,
|
|
1841
2612
|
authorization
|
|
1842
2613
|
})
|
|
1843
|
-
}))
|
|
2614
|
+
}));
|
|
1844
2615
|
}
|
|
1845
2616
|
/**
|
|
1846
|
-
*
|
|
2617
|
+
* List Agents
|
|
1847
2618
|
*/
|
|
1848
|
-
export function
|
|
1849
|
-
|
|
2619
|
+
export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2620
|
+
name?: string | null;
|
|
2621
|
+
slug?: string | null;
|
|
2622
|
+
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
2623
|
+
size?: number;
|
|
2624
|
+
page?: number;
|
|
1850
2625
|
xAccountId?: string | null;
|
|
1851
2626
|
xUsername?: string | null;
|
|
1852
2627
|
xUserId?: string | null;
|
|
@@ -1854,15 +2629,21 @@ export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername,
|
|
|
1854
2629
|
authorization: string;
|
|
1855
2630
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1856
2631
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1857
|
-
status:
|
|
2632
|
+
status: 200;
|
|
2633
|
+
data: ListAgentResponseV2[];
|
|
1858
2634
|
} | {
|
|
1859
2635
|
status: 404;
|
|
1860
2636
|
} | {
|
|
1861
2637
|
status: 422;
|
|
1862
2638
|
data: HttpValidationError;
|
|
1863
|
-
}>(`/
|
|
2639
|
+
}>(`/v2/agents${QS.query(QS.explode({
|
|
2640
|
+
name,
|
|
2641
|
+
slug,
|
|
2642
|
+
visibility,
|
|
2643
|
+
size,
|
|
2644
|
+
page
|
|
2645
|
+
}))}`, {
|
|
1864
2646
|
...opts,
|
|
1865
|
-
method: "POST",
|
|
1866
2647
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1867
2648
|
"x-account-id": xAccountId,
|
|
1868
2649
|
"x-username": xUsername,
|
|
@@ -1873,26 +2654,31 @@ export function shareV1AgentsAgentIdSharePost({ agentId, xAccountId, xUsername,
|
|
|
1873
2654
|
}));
|
|
1874
2655
|
}
|
|
1875
2656
|
/**
|
|
1876
|
-
*
|
|
2657
|
+
* Create Agent
|
|
1877
2658
|
*/
|
|
1878
|
-
export function
|
|
1879
|
-
|
|
2659
|
+
export function createAgentV2AgentsPost({ isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, newAgentRequestV2 }: {
|
|
2660
|
+
isPublic?: boolean;
|
|
1880
2661
|
xAccountId?: string | null;
|
|
1881
2662
|
xUsername?: string | null;
|
|
1882
2663
|
xUserId?: string | null;
|
|
1883
2664
|
xUserFullName?: string | null;
|
|
1884
2665
|
authorization: string;
|
|
2666
|
+
newAgentRequestV2: NewAgentRequestV2;
|
|
1885
2667
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1886
2668
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1887
|
-
status:
|
|
2669
|
+
status: 201;
|
|
2670
|
+
data: CreatedResponse;
|
|
1888
2671
|
} | {
|
|
1889
2672
|
status: 404;
|
|
1890
2673
|
} | {
|
|
1891
2674
|
status: 422;
|
|
1892
2675
|
data: HttpValidationError;
|
|
1893
|
-
}>(`/
|
|
2676
|
+
}>(`/v2/agents${QS.query(QS.explode({
|
|
2677
|
+
is_public: isPublic
|
|
2678
|
+
}))}`, oazapfts.json({
|
|
1894
2679
|
...opts,
|
|
1895
|
-
method: "
|
|
2680
|
+
method: "POST",
|
|
2681
|
+
body: newAgentRequestV2,
|
|
1896
2682
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1897
2683
|
"x-account-id": xAccountId,
|
|
1898
2684
|
"x-username": xUsername,
|
|
@@ -1900,29 +2686,31 @@ export function disassociateKsFromAllAgentsV1AgentsKnowledgeSourceKsIdDelete({ k
|
|
|
1900
2686
|
"x-user-full-name": xUserFullName,
|
|
1901
2687
|
authorization
|
|
1902
2688
|
})
|
|
1903
|
-
}));
|
|
2689
|
+
})));
|
|
1904
2690
|
}
|
|
1905
2691
|
/**
|
|
1906
|
-
*
|
|
2692
|
+
* Search Agents
|
|
1907
2693
|
*/
|
|
1908
|
-
export function
|
|
1909
|
-
ksId: string;
|
|
2694
|
+
export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId, xUserFullName, authorization, searchAgentsRequestV2 }: {
|
|
1910
2695
|
xAccountId?: string | null;
|
|
1911
2696
|
xUsername?: string | null;
|
|
1912
2697
|
xUserId?: string | null;
|
|
1913
2698
|
xUserFullName?: string | null;
|
|
1914
2699
|
authorization: string;
|
|
2700
|
+
searchAgentsRequestV2: SearchAgentsRequestV2;
|
|
1915
2701
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1916
2702
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1917
2703
|
status: 200;
|
|
1918
|
-
data:
|
|
2704
|
+
data: ListAgentResponseV2[];
|
|
1919
2705
|
} | {
|
|
1920
2706
|
status: 404;
|
|
1921
2707
|
} | {
|
|
1922
2708
|
status: 422;
|
|
1923
2709
|
data: HttpValidationError;
|
|
1924
|
-
}>(
|
|
2710
|
+
}>("/v2/agents/search", oazapfts.json({
|
|
1925
2711
|
...opts,
|
|
2712
|
+
method: "POST",
|
|
2713
|
+
body: searchAgentsRequestV2,
|
|
1926
2714
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1927
2715
|
"x-account-id": xAccountId,
|
|
1928
2716
|
"x-username": xUsername,
|
|
@@ -1930,18 +2718,20 @@ export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId,
|
|
|
1930
2718
|
"x-user-full-name": xUserFullName,
|
|
1931
2719
|
authorization
|
|
1932
2720
|
})
|
|
1933
|
-
}));
|
|
2721
|
+
})));
|
|
1934
2722
|
}
|
|
1935
2723
|
/**
|
|
1936
|
-
*
|
|
2724
|
+
* Update Agent
|
|
1937
2725
|
*/
|
|
1938
|
-
export function
|
|
2726
|
+
export function updateAgentV2AgentsAgentIdPatch({ agentId, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization, updateAgentRequestV2 }: {
|
|
1939
2727
|
agentId: string;
|
|
2728
|
+
isPublic?: boolean;
|
|
1940
2729
|
xAccountId?: string | null;
|
|
1941
2730
|
xUsername?: string | null;
|
|
1942
2731
|
xUserId?: string | null;
|
|
1943
2732
|
xUserFullName?: string | null;
|
|
1944
2733
|
authorization: string;
|
|
2734
|
+
updateAgentRequestV2: UpdateAgentRequestV2;
|
|
1945
2735
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1946
2736
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1947
2737
|
status: 204;
|
|
@@ -1950,9 +2740,12 @@ export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId
|
|
|
1950
2740
|
} | {
|
|
1951
2741
|
status: 422;
|
|
1952
2742
|
data: HttpValidationError;
|
|
1953
|
-
}>(`/
|
|
2743
|
+
}>(`/v2/agents/${encodeURIComponent(agentId)}${QS.query(QS.explode({
|
|
2744
|
+
is_public: isPublic
|
|
2745
|
+
}))}`, oazapfts.json({
|
|
1954
2746
|
...opts,
|
|
1955
|
-
method: "
|
|
2747
|
+
method: "PATCH",
|
|
2748
|
+
body: updateAgentRequestV2,
|
|
1956
2749
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1957
2750
|
"x-account-id": xAccountId,
|
|
1958
2751
|
"x-username": xUsername,
|
|
@@ -1960,17 +2753,14 @@ export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId
|
|
|
1960
2753
|
"x-user-full-name": xUserFullName,
|
|
1961
2754
|
authorization
|
|
1962
2755
|
})
|
|
1963
|
-
}));
|
|
2756
|
+
})));
|
|
1964
2757
|
}
|
|
1965
2758
|
/**
|
|
1966
|
-
*
|
|
2759
|
+
* Find By Agent Core Id
|
|
1967
2760
|
*/
|
|
1968
|
-
export function
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
1972
|
-
size?: number;
|
|
1973
|
-
page?: number;
|
|
2761
|
+
export function findByAgentCoreIdV2AgentsAgentCoreIdGet({ agentCoreId, versionNumber, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2762
|
+
agentCoreId: string;
|
|
2763
|
+
versionNumber?: number | null;
|
|
1974
2764
|
xAccountId?: string | null;
|
|
1975
2765
|
xUsername?: string | null;
|
|
1976
2766
|
xUserId?: string | null;
|
|
@@ -1979,18 +2769,14 @@ export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
1979
2769
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1980
2770
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1981
2771
|
status: 200;
|
|
1982
|
-
data:
|
|
2772
|
+
data: AgentCoreWithSingleVersionResponse2;
|
|
1983
2773
|
} | {
|
|
1984
2774
|
status: 404;
|
|
1985
2775
|
} | {
|
|
1986
2776
|
status: 422;
|
|
1987
2777
|
data: HttpValidationError;
|
|
1988
|
-
}>(`/v2/agents${QS.query(QS.explode({
|
|
1989
|
-
|
|
1990
|
-
slug,
|
|
1991
|
-
visibility,
|
|
1992
|
-
size,
|
|
1993
|
-
page
|
|
2778
|
+
}>(`/v2/agents/${encodeURIComponent(agentCoreId)}${QS.query(QS.explode({
|
|
2779
|
+
version_number: versionNumber
|
|
1994
2780
|
}))}`, {
|
|
1995
2781
|
...opts,
|
|
1996
2782
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -2003,28 +2789,30 @@ export function listAgentsV2AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
2003
2789
|
}));
|
|
2004
2790
|
}
|
|
2005
2791
|
/**
|
|
2006
|
-
*
|
|
2792
|
+
* List Agents
|
|
2007
2793
|
*/
|
|
2008
|
-
export function
|
|
2794
|
+
export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2795
|
+
filters: ListAgentRequestV4;
|
|
2796
|
+
isPublic?: boolean;
|
|
2009
2797
|
xAccountId?: string | null;
|
|
2010
2798
|
xUsername?: string | null;
|
|
2011
2799
|
xUserId?: string | null;
|
|
2012
2800
|
xUserFullName?: string | null;
|
|
2013
2801
|
authorization: string;
|
|
2014
|
-
searchAgentsRequest: SearchAgentsRequest;
|
|
2015
2802
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2016
2803
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2017
2804
|
status: 200;
|
|
2018
|
-
data:
|
|
2805
|
+
data: PaginatedResponseAgentResponseV3;
|
|
2019
2806
|
} | {
|
|
2020
2807
|
status: 404;
|
|
2021
2808
|
} | {
|
|
2022
2809
|
status: 422;
|
|
2023
2810
|
data: HttpValidationError;
|
|
2024
|
-
}>(
|
|
2811
|
+
}>(`/v3/agents${QS.query(QS.explode({
|
|
2812
|
+
filters,
|
|
2813
|
+
is_public: isPublic
|
|
2814
|
+
}))}`, {
|
|
2025
2815
|
...opts,
|
|
2026
|
-
method: "POST",
|
|
2027
|
-
body: searchAgentsRequest,
|
|
2028
2816
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2029
2817
|
"x-account-id": xAccountId,
|
|
2030
2818
|
"x-username": xUsername,
|
|
@@ -2032,13 +2820,13 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
2032
2820
|
"x-user-full-name": xUserFullName,
|
|
2033
2821
|
authorization
|
|
2034
2822
|
})
|
|
2035
|
-
}))
|
|
2823
|
+
}));
|
|
2036
2824
|
}
|
|
2037
2825
|
/**
|
|
2038
|
-
* List
|
|
2826
|
+
* List Agent Core with all versions
|
|
2039
2827
|
*/
|
|
2040
|
-
export function
|
|
2041
|
-
filters:
|
|
2828
|
+
export function listAgentsV4AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2829
|
+
filters: ListAgentRequestV4;
|
|
2042
2830
|
isPublic?: boolean;
|
|
2043
2831
|
xAccountId?: string | null;
|
|
2044
2832
|
xUsername?: string | null;
|
|
@@ -2048,13 +2836,13 @@ export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername
|
|
|
2048
2836
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2049
2837
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2050
2838
|
status: 200;
|
|
2051
|
-
data:
|
|
2839
|
+
data: PaginatedResponseListAgentCoreResponse;
|
|
2052
2840
|
} | {
|
|
2053
2841
|
status: 404;
|
|
2054
2842
|
} | {
|
|
2055
2843
|
status: 422;
|
|
2056
2844
|
data: HttpValidationError;
|
|
2057
|
-
}>(`/
|
|
2845
|
+
}>(`/v4/agents${QS.query(QS.explode({
|
|
2058
2846
|
filters,
|
|
2059
2847
|
is_public: isPublic
|
|
2060
2848
|
}))}`, {
|