@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/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.21
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.21
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.21
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.21
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/AgentApi.md
CHANGED
|
@@ -5,24 +5,15 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createAgent**](#createagent) | **POST** /agents | Create Agent|
|
|
8
|
-
|[**createAgent_0**](#createagent_0) | **POST** /agents | Create Agent|
|
|
9
8
|
|[**exportAgent**](#exportagent) | **GET** /agents/{agent_id}/export | Export Agent|
|
|
10
|
-
|[**exportAgent_0**](#exportagent_0) | **GET** /agents/{agent_id}/export | Export Agent|
|
|
11
9
|
|[**getAgent**](#getagent) | **GET** /agents/{agent_id} | Get Agent|
|
|
12
10
|
|[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
|
|
13
|
-
|[**getAgent_0**](#getagent_0) | **GET** /agents/{agent_id} | Get Agent|
|
|
14
11
|
|[**getAgents**](#getagents) | **GET** /agents | Get Agents|
|
|
15
|
-
|[**getAgents_0**](#getagents_0) | **GET** /agents | Get Agents|
|
|
16
12
|
|[**importAgent**](#importagent) | **PUT** /agents/{agent_id}/import | Import Agent|
|
|
17
|
-
|[**importAgent_0**](#importagent_0) | **PUT** /agents/{agent_id}/import | Import Agent|
|
|
18
13
|
|[**overrideAgent**](#overrideagent) | **PUT** /agents/{agent_id} | Override Agent|
|
|
19
|
-
|[**overrideAgent_0**](#overrideagent_0) | **PUT** /agents/{agent_id} | Override Agent|
|
|
20
14
|
|[**updateAgent**](#updateagent) | **PATCH** /agents/{agent_id} | Update Agent|
|
|
21
|
-
|[**updateAgent_0**](#updateagent_0) | **PATCH** /agents/{agent_id} | Update Agent|
|
|
22
15
|
|[**validateAgentCreate**](#validateagentcreate) | **POST** /agent/validate | Validate Agent Create|
|
|
23
|
-
|[**validateAgentCreate_0**](#validateagentcreate_0) | **POST** /agent/validate | Validate Agent Create|
|
|
24
16
|
|[**validateAgentUpdate**](#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update|
|
|
25
|
-
|[**validateAgentUpdate_0**](#validateagentupdate_0) | **POST** /agents/{agent_id}/validate | Validate Agent Update|
|
|
26
17
|
|
|
27
18
|
# **createAgent**
|
|
28
19
|
> AgentResponse createAgent()
|
|
@@ -55,62 +46,6 @@ const { status, data } = await apiInstance.createAgent(
|
|
|
55
46
|
| **agentUpdate** | **AgentUpdate**| | |
|
|
56
47
|
|
|
57
48
|
|
|
58
|
-
### Return type
|
|
59
|
-
|
|
60
|
-
**AgentResponse**
|
|
61
|
-
|
|
62
|
-
### Authorization
|
|
63
|
-
|
|
64
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
65
|
-
|
|
66
|
-
### HTTP request headers
|
|
67
|
-
|
|
68
|
-
- **Content-Type**: application/json
|
|
69
|
-
- **Accept**: application/json
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
### HTTP response details
|
|
73
|
-
| Status code | Description | Response headers |
|
|
74
|
-
|-------------|-------------|------------------|
|
|
75
|
-
|**200** | Agent already exists | - |
|
|
76
|
-
|**201** | Agent created | - |
|
|
77
|
-
|**400** | Other client errors except format error | - |
|
|
78
|
-
|**422** | Invalid agent configuration | - |
|
|
79
|
-
|**500** | Server error | - |
|
|
80
|
-
|
|
81
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
82
|
-
|
|
83
|
-
# **createAgent_0**
|
|
84
|
-
> AgentResponse createAgent_0()
|
|
85
|
-
|
|
86
|
-
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
|
|
87
|
-
|
|
88
|
-
### Example
|
|
89
|
-
|
|
90
|
-
```typescript
|
|
91
|
-
import {
|
|
92
|
-
AgentApi,
|
|
93
|
-
Configuration,
|
|
94
|
-
AgentUpdate
|
|
95
|
-
} from '@crestal/nation-sdk';
|
|
96
|
-
|
|
97
|
-
const configuration = new Configuration();
|
|
98
|
-
const apiInstance = new AgentApi(configuration);
|
|
99
|
-
|
|
100
|
-
let agentUpdate: AgentUpdate; // (optional)
|
|
101
|
-
|
|
102
|
-
const { status, data } = await apiInstance.createAgent_0(
|
|
103
|
-
agentUpdate
|
|
104
|
-
);
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Parameters
|
|
108
|
-
|
|
109
|
-
|Name | Type | Description | Notes|
|
|
110
|
-
|------------- | ------------- | ------------- | -------------|
|
|
111
|
-
| **agentUpdate** | **AgentUpdate**| | |
|
|
112
|
-
|
|
113
|
-
|
|
114
49
|
### Return type
|
|
115
50
|
|
|
116
51
|
**AgentResponse**
|
|
@@ -166,58 +101,6 @@ const { status, data } = await apiInstance.exportAgent(
|
|
|
166
101
|
| **agentId** | [**string**] | ID of the agent to export | defaults to undefined|
|
|
167
102
|
|
|
168
103
|
|
|
169
|
-
### Return type
|
|
170
|
-
|
|
171
|
-
**any**
|
|
172
|
-
|
|
173
|
-
### Authorization
|
|
174
|
-
|
|
175
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
176
|
-
|
|
177
|
-
### HTTP request headers
|
|
178
|
-
|
|
179
|
-
- **Content-Type**: Not defined
|
|
180
|
-
- **Accept**: application/json
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
### HTTP response details
|
|
184
|
-
| Status code | Description | Response headers |
|
|
185
|
-
|-------------|-------------|------------------|
|
|
186
|
-
|**200** | Successful Response | - |
|
|
187
|
-
|**422** | Validation Error | - |
|
|
188
|
-
|
|
189
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
190
|
-
|
|
191
|
-
# **exportAgent_0**
|
|
192
|
-
> any exportAgent_0()
|
|
193
|
-
|
|
194
|
-
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
|
|
195
|
-
|
|
196
|
-
### Example
|
|
197
|
-
|
|
198
|
-
```typescript
|
|
199
|
-
import {
|
|
200
|
-
AgentApi,
|
|
201
|
-
Configuration
|
|
202
|
-
} from '@crestal/nation-sdk';
|
|
203
|
-
|
|
204
|
-
const configuration = new Configuration();
|
|
205
|
-
const apiInstance = new AgentApi(configuration);
|
|
206
|
-
|
|
207
|
-
let agentId: string; //ID of the agent to export (default to undefined)
|
|
208
|
-
|
|
209
|
-
const { status, data } = await apiInstance.exportAgent_0(
|
|
210
|
-
agentId
|
|
211
|
-
);
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### Parameters
|
|
215
|
-
|
|
216
|
-
|Name | Type | Description | Notes|
|
|
217
|
-
|------------- | ------------- | ------------- | -------------|
|
|
218
|
-
| **agentId** | [**string**] | ID of the agent to export | defaults to undefined|
|
|
219
|
-
|
|
220
|
-
|
|
221
104
|
### Return type
|
|
222
105
|
|
|
223
106
|
**any**
|
|
@@ -336,58 +219,6 @@ No authorization required
|
|
|
336
219
|
- **Accept**: application/json
|
|
337
220
|
|
|
338
221
|
|
|
339
|
-
### HTTP response details
|
|
340
|
-
| Status code | Description | Response headers |
|
|
341
|
-
|-------------|-------------|------------------|
|
|
342
|
-
|**200** | Successful Response | - |
|
|
343
|
-
|**422** | Validation Error | - |
|
|
344
|
-
|
|
345
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
346
|
-
|
|
347
|
-
# **getAgent_0**
|
|
348
|
-
> any getAgent_0()
|
|
349
|
-
|
|
350
|
-
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
|
|
351
|
-
|
|
352
|
-
### Example
|
|
353
|
-
|
|
354
|
-
```typescript
|
|
355
|
-
import {
|
|
356
|
-
AgentApi,
|
|
357
|
-
Configuration
|
|
358
|
-
} from '@crestal/nation-sdk';
|
|
359
|
-
|
|
360
|
-
const configuration = new Configuration();
|
|
361
|
-
const apiInstance = new AgentApi(configuration);
|
|
362
|
-
|
|
363
|
-
let agentId: string; //ID of the agent to retrieve (default to undefined)
|
|
364
|
-
|
|
365
|
-
const { status, data } = await apiInstance.getAgent_0(
|
|
366
|
-
agentId
|
|
367
|
-
);
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
### Parameters
|
|
371
|
-
|
|
372
|
-
|Name | Type | Description | Notes|
|
|
373
|
-
|------------- | ------------- | ------------- | -------------|
|
|
374
|
-
| **agentId** | [**string**] | ID of the agent to retrieve | defaults to undefined|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
### Return type
|
|
378
|
-
|
|
379
|
-
**any**
|
|
380
|
-
|
|
381
|
-
### Authorization
|
|
382
|
-
|
|
383
|
-
No authorization required
|
|
384
|
-
|
|
385
|
-
### HTTP request headers
|
|
386
|
-
|
|
387
|
-
- **Content-Type**: Not defined
|
|
388
|
-
- **Accept**: application/json
|
|
389
|
-
|
|
390
|
-
|
|
391
222
|
### HTTP response details
|
|
392
223
|
| Status code | Description | Response headers |
|
|
393
224
|
|-------------|-------------|------------------|
|
|
@@ -432,64 +263,6 @@ const { status, data } = await apiInstance.getAgents(
|
|
|
432
263
|
| **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
|
|
433
264
|
|
|
434
265
|
|
|
435
|
-
### Return type
|
|
436
|
-
|
|
437
|
-
**AgentListResponse**
|
|
438
|
-
|
|
439
|
-
### Authorization
|
|
440
|
-
|
|
441
|
-
No authorization required
|
|
442
|
-
|
|
443
|
-
### HTTP request headers
|
|
444
|
-
|
|
445
|
-
- **Content-Type**: Not defined
|
|
446
|
-
- **Accept**: application/json
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
### HTTP response details
|
|
450
|
-
| Status code | Description | Response headers |
|
|
451
|
-
|-------------|-------------|------------------|
|
|
452
|
-
|**200** | Successful Response | - |
|
|
453
|
-
|**422** | Validation Error | - |
|
|
454
|
-
|
|
455
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
456
|
-
|
|
457
|
-
# **getAgents_0**
|
|
458
|
-
> AgentListResponse getAgents_0()
|
|
459
|
-
|
|
460
|
-
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
|
|
461
|
-
|
|
462
|
-
### Example
|
|
463
|
-
|
|
464
|
-
```typescript
|
|
465
|
-
import {
|
|
466
|
-
AgentApi,
|
|
467
|
-
Configuration
|
|
468
|
-
} from '@crestal/nation-sdk';
|
|
469
|
-
|
|
470
|
-
const configuration = new Configuration();
|
|
471
|
-
const apiInstance = new AgentApi(configuration);
|
|
472
|
-
|
|
473
|
-
let sort: AgentSortOption; //Sort order for agents list (optional) (default to undefined)
|
|
474
|
-
let cursor: string; //Cursor for pagination (optional) (default to undefined)
|
|
475
|
-
let limit: number; //Maximum number of agents to return (optional) (default to 20)
|
|
476
|
-
|
|
477
|
-
const { status, data } = await apiInstance.getAgents_0(
|
|
478
|
-
sort,
|
|
479
|
-
cursor,
|
|
480
|
-
limit
|
|
481
|
-
);
|
|
482
|
-
```
|
|
483
|
-
|
|
484
|
-
### Parameters
|
|
485
|
-
|
|
486
|
-
|Name | Type | Description | Notes|
|
|
487
|
-
|------------- | ------------- | ------------- | -------------|
|
|
488
|
-
| **sort** | **AgentSortOption** | Sort order for agents list | (optional) defaults to undefined|
|
|
489
|
-
| **cursor** | [**string**] | Cursor for pagination | (optional) defaults to undefined|
|
|
490
|
-
| **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
|
|
491
|
-
|
|
492
|
-
|
|
493
266
|
### Return type
|
|
494
267
|
|
|
495
268
|
**AgentListResponse**
|
|
@@ -545,61 +318,6 @@ const { status, data } = await apiInstance.importAgent(
|
|
|
545
318
|
| **file** | [**File**] | YAML file containing agent configuration | defaults to undefined|
|
|
546
319
|
|
|
547
320
|
|
|
548
|
-
### Return type
|
|
549
|
-
|
|
550
|
-
**string**
|
|
551
|
-
|
|
552
|
-
### Authorization
|
|
553
|
-
|
|
554
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
555
|
-
|
|
556
|
-
### HTTP request headers
|
|
557
|
-
|
|
558
|
-
- **Content-Type**: multipart/form-data
|
|
559
|
-
- **Accept**: text/plain, application/json
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
### HTTP response details
|
|
563
|
-
| Status code | Description | Response headers |
|
|
564
|
-
|-------------|-------------|------------------|
|
|
565
|
-
|**200** | Successful Response | - |
|
|
566
|
-
|**422** | Validation Error | - |
|
|
567
|
-
|
|
568
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
569
|
-
|
|
570
|
-
# **importAgent_0**
|
|
571
|
-
> string importAgent_0()
|
|
572
|
-
|
|
573
|
-
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
|
|
574
|
-
|
|
575
|
-
### Example
|
|
576
|
-
|
|
577
|
-
```typescript
|
|
578
|
-
import {
|
|
579
|
-
AgentApi,
|
|
580
|
-
Configuration
|
|
581
|
-
} from '@crestal/nation-sdk';
|
|
582
|
-
|
|
583
|
-
const configuration = new Configuration();
|
|
584
|
-
const apiInstance = new AgentApi(configuration);
|
|
585
|
-
|
|
586
|
-
let agentId: string; // (default to undefined)
|
|
587
|
-
let file: File; //YAML file containing agent configuration (default to undefined)
|
|
588
|
-
|
|
589
|
-
const { status, data } = await apiInstance.importAgent_0(
|
|
590
|
-
agentId,
|
|
591
|
-
file
|
|
592
|
-
);
|
|
593
|
-
```
|
|
594
|
-
|
|
595
|
-
### Parameters
|
|
596
|
-
|
|
597
|
-
|Name | Type | Description | Notes|
|
|
598
|
-
|------------- | ------------- | ------------- | -------------|
|
|
599
|
-
| **agentId** | [**string**] | | defaults to undefined|
|
|
600
|
-
| **file** | [**File**] | YAML file containing agent configuration | defaults to undefined|
|
|
601
|
-
|
|
602
|
-
|
|
603
321
|
### Return type
|
|
604
322
|
|
|
605
323
|
**string**
|
|
@@ -656,62 +374,6 @@ const { status, data } = await apiInstance.overrideAgent(
|
|
|
656
374
|
| **agentId** | [**string**] | ID of the agent to update | defaults to undefined|
|
|
657
375
|
|
|
658
376
|
|
|
659
|
-
### Return type
|
|
660
|
-
|
|
661
|
-
**any**
|
|
662
|
-
|
|
663
|
-
### Authorization
|
|
664
|
-
|
|
665
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
666
|
-
|
|
667
|
-
### HTTP request headers
|
|
668
|
-
|
|
669
|
-
- **Content-Type**: application/json
|
|
670
|
-
- **Accept**: application/json
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
### HTTP response details
|
|
674
|
-
| Status code | Description | Response headers |
|
|
675
|
-
|-------------|-------------|------------------|
|
|
676
|
-
|**200** | Successful Response | - |
|
|
677
|
-
|**422** | Validation Error | - |
|
|
678
|
-
|
|
679
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
680
|
-
|
|
681
|
-
# **overrideAgent_0**
|
|
682
|
-
> any overrideAgent_0()
|
|
683
|
-
|
|
684
|
-
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
|
|
685
|
-
|
|
686
|
-
### Example
|
|
687
|
-
|
|
688
|
-
```typescript
|
|
689
|
-
import {
|
|
690
|
-
AgentApi,
|
|
691
|
-
Configuration,
|
|
692
|
-
AgentUpdate
|
|
693
|
-
} from '@crestal/nation-sdk';
|
|
694
|
-
|
|
695
|
-
const configuration = new Configuration();
|
|
696
|
-
const apiInstance = new AgentApi(configuration);
|
|
697
|
-
|
|
698
|
-
let agentId: string; //ID of the agent to update (default to undefined)
|
|
699
|
-
let agentUpdate: AgentUpdate; // (optional)
|
|
700
|
-
|
|
701
|
-
const { status, data } = await apiInstance.overrideAgent_0(
|
|
702
|
-
agentId,
|
|
703
|
-
agentUpdate
|
|
704
|
-
);
|
|
705
|
-
```
|
|
706
|
-
|
|
707
|
-
### Parameters
|
|
708
|
-
|
|
709
|
-
|Name | Type | Description | Notes|
|
|
710
|
-
|------------- | ------------- | ------------- | -------------|
|
|
711
|
-
| **agentUpdate** | **AgentUpdate**| | |
|
|
712
|
-
| **agentId** | [**string**] | ID of the agent to update | defaults to undefined|
|
|
713
|
-
|
|
714
|
-
|
|
715
377
|
### Return type
|
|
716
378
|
|
|
717
379
|
**any**
|
|
@@ -768,62 +430,6 @@ const { status, data } = await apiInstance.updateAgent(
|
|
|
768
430
|
| **agentId** | [**string**] | ID of the agent to update | defaults to undefined|
|
|
769
431
|
|
|
770
432
|
|
|
771
|
-
### Return type
|
|
772
|
-
|
|
773
|
-
**any**
|
|
774
|
-
|
|
775
|
-
### Authorization
|
|
776
|
-
|
|
777
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
778
|
-
|
|
779
|
-
### HTTP request headers
|
|
780
|
-
|
|
781
|
-
- **Content-Type**: application/json
|
|
782
|
-
- **Accept**: application/json
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
### HTTP response details
|
|
786
|
-
| Status code | Description | Response headers |
|
|
787
|
-
|-------------|-------------|------------------|
|
|
788
|
-
|**200** | Successful Response | - |
|
|
789
|
-
|**422** | Validation Error | - |
|
|
790
|
-
|
|
791
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
792
|
-
|
|
793
|
-
# **updateAgent_0**
|
|
794
|
-
> any updateAgent_0()
|
|
795
|
-
|
|
796
|
-
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
|
|
797
|
-
|
|
798
|
-
### Example
|
|
799
|
-
|
|
800
|
-
```typescript
|
|
801
|
-
import {
|
|
802
|
-
AgentApi,
|
|
803
|
-
Configuration,
|
|
804
|
-
AgentUpdate
|
|
805
|
-
} from '@crestal/nation-sdk';
|
|
806
|
-
|
|
807
|
-
const configuration = new Configuration();
|
|
808
|
-
const apiInstance = new AgentApi(configuration);
|
|
809
|
-
|
|
810
|
-
let agentId: string; //ID of the agent to update (default to undefined)
|
|
811
|
-
let agentUpdate: AgentUpdate; // (optional)
|
|
812
|
-
|
|
813
|
-
const { status, data } = await apiInstance.updateAgent_0(
|
|
814
|
-
agentId,
|
|
815
|
-
agentUpdate
|
|
816
|
-
);
|
|
817
|
-
```
|
|
818
|
-
|
|
819
|
-
### Parameters
|
|
820
|
-
|
|
821
|
-
|Name | Type | Description | Notes|
|
|
822
|
-
|------------- | ------------- | ------------- | -------------|
|
|
823
|
-
| **agentUpdate** | **AgentUpdate**| | |
|
|
824
|
-
| **agentId** | [**string**] | ID of the agent to update | defaults to undefined|
|
|
825
|
-
|
|
826
|
-
|
|
827
433
|
### Return type
|
|
828
434
|
|
|
829
435
|
**any**
|
|
@@ -877,59 +483,6 @@ const { status, data } = await apiInstance.validateAgentCreate(
|
|
|
877
483
|
| **agentUpdate** | **AgentUpdate**| | |
|
|
878
484
|
|
|
879
485
|
|
|
880
|
-
### Return type
|
|
881
|
-
|
|
882
|
-
void (empty response body)
|
|
883
|
-
|
|
884
|
-
### Authorization
|
|
885
|
-
|
|
886
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
887
|
-
|
|
888
|
-
### HTTP request headers
|
|
889
|
-
|
|
890
|
-
- **Content-Type**: application/json
|
|
891
|
-
- **Accept**: application/json
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
### HTTP response details
|
|
895
|
-
| Status code | Description | Response headers |
|
|
896
|
-
|-------------|-------------|------------------|
|
|
897
|
-
|**204** | Successful Response | - |
|
|
898
|
-
|**422** | Validation Error | - |
|
|
899
|
-
|
|
900
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
901
|
-
|
|
902
|
-
# **validateAgentCreate_0**
|
|
903
|
-
> validateAgentCreate_0()
|
|
904
|
-
|
|
905
|
-
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
|
|
906
|
-
|
|
907
|
-
### Example
|
|
908
|
-
|
|
909
|
-
```typescript
|
|
910
|
-
import {
|
|
911
|
-
AgentApi,
|
|
912
|
-
Configuration,
|
|
913
|
-
AgentUpdate
|
|
914
|
-
} from '@crestal/nation-sdk';
|
|
915
|
-
|
|
916
|
-
const configuration = new Configuration();
|
|
917
|
-
const apiInstance = new AgentApi(configuration);
|
|
918
|
-
|
|
919
|
-
let agentUpdate: AgentUpdate; // (optional)
|
|
920
|
-
|
|
921
|
-
const { status, data } = await apiInstance.validateAgentCreate_0(
|
|
922
|
-
agentUpdate
|
|
923
|
-
);
|
|
924
|
-
```
|
|
925
|
-
|
|
926
|
-
### Parameters
|
|
927
|
-
|
|
928
|
-
|Name | Type | Description | Notes|
|
|
929
|
-
|------------- | ------------- | ------------- | -------------|
|
|
930
|
-
| **agentUpdate** | **AgentUpdate**| | |
|
|
931
|
-
|
|
932
|
-
|
|
933
486
|
### Return type
|
|
934
487
|
|
|
935
488
|
void (empty response body)
|
|
@@ -1008,59 +561,3 @@ void (empty response body)
|
|
|
1008
561
|
|
|
1009
562
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1010
563
|
|
|
1011
|
-
# **validateAgentUpdate_0**
|
|
1012
|
-
> validateAgentUpdate_0()
|
|
1013
|
-
|
|
1014
|
-
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
|
|
1015
|
-
|
|
1016
|
-
### Example
|
|
1017
|
-
|
|
1018
|
-
```typescript
|
|
1019
|
-
import {
|
|
1020
|
-
AgentApi,
|
|
1021
|
-
Configuration,
|
|
1022
|
-
AgentUpdate
|
|
1023
|
-
} from '@crestal/nation-sdk';
|
|
1024
|
-
|
|
1025
|
-
const configuration = new Configuration();
|
|
1026
|
-
const apiInstance = new AgentApi(configuration);
|
|
1027
|
-
|
|
1028
|
-
let agentId: string; //Agent ID (default to undefined)
|
|
1029
|
-
let agentUpdate: AgentUpdate; // (optional)
|
|
1030
|
-
|
|
1031
|
-
const { status, data } = await apiInstance.validateAgentUpdate_0(
|
|
1032
|
-
agentId,
|
|
1033
|
-
agentUpdate
|
|
1034
|
-
);
|
|
1035
|
-
```
|
|
1036
|
-
|
|
1037
|
-
### Parameters
|
|
1038
|
-
|
|
1039
|
-
|Name | Type | Description | Notes|
|
|
1040
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1041
|
-
| **agentUpdate** | **AgentUpdate**| | |
|
|
1042
|
-
| **agentId** | [**string**] | Agent ID | defaults to undefined|
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
### Return type
|
|
1046
|
-
|
|
1047
|
-
void (empty response body)
|
|
1048
|
-
|
|
1049
|
-
### Authorization
|
|
1050
|
-
|
|
1051
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
1052
|
-
|
|
1053
|
-
### HTTP request headers
|
|
1054
|
-
|
|
1055
|
-
- **Content-Type**: application/json
|
|
1056
|
-
- **Accept**: application/json
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
### HTTP response details
|
|
1060
|
-
| Status code | Description | Response headers |
|
|
1061
|
-
|-------------|-------------|------------------|
|
|
1062
|
-
|**204** | Successful Response | - |
|
|
1063
|
-
|**422** | Validation Error | - |
|
|
1064
|
-
|
|
1065
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1066
|
-
|
|
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**supports_presence_penalty** | **boolean** | | [optional] [default to true]
|
|
28
28
|
**api_base** | **string** | | [optional] [default to undefined]
|
|
29
29
|
**timeout** | **number** | | [optional] [default to 180]
|
|
30
|
-
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-17T08:51:32.738+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-17T08:51:32.738+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/index.ts
CHANGED