@crestal/nation-sdk 0.1.20 → 0.1.21
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/README.md +2 -11
- package/api.ts +6 -707
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1 -322
- package/dist/api.js +92 -942
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentApi.md +0 -503
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.21
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2312,44 +2312,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2312
2312
|
|
|
2313
2313
|
|
|
2314
2314
|
|
|
2315
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2316
|
-
|
|
2317
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2318
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2319
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2320
|
-
localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
|
|
2321
|
-
|
|
2322
|
-
return {
|
|
2323
|
-
url: toPathString(localVarUrlObj),
|
|
2324
|
-
options: localVarRequestOptions,
|
|
2325
|
-
};
|
|
2326
|
-
},
|
|
2327
|
-
/**
|
|
2328
|
-
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2329
|
-
* @summary Create Agent
|
|
2330
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
2331
|
-
* @param {*} [options] Override http request option.
|
|
2332
|
-
* @throws {RequiredError}
|
|
2333
|
-
*/
|
|
2334
|
-
createAgent_1: async (agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2335
|
-
const localVarPath = `/agents`;
|
|
2336
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2337
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2338
|
-
let baseOptions;
|
|
2339
|
-
if (configuration) {
|
|
2340
|
-
baseOptions = configuration.baseOptions;
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2344
|
-
const localVarHeaderParameter = {} as any;
|
|
2345
|
-
const localVarQueryParameter = {} as any;
|
|
2346
|
-
|
|
2347
|
-
// authentication HTTPBearer required
|
|
2348
|
-
// http bearer authentication required
|
|
2349
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
2315
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2354
2316
|
|
|
2355
2317
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2391,44 +2353,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2391
2353
|
|
|
2392
2354
|
|
|
2393
2355
|
|
|
2394
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2395
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2396
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2397
|
-
|
|
2398
|
-
return {
|
|
2399
|
-
url: toPathString(localVarUrlObj),
|
|
2400
|
-
options: localVarRequestOptions,
|
|
2401
|
-
};
|
|
2402
|
-
},
|
|
2403
|
-
/**
|
|
2404
|
-
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2405
|
-
* @summary Export Agent
|
|
2406
|
-
* @param {string} agentId ID of the agent to export
|
|
2407
|
-
* @param {*} [options] Override http request option.
|
|
2408
|
-
* @throws {RequiredError}
|
|
2409
|
-
*/
|
|
2410
|
-
exportAgent_2: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2411
|
-
// verify required parameter 'agentId' is not null or undefined
|
|
2412
|
-
assertParamExists('exportAgent_2', 'agentId', agentId)
|
|
2413
|
-
const localVarPath = `/agents/{agent_id}/export`
|
|
2414
|
-
.replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
|
|
2415
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2416
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2417
|
-
let baseOptions;
|
|
2418
|
-
if (configuration) {
|
|
2419
|
-
baseOptions = configuration.baseOptions;
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2423
|
-
const localVarHeaderParameter = {} as any;
|
|
2424
|
-
const localVarQueryParameter = {} as any;
|
|
2425
|
-
|
|
2426
|
-
// authentication HTTPBearer required
|
|
2427
|
-
// http bearer authentication required
|
|
2428
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
2356
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2433
2357
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2434
2358
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2497,40 +2421,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2497
2421
|
|
|
2498
2422
|
|
|
2499
2423
|
|
|
2500
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2501
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2502
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2503
|
-
|
|
2504
|
-
return {
|
|
2505
|
-
url: toPathString(localVarUrlObj),
|
|
2506
|
-
options: localVarRequestOptions,
|
|
2507
|
-
};
|
|
2508
|
-
},
|
|
2509
|
-
/**
|
|
2510
|
-
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2511
|
-
* @summary Get Agent
|
|
2512
|
-
* @param {string} agentId ID of the agent to retrieve
|
|
2513
|
-
* @param {*} [options] Override http request option.
|
|
2514
|
-
* @throws {RequiredError}
|
|
2515
|
-
*/
|
|
2516
|
-
getAgent_3: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2517
|
-
// verify required parameter 'agentId' is not null or undefined
|
|
2518
|
-
assertParamExists('getAgent_3', 'agentId', agentId)
|
|
2519
|
-
const localVarPath = `/agents/{agent_id}`
|
|
2520
|
-
.replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
|
|
2521
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2522
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2523
|
-
let baseOptions;
|
|
2524
|
-
if (configuration) {
|
|
2525
|
-
baseOptions = configuration.baseOptions;
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2529
|
-
const localVarHeaderParameter = {} as any;
|
|
2530
|
-
const localVarQueryParameter = {} as any;
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
2424
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2535
2425
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2536
2426
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2576,51 +2466,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2576
2466
|
|
|
2577
2467
|
|
|
2578
2468
|
|
|
2579
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2580
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2581
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2582
|
-
|
|
2583
|
-
return {
|
|
2584
|
-
url: toPathString(localVarUrlObj),
|
|
2585
|
-
options: localVarRequestOptions,
|
|
2586
|
-
};
|
|
2587
|
-
},
|
|
2588
|
-
/**
|
|
2589
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2590
|
-
* @summary Get Agents
|
|
2591
|
-
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2592
|
-
* @param {string | null} [cursor] Cursor for pagination
|
|
2593
|
-
* @param {number} [limit] Maximum number of agents to return
|
|
2594
|
-
* @param {*} [options] Override http request option.
|
|
2595
|
-
* @throws {RequiredError}
|
|
2596
|
-
*/
|
|
2597
|
-
getAgents_4: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2598
|
-
const localVarPath = `/agents`;
|
|
2599
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2600
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2601
|
-
let baseOptions;
|
|
2602
|
-
if (configuration) {
|
|
2603
|
-
baseOptions = configuration.baseOptions;
|
|
2604
|
-
}
|
|
2605
|
-
|
|
2606
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2607
|
-
const localVarHeaderParameter = {} as any;
|
|
2608
|
-
const localVarQueryParameter = {} as any;
|
|
2609
|
-
|
|
2610
|
-
if (sort !== undefined) {
|
|
2611
|
-
localVarQueryParameter['sort'] = sort;
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
if (cursor !== undefined) {
|
|
2615
|
-
localVarQueryParameter['cursor'] = cursor;
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
if (limit !== undefined) {
|
|
2619
|
-
localVarQueryParameter['limit'] = limit;
|
|
2620
|
-
}
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
2469
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2625
2470
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2626
2471
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2667,55 +2512,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2667
2512
|
}
|
|
2668
2513
|
|
|
2669
2514
|
|
|
2670
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2671
|
-
|
|
2672
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2673
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2674
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2675
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
2676
|
-
|
|
2677
|
-
return {
|
|
2678
|
-
url: toPathString(localVarUrlObj),
|
|
2679
|
-
options: localVarRequestOptions,
|
|
2680
|
-
};
|
|
2681
|
-
},
|
|
2682
|
-
/**
|
|
2683
|
-
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2684
|
-
* @summary Import Agent
|
|
2685
|
-
* @param {string} agentId
|
|
2686
|
-
* @param {File} file YAML file containing agent configuration
|
|
2687
|
-
* @param {*} [options] Override http request option.
|
|
2688
|
-
* @throws {RequiredError}
|
|
2689
|
-
*/
|
|
2690
|
-
importAgent_5: async (agentId: string, file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2691
|
-
// verify required parameter 'agentId' is not null or undefined
|
|
2692
|
-
assertParamExists('importAgent_5', 'agentId', agentId)
|
|
2693
|
-
// verify required parameter 'file' is not null or undefined
|
|
2694
|
-
assertParamExists('importAgent_5', 'file', file)
|
|
2695
|
-
const localVarPath = `/agents/{agent_id}/import`
|
|
2696
|
-
.replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
|
|
2697
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2698
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2699
|
-
let baseOptions;
|
|
2700
|
-
if (configuration) {
|
|
2701
|
-
baseOptions = configuration.baseOptions;
|
|
2702
|
-
}
|
|
2703
|
-
|
|
2704
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
2705
|
-
const localVarHeaderParameter = {} as any;
|
|
2706
|
-
const localVarQueryParameter = {} as any;
|
|
2707
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
2708
|
-
|
|
2709
|
-
// authentication HTTPBearer required
|
|
2710
|
-
// http bearer authentication required
|
|
2711
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
if (file !== undefined) {
|
|
2715
|
-
localVarFormParams.append('file', file as any);
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
2515
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2720
2516
|
|
|
2721
2517
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2758,48 +2554,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2758
2554
|
|
|
2759
2555
|
|
|
2760
2556
|
|
|
2761
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2762
|
-
|
|
2763
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2764
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2765
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2766
|
-
localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
|
|
2767
|
-
|
|
2768
|
-
return {
|
|
2769
|
-
url: toPathString(localVarUrlObj),
|
|
2770
|
-
options: localVarRequestOptions,
|
|
2771
|
-
};
|
|
2772
|
-
},
|
|
2773
|
-
/**
|
|
2774
|
-
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2775
|
-
* @summary Override Agent
|
|
2776
|
-
* @param {string} agentId ID of the agent to update
|
|
2777
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
2778
|
-
* @param {*} [options] Override http request option.
|
|
2779
|
-
* @throws {RequiredError}
|
|
2780
|
-
*/
|
|
2781
|
-
overrideAgent_6: async (agentId: string, agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2782
|
-
// verify required parameter 'agentId' is not null or undefined
|
|
2783
|
-
assertParamExists('overrideAgent_6', 'agentId', agentId)
|
|
2784
|
-
const localVarPath = `/agents/{agent_id}`
|
|
2785
|
-
.replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
|
|
2786
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2787
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2788
|
-
let baseOptions;
|
|
2789
|
-
if (configuration) {
|
|
2790
|
-
baseOptions = configuration.baseOptions;
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
2794
|
-
const localVarHeaderParameter = {} as any;
|
|
2795
|
-
const localVarQueryParameter = {} as any;
|
|
2796
|
-
|
|
2797
|
-
// authentication HTTPBearer required
|
|
2798
|
-
// http bearer authentication required
|
|
2799
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
2557
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2804
2558
|
|
|
2805
2559
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2842,48 +2596,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2842
2596
|
|
|
2843
2597
|
|
|
2844
2598
|
|
|
2845
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2846
|
-
|
|
2847
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2848
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2849
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2850
|
-
localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
|
|
2851
|
-
|
|
2852
|
-
return {
|
|
2853
|
-
url: toPathString(localVarUrlObj),
|
|
2854
|
-
options: localVarRequestOptions,
|
|
2855
|
-
};
|
|
2856
|
-
},
|
|
2857
|
-
/**
|
|
2858
|
-
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2859
|
-
* @summary Update Agent
|
|
2860
|
-
* @param {string} agentId ID of the agent to update
|
|
2861
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
2862
|
-
* @param {*} [options] Override http request option.
|
|
2863
|
-
* @throws {RequiredError}
|
|
2864
|
-
*/
|
|
2865
|
-
updateAgent_7: async (agentId: string, agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2866
|
-
// verify required parameter 'agentId' is not null or undefined
|
|
2867
|
-
assertParamExists('updateAgent_7', 'agentId', agentId)
|
|
2868
|
-
const localVarPath = `/agents/{agent_id}`
|
|
2869
|
-
.replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
|
|
2870
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2871
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2872
|
-
let baseOptions;
|
|
2873
|
-
if (configuration) {
|
|
2874
|
-
baseOptions = configuration.baseOptions;
|
|
2875
|
-
}
|
|
2876
|
-
|
|
2877
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2878
|
-
const localVarHeaderParameter = {} as any;
|
|
2879
|
-
const localVarQueryParameter = {} as any;
|
|
2880
|
-
|
|
2881
|
-
// authentication HTTPBearer required
|
|
2882
|
-
// http bearer authentication required
|
|
2883
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
2599
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2888
2600
|
|
|
2889
2601
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2922,44 +2634,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2922
2634
|
|
|
2923
2635
|
|
|
2924
2636
|
|
|
2925
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2926
|
-
|
|
2927
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2928
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2929
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2930
|
-
localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
|
|
2931
|
-
|
|
2932
|
-
return {
|
|
2933
|
-
url: toPathString(localVarUrlObj),
|
|
2934
|
-
options: localVarRequestOptions,
|
|
2935
|
-
};
|
|
2936
|
-
},
|
|
2937
|
-
/**
|
|
2938
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2939
|
-
* @summary Validate Agent Create
|
|
2940
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
2941
|
-
* @param {*} [options] Override http request option.
|
|
2942
|
-
* @throws {RequiredError}
|
|
2943
|
-
*/
|
|
2944
|
-
validateAgentCreate_8: async (agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2945
|
-
const localVarPath = `/agent/validate`;
|
|
2946
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2947
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2948
|
-
let baseOptions;
|
|
2949
|
-
if (configuration) {
|
|
2950
|
-
baseOptions = configuration.baseOptions;
|
|
2951
|
-
}
|
|
2952
|
-
|
|
2953
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2954
|
-
const localVarHeaderParameter = {} as any;
|
|
2955
|
-
const localVarQueryParameter = {} as any;
|
|
2956
|
-
|
|
2957
|
-
// authentication HTTPBearer required
|
|
2958
|
-
// http bearer authentication required
|
|
2959
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
2637
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2964
2638
|
|
|
2965
2639
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3002,48 +2676,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3002
2676
|
|
|
3003
2677
|
|
|
3004
2678
|
|
|
3005
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3006
|
-
|
|
3007
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3008
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3009
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3010
|
-
localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
|
|
3011
|
-
|
|
3012
|
-
return {
|
|
3013
|
-
url: toPathString(localVarUrlObj),
|
|
3014
|
-
options: localVarRequestOptions,
|
|
3015
|
-
};
|
|
3016
|
-
},
|
|
3017
|
-
/**
|
|
3018
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3019
|
-
* @summary Validate Agent Update
|
|
3020
|
-
* @param {string} agentId Agent ID
|
|
3021
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3022
|
-
* @param {*} [options] Override http request option.
|
|
3023
|
-
* @throws {RequiredError}
|
|
3024
|
-
*/
|
|
3025
|
-
validateAgentUpdate_9: async (agentId: string, agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3026
|
-
// verify required parameter 'agentId' is not null or undefined
|
|
3027
|
-
assertParamExists('validateAgentUpdate_9', 'agentId', agentId)
|
|
3028
|
-
const localVarPath = `/agents/{agent_id}/validate`
|
|
3029
|
-
.replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
|
|
3030
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3031
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3032
|
-
let baseOptions;
|
|
3033
|
-
if (configuration) {
|
|
3034
|
-
baseOptions = configuration.baseOptions;
|
|
3035
|
-
}
|
|
3036
|
-
|
|
3037
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3038
|
-
const localVarHeaderParameter = {} as any;
|
|
3039
|
-
const localVarQueryParameter = {} as any;
|
|
3040
|
-
|
|
3041
|
-
// authentication HTTPBearer required
|
|
3042
|
-
// http bearer authentication required
|
|
3043
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
2679
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3048
2680
|
|
|
3049
2681
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3074,35 +2706,9 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3074
2706
|
* @throws {RequiredError}
|
|
3075
2707
|
*/
|
|
3076
2708
|
async createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
|
|
3077
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createAgent(agentUpdate, options);
|
|
3078
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3079
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.createAgent']?.[localVarOperationServerIndex]?.url;
|
|
3080
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3081
|
-
},
|
|
3082
|
-
/**
|
|
3083
|
-
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
3084
|
-
* @summary Create Agent
|
|
3085
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3086
|
-
* @param {*} [options] Override http request option.
|
|
3087
|
-
* @throws {RequiredError}
|
|
3088
|
-
*/
|
|
3089
|
-
async createAgent_1(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
|
|
3090
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createAgent_1(agentUpdate, options);
|
|
3091
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3092
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.createAgent_1']?.[localVarOperationServerIndex]?.url;
|
|
3093
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3094
|
-
},
|
|
3095
|
-
/**
|
|
3096
|
-
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3097
|
-
* @summary Export Agent
|
|
3098
|
-
* @param {string} agentId ID of the agent to export
|
|
3099
|
-
* @param {*} [options] Override http request option.
|
|
3100
|
-
* @throws {RequiredError}
|
|
3101
|
-
*/
|
|
3102
|
-
async exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3103
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.exportAgent(agentId, options);
|
|
2709
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAgent(agentUpdate, options);
|
|
3104
2710
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3105
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.
|
|
2711
|
+
const localVarOperationServerBasePath = operationServerMap['AgentApi.createAgent']?.[localVarOperationServerIndex]?.url;
|
|
3106
2712
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3107
2713
|
},
|
|
3108
2714
|
/**
|
|
@@ -3112,10 +2718,10 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3112
2718
|
* @param {*} [options] Override http request option.
|
|
3113
2719
|
* @throws {RequiredError}
|
|
3114
2720
|
*/
|
|
3115
|
-
async
|
|
3116
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2721
|
+
async exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
2722
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportAgent(agentId, options);
|
|
3117
2723
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3118
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.
|
|
2724
|
+
const localVarOperationServerBasePath = operationServerMap['AgentApi.exportAgent']?.[localVarOperationServerIndex]?.url;
|
|
3119
2725
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3120
2726
|
},
|
|
3121
2727
|
/**
|
|
@@ -3144,19 +2750,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3144
2750
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentStatistics']?.[localVarOperationServerIndex]?.url;
|
|
3145
2751
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3146
2752
|
},
|
|
3147
|
-
/**
|
|
3148
|
-
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3149
|
-
* @summary Get Agent
|
|
3150
|
-
* @param {string} agentId ID of the agent to retrieve
|
|
3151
|
-
* @param {*} [options] Override http request option.
|
|
3152
|
-
* @throws {RequiredError}
|
|
3153
|
-
*/
|
|
3154
|
-
async getAgent_3(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3155
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgent_3(agentId, options);
|
|
3156
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3157
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgent_3']?.[localVarOperationServerIndex]?.url;
|
|
3158
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3159
|
-
},
|
|
3160
2753
|
/**
|
|
3161
2754
|
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3162
2755
|
* @summary Get Agents
|
|
@@ -3172,21 +2765,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3172
2765
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
|
|
3173
2766
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3174
2767
|
},
|
|
3175
|
-
/**
|
|
3176
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3177
|
-
* @summary Get Agents
|
|
3178
|
-
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3179
|
-
* @param {string | null} [cursor] Cursor for pagination
|
|
3180
|
-
* @param {number} [limit] Maximum number of agents to return
|
|
3181
|
-
* @param {*} [options] Override http request option.
|
|
3182
|
-
* @throws {RequiredError}
|
|
3183
|
-
*/
|
|
3184
|
-
async getAgents_4(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
|
|
3185
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents_4(sort, cursor, limit, options);
|
|
3186
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3187
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents_4']?.[localVarOperationServerIndex]?.url;
|
|
3188
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3189
|
-
},
|
|
3190
2768
|
/**
|
|
3191
2769
|
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
3192
2770
|
* @summary Import Agent
|
|
@@ -3201,20 +2779,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3201
2779
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.importAgent']?.[localVarOperationServerIndex]?.url;
|
|
3202
2780
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3203
2781
|
},
|
|
3204
|
-
/**
|
|
3205
|
-
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
3206
|
-
* @summary Import Agent
|
|
3207
|
-
* @param {string} agentId
|
|
3208
|
-
* @param {File} file YAML file containing agent configuration
|
|
3209
|
-
* @param {*} [options] Override http request option.
|
|
3210
|
-
* @throws {RequiredError}
|
|
3211
|
-
*/
|
|
3212
|
-
async importAgent_5(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
3213
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.importAgent_5(agentId, file, options);
|
|
3214
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3215
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.importAgent_5']?.[localVarOperationServerIndex]?.url;
|
|
3216
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3217
|
-
},
|
|
3218
2782
|
/**
|
|
3219
2783
|
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3220
2784
|
* @summary Override Agent
|
|
@@ -3229,20 +2793,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3229
2793
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.overrideAgent']?.[localVarOperationServerIndex]?.url;
|
|
3230
2794
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3231
2795
|
},
|
|
3232
|
-
/**
|
|
3233
|
-
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3234
|
-
* @summary Override Agent
|
|
3235
|
-
* @param {string} agentId ID of the agent to update
|
|
3236
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3237
|
-
* @param {*} [options] Override http request option.
|
|
3238
|
-
* @throws {RequiredError}
|
|
3239
|
-
*/
|
|
3240
|
-
async overrideAgent_6(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3241
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.overrideAgent_6(agentId, agentUpdate, options);
|
|
3242
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3243
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.overrideAgent_6']?.[localVarOperationServerIndex]?.url;
|
|
3244
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3245
|
-
},
|
|
3246
2796
|
/**
|
|
3247
2797
|
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3248
2798
|
* @summary Update Agent
|
|
@@ -3257,20 +2807,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3257
2807
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.updateAgent']?.[localVarOperationServerIndex]?.url;
|
|
3258
2808
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3259
2809
|
},
|
|
3260
|
-
/**
|
|
3261
|
-
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3262
|
-
* @summary Update Agent
|
|
3263
|
-
* @param {string} agentId ID of the agent to update
|
|
3264
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3265
|
-
* @param {*} [options] Override http request option.
|
|
3266
|
-
* @throws {RequiredError}
|
|
3267
|
-
*/
|
|
3268
|
-
async updateAgent_7(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3269
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAgent_7(agentId, agentUpdate, options);
|
|
3270
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3271
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.updateAgent_7']?.[localVarOperationServerIndex]?.url;
|
|
3272
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3273
|
-
},
|
|
3274
2810
|
/**
|
|
3275
2811
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3276
2812
|
* @summary Validate Agent Create
|
|
@@ -3284,19 +2820,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3284
2820
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.validateAgentCreate']?.[localVarOperationServerIndex]?.url;
|
|
3285
2821
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3286
2822
|
},
|
|
3287
|
-
/**
|
|
3288
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3289
|
-
* @summary Validate Agent Create
|
|
3290
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3291
|
-
* @param {*} [options] Override http request option.
|
|
3292
|
-
* @throws {RequiredError}
|
|
3293
|
-
*/
|
|
3294
|
-
async validateAgentCreate_8(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3295
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAgentCreate_8(agentUpdate, options);
|
|
3296
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3297
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.validateAgentCreate_8']?.[localVarOperationServerIndex]?.url;
|
|
3298
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3299
|
-
},
|
|
3300
2823
|
/**
|
|
3301
2824
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3302
2825
|
* @summary Validate Agent Update
|
|
@@ -3311,20 +2834,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3311
2834
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.validateAgentUpdate']?.[localVarOperationServerIndex]?.url;
|
|
3312
2835
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3313
2836
|
},
|
|
3314
|
-
/**
|
|
3315
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3316
|
-
* @summary Validate Agent Update
|
|
3317
|
-
* @param {string} agentId Agent ID
|
|
3318
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3319
|
-
* @param {*} [options] Override http request option.
|
|
3320
|
-
* @throws {RequiredError}
|
|
3321
|
-
*/
|
|
3322
|
-
async validateAgentUpdate_9(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3323
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAgentUpdate_9(agentId, agentUpdate, options);
|
|
3324
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3325
|
-
const localVarOperationServerBasePath = operationServerMap['AgentApi.validateAgentUpdate_9']?.[localVarOperationServerIndex]?.url;
|
|
3326
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3327
|
-
},
|
|
3328
2837
|
}
|
|
3329
2838
|
};
|
|
3330
2839
|
|
|
@@ -3345,16 +2854,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3345
2854
|
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
|
|
3346
2855
|
return localVarFp.createAgent(agentUpdate, options).then((request) => request(axios, basePath));
|
|
3347
2856
|
},
|
|
3348
|
-
/**
|
|
3349
|
-
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
3350
|
-
* @summary Create Agent
|
|
3351
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3352
|
-
* @param {*} [options] Override http request option.
|
|
3353
|
-
* @throws {RequiredError}
|
|
3354
|
-
*/
|
|
3355
|
-
createAgent_1(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
|
|
3356
|
-
return localVarFp.createAgent_1(agentUpdate, options).then((request) => request(axios, basePath));
|
|
3357
|
-
},
|
|
3358
2857
|
/**
|
|
3359
2858
|
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3360
2859
|
* @summary Export Agent
|
|
@@ -3365,16 +2864,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3365
2864
|
exportAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3366
2865
|
return localVarFp.exportAgent(agentId, options).then((request) => request(axios, basePath));
|
|
3367
2866
|
},
|
|
3368
|
-
/**
|
|
3369
|
-
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3370
|
-
* @summary Export Agent
|
|
3371
|
-
* @param {string} agentId ID of the agent to export
|
|
3372
|
-
* @param {*} [options] Override http request option.
|
|
3373
|
-
* @throws {RequiredError}
|
|
3374
|
-
*/
|
|
3375
|
-
exportAgent_2(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3376
|
-
return localVarFp.exportAgent_2(agentId, options).then((request) => request(axios, basePath));
|
|
3377
|
-
},
|
|
3378
2867
|
/**
|
|
3379
2868
|
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3380
2869
|
* @summary Get Agent
|
|
@@ -3395,16 +2884,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3395
2884
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatisticsResponse> {
|
|
3396
2885
|
return localVarFp.getAgentStatistics(aid, options).then((request) => request(axios, basePath));
|
|
3397
2886
|
},
|
|
3398
|
-
/**
|
|
3399
|
-
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3400
|
-
* @summary Get Agent
|
|
3401
|
-
* @param {string} agentId ID of the agent to retrieve
|
|
3402
|
-
* @param {*} [options] Override http request option.
|
|
3403
|
-
* @throws {RequiredError}
|
|
3404
|
-
*/
|
|
3405
|
-
getAgent_3(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3406
|
-
return localVarFp.getAgent_3(agentId, options).then((request) => request(axios, basePath));
|
|
3407
|
-
},
|
|
3408
2887
|
/**
|
|
3409
2888
|
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3410
2889
|
* @summary Get Agents
|
|
@@ -3417,18 +2896,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3417
2896
|
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
3418
2897
|
return localVarFp.getAgents(sort, cursor, limit, options).then((request) => request(axios, basePath));
|
|
3419
2898
|
},
|
|
3420
|
-
/**
|
|
3421
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3422
|
-
* @summary Get Agents
|
|
3423
|
-
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3424
|
-
* @param {string | null} [cursor] Cursor for pagination
|
|
3425
|
-
* @param {number} [limit] Maximum number of agents to return
|
|
3426
|
-
* @param {*} [options] Override http request option.
|
|
3427
|
-
* @throws {RequiredError}
|
|
3428
|
-
*/
|
|
3429
|
-
getAgents_4(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
3430
|
-
return localVarFp.getAgents_4(sort, cursor, limit, options).then((request) => request(axios, basePath));
|
|
3431
|
-
},
|
|
3432
2899
|
/**
|
|
3433
2900
|
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
3434
2901
|
* @summary Import Agent
|
|
@@ -3440,17 +2907,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3440
2907
|
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
3441
2908
|
return localVarFp.importAgent(agentId, file, options).then((request) => request(axios, basePath));
|
|
3442
2909
|
},
|
|
3443
|
-
/**
|
|
3444
|
-
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
3445
|
-
* @summary Import Agent
|
|
3446
|
-
* @param {string} agentId
|
|
3447
|
-
* @param {File} file YAML file containing agent configuration
|
|
3448
|
-
* @param {*} [options] Override http request option.
|
|
3449
|
-
* @throws {RequiredError}
|
|
3450
|
-
*/
|
|
3451
|
-
importAgent_5(agentId: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
3452
|
-
return localVarFp.importAgent_5(agentId, file, options).then((request) => request(axios, basePath));
|
|
3453
|
-
},
|
|
3454
2910
|
/**
|
|
3455
2911
|
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3456
2912
|
* @summary Override Agent
|
|
@@ -3462,17 +2918,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3462
2918
|
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3463
2919
|
return localVarFp.overrideAgent(agentId, agentUpdate, options).then((request) => request(axios, basePath));
|
|
3464
2920
|
},
|
|
3465
|
-
/**
|
|
3466
|
-
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3467
|
-
* @summary Override Agent
|
|
3468
|
-
* @param {string} agentId ID of the agent to update
|
|
3469
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3470
|
-
* @param {*} [options] Override http request option.
|
|
3471
|
-
* @throws {RequiredError}
|
|
3472
|
-
*/
|
|
3473
|
-
overrideAgent_6(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3474
|
-
return localVarFp.overrideAgent_6(agentId, agentUpdate, options).then((request) => request(axios, basePath));
|
|
3475
|
-
},
|
|
3476
2921
|
/**
|
|
3477
2922
|
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3478
2923
|
* @summary Update Agent
|
|
@@ -3484,17 +2929,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3484
2929
|
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3485
2930
|
return localVarFp.updateAgent(agentId, agentUpdate, options).then((request) => request(axios, basePath));
|
|
3486
2931
|
},
|
|
3487
|
-
/**
|
|
3488
|
-
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3489
|
-
* @summary Update Agent
|
|
3490
|
-
* @param {string} agentId ID of the agent to update
|
|
3491
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3492
|
-
* @param {*} [options] Override http request option.
|
|
3493
|
-
* @throws {RequiredError}
|
|
3494
|
-
*/
|
|
3495
|
-
updateAgent_7(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3496
|
-
return localVarFp.updateAgent_7(agentId, agentUpdate, options).then((request) => request(axios, basePath));
|
|
3497
|
-
},
|
|
3498
2932
|
/**
|
|
3499
2933
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3500
2934
|
* @summary Validate Agent Create
|
|
@@ -3505,16 +2939,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3505
2939
|
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3506
2940
|
return localVarFp.validateAgentCreate(agentUpdate, options).then((request) => request(axios, basePath));
|
|
3507
2941
|
},
|
|
3508
|
-
/**
|
|
3509
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3510
|
-
* @summary Validate Agent Create
|
|
3511
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3512
|
-
* @param {*} [options] Override http request option.
|
|
3513
|
-
* @throws {RequiredError}
|
|
3514
|
-
*/
|
|
3515
|
-
validateAgentCreate_8(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3516
|
-
return localVarFp.validateAgentCreate_8(agentUpdate, options).then((request) => request(axios, basePath));
|
|
3517
|
-
},
|
|
3518
2942
|
/**
|
|
3519
2943
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3520
2944
|
* @summary Validate Agent Update
|
|
@@ -3526,17 +2950,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3526
2950
|
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3527
2951
|
return localVarFp.validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(axios, basePath));
|
|
3528
2952
|
},
|
|
3529
|
-
/**
|
|
3530
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3531
|
-
* @summary Validate Agent Update
|
|
3532
|
-
* @param {string} agentId Agent ID
|
|
3533
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3534
|
-
* @param {*} [options] Override http request option.
|
|
3535
|
-
* @throws {RequiredError}
|
|
3536
|
-
*/
|
|
3537
|
-
validateAgentUpdate_9(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3538
|
-
return localVarFp.validateAgentUpdate_9(agentId, agentUpdate, options).then((request) => request(axios, basePath));
|
|
3539
|
-
},
|
|
3540
2953
|
};
|
|
3541
2954
|
};
|
|
3542
2955
|
|
|
@@ -3559,18 +2972,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3559
2972
|
return AgentApiFp(this.configuration).createAgent(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3560
2973
|
}
|
|
3561
2974
|
|
|
3562
|
-
/**
|
|
3563
|
-
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
3564
|
-
* @summary Create Agent
|
|
3565
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3566
|
-
* @param {*} [options] Override http request option.
|
|
3567
|
-
* @throws {RequiredError}
|
|
3568
|
-
* @memberof AgentApi
|
|
3569
|
-
*/
|
|
3570
|
-
public createAgent_1(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
3571
|
-
return AgentApiFp(this.configuration).createAgent_1(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3572
|
-
}
|
|
3573
|
-
|
|
3574
2975
|
/**
|
|
3575
2976
|
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3576
2977
|
* @summary Export Agent
|
|
@@ -3583,18 +2984,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3583
2984
|
return AgentApiFp(this.configuration).exportAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
3584
2985
|
}
|
|
3585
2986
|
|
|
3586
|
-
/**
|
|
3587
|
-
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3588
|
-
* @summary Export Agent
|
|
3589
|
-
* @param {string} agentId ID of the agent to export
|
|
3590
|
-
* @param {*} [options] Override http request option.
|
|
3591
|
-
* @throws {RequiredError}
|
|
3592
|
-
* @memberof AgentApi
|
|
3593
|
-
*/
|
|
3594
|
-
public exportAgent_2(agentId: string, options?: RawAxiosRequestConfig) {
|
|
3595
|
-
return AgentApiFp(this.configuration).exportAgent_2(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
3596
|
-
}
|
|
3597
|
-
|
|
3598
2987
|
/**
|
|
3599
2988
|
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3600
2989
|
* @summary Get Agent
|
|
@@ -3619,18 +3008,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3619
3008
|
return AgentApiFp(this.configuration).getAgentStatistics(aid, options).then((request) => request(this.axios, this.basePath));
|
|
3620
3009
|
}
|
|
3621
3010
|
|
|
3622
|
-
/**
|
|
3623
|
-
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3624
|
-
* @summary Get Agent
|
|
3625
|
-
* @param {string} agentId ID of the agent to retrieve
|
|
3626
|
-
* @param {*} [options] Override http request option.
|
|
3627
|
-
* @throws {RequiredError}
|
|
3628
|
-
* @memberof AgentApi
|
|
3629
|
-
*/
|
|
3630
|
-
public getAgent_3(agentId: string, options?: RawAxiosRequestConfig) {
|
|
3631
|
-
return AgentApiFp(this.configuration).getAgent_3(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
3632
|
-
}
|
|
3633
|
-
|
|
3634
3011
|
/**
|
|
3635
3012
|
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3636
3013
|
* @summary Get Agents
|
|
@@ -3645,20 +3022,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3645
3022
|
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3646
3023
|
}
|
|
3647
3024
|
|
|
3648
|
-
/**
|
|
3649
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3650
|
-
* @summary Get Agents
|
|
3651
|
-
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3652
|
-
* @param {string | null} [cursor] Cursor for pagination
|
|
3653
|
-
* @param {number} [limit] Maximum number of agents to return
|
|
3654
|
-
* @param {*} [options] Override http request option.
|
|
3655
|
-
* @throws {RequiredError}
|
|
3656
|
-
* @memberof AgentApi
|
|
3657
|
-
*/
|
|
3658
|
-
public getAgents_4(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3659
|
-
return AgentApiFp(this.configuration).getAgents_4(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3660
|
-
}
|
|
3661
|
-
|
|
3662
3025
|
/**
|
|
3663
3026
|
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
3664
3027
|
* @summary Import Agent
|
|
@@ -3672,19 +3035,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3672
3035
|
return AgentApiFp(this.configuration).importAgent(agentId, file, options).then((request) => request(this.axios, this.basePath));
|
|
3673
3036
|
}
|
|
3674
3037
|
|
|
3675
|
-
/**
|
|
3676
|
-
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
3677
|
-
* @summary Import Agent
|
|
3678
|
-
* @param {string} agentId
|
|
3679
|
-
* @param {File} file YAML file containing agent configuration
|
|
3680
|
-
* @param {*} [options] Override http request option.
|
|
3681
|
-
* @throws {RequiredError}
|
|
3682
|
-
* @memberof AgentApi
|
|
3683
|
-
*/
|
|
3684
|
-
public importAgent_5(agentId: string, file: File, options?: RawAxiosRequestConfig) {
|
|
3685
|
-
return AgentApiFp(this.configuration).importAgent_5(agentId, file, options).then((request) => request(this.axios, this.basePath));
|
|
3686
|
-
}
|
|
3687
|
-
|
|
3688
3038
|
/**
|
|
3689
3039
|
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3690
3040
|
* @summary Override Agent
|
|
@@ -3698,19 +3048,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3698
3048
|
return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3699
3049
|
}
|
|
3700
3050
|
|
|
3701
|
-
/**
|
|
3702
|
-
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3703
|
-
* @summary Override Agent
|
|
3704
|
-
* @param {string} agentId ID of the agent to update
|
|
3705
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3706
|
-
* @param {*} [options] Override http request option.
|
|
3707
|
-
* @throws {RequiredError}
|
|
3708
|
-
* @memberof AgentApi
|
|
3709
|
-
*/
|
|
3710
|
-
public overrideAgent_6(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
3711
|
-
return AgentApiFp(this.configuration).overrideAgent_6(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3712
|
-
}
|
|
3713
|
-
|
|
3714
3051
|
/**
|
|
3715
3052
|
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3716
3053
|
* @summary Update Agent
|
|
@@ -3724,19 +3061,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3724
3061
|
return AgentApiFp(this.configuration).updateAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3725
3062
|
}
|
|
3726
3063
|
|
|
3727
|
-
/**
|
|
3728
|
-
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3729
|
-
* @summary Update Agent
|
|
3730
|
-
* @param {string} agentId ID of the agent to update
|
|
3731
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3732
|
-
* @param {*} [options] Override http request option.
|
|
3733
|
-
* @throws {RequiredError}
|
|
3734
|
-
* @memberof AgentApi
|
|
3735
|
-
*/
|
|
3736
|
-
public updateAgent_7(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
3737
|
-
return AgentApiFp(this.configuration).updateAgent_7(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3738
|
-
}
|
|
3739
|
-
|
|
3740
3064
|
/**
|
|
3741
3065
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3742
3066
|
* @summary Validate Agent Create
|
|
@@ -3749,18 +3073,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3749
3073
|
return AgentApiFp(this.configuration).validateAgentCreate(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3750
3074
|
}
|
|
3751
3075
|
|
|
3752
|
-
/**
|
|
3753
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3754
|
-
* @summary Validate Agent Create
|
|
3755
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3756
|
-
* @param {*} [options] Override http request option.
|
|
3757
|
-
* @throws {RequiredError}
|
|
3758
|
-
* @memberof AgentApi
|
|
3759
|
-
*/
|
|
3760
|
-
public validateAgentCreate_8(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
3761
|
-
return AgentApiFp(this.configuration).validateAgentCreate_8(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3762
|
-
}
|
|
3763
|
-
|
|
3764
3076
|
/**
|
|
3765
3077
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3766
3078
|
* @summary Validate Agent Update
|
|
@@ -3773,19 +3085,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3773
3085
|
public validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
3774
3086
|
return AgentApiFp(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3775
3087
|
}
|
|
3776
|
-
|
|
3777
|
-
/**
|
|
3778
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3779
|
-
* @summary Validate Agent Update
|
|
3780
|
-
* @param {string} agentId Agent ID
|
|
3781
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3782
|
-
* @param {*} [options] Override http request option.
|
|
3783
|
-
* @throws {RequiredError}
|
|
3784
|
-
* @memberof AgentApi
|
|
3785
|
-
*/
|
|
3786
|
-
public validateAgentUpdate_9(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
3787
|
-
return AgentApiFp(this.configuration).validateAgentUpdate_9(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3788
|
-
}
|
|
3789
3088
|
}
|
|
3790
3089
|
|
|
3791
3090
|
|