@crestal/nation-sdk 0.1.19 → 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/.openapi-generator/FILES +2 -0
- package/README.md +13 -4
- package/api.ts +652 -43
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +336 -33
- package/dist/api.js +726 -41
- 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 +409 -13
- package/docs/AgentListResponse.md +25 -0
- package/docs/AgentSortOption.md +13 -0
- package/docs/CreditEvent.md +2 -0
- package/docs/CreditEventWithAgent.md +2 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.21
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -87,6 +87,31 @@ export interface AgentExample {
|
|
|
87
87
|
*/
|
|
88
88
|
'prompt': string;
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
92
|
+
* @export
|
|
93
|
+
* @interface AgentListResponse
|
|
94
|
+
*/
|
|
95
|
+
export interface AgentListResponse {
|
|
96
|
+
/**
|
|
97
|
+
* List of agents
|
|
98
|
+
* @type {Array<AgentResponse>}
|
|
99
|
+
* @memberof AgentListResponse
|
|
100
|
+
*/
|
|
101
|
+
'data': Array<AgentResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates if there are more items
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof AgentListResponse
|
|
106
|
+
*/
|
|
107
|
+
'has_more': boolean;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof AgentListResponse
|
|
112
|
+
*/
|
|
113
|
+
'next_cursor'?: string | null;
|
|
114
|
+
}
|
|
90
115
|
/**
|
|
91
116
|
* Response model for Agent API.
|
|
92
117
|
* @export
|
|
@@ -319,6 +344,17 @@ export declare const AgentResponseWalletProviderEnum: {
|
|
|
319
344
|
readonly Cdp: "cdp";
|
|
320
345
|
};
|
|
321
346
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
347
|
+
/**
|
|
348
|
+
* Sort options for agents list.
|
|
349
|
+
* @export
|
|
350
|
+
* @enum {string}
|
|
351
|
+
*/
|
|
352
|
+
export declare const AgentSortOption: {
|
|
353
|
+
readonly CreatedAtDesc: "created_at desc";
|
|
354
|
+
readonly CreatedAtAsc: "created_at asc";
|
|
355
|
+
readonly UpdatedAtDesc: "updated_at desc";
|
|
356
|
+
};
|
|
357
|
+
export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
|
|
322
358
|
/**
|
|
323
359
|
* Response model for agent statistics.
|
|
324
360
|
* @export
|
|
@@ -1193,6 +1229,12 @@ export interface CreditEvent {
|
|
|
1193
1229
|
* @memberof CreditEvent
|
|
1194
1230
|
*/
|
|
1195
1231
|
'agent_id'?: string | null;
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
* @type {string}
|
|
1235
|
+
* @memberof CreditEvent
|
|
1236
|
+
*/
|
|
1237
|
+
'agent_wallet_address'?: string | null;
|
|
1196
1238
|
/**
|
|
1197
1239
|
*
|
|
1198
1240
|
* @type {string}
|
|
@@ -1446,6 +1488,12 @@ export interface CreditEventWithAgent {
|
|
|
1446
1488
|
* @memberof CreditEventWithAgent
|
|
1447
1489
|
*/
|
|
1448
1490
|
'agent_id'?: string | null;
|
|
1491
|
+
/**
|
|
1492
|
+
*
|
|
1493
|
+
* @type {string}
|
|
1494
|
+
* @memberof CreditEventWithAgent
|
|
1495
|
+
*/
|
|
1496
|
+
'agent_wallet_address'?: string | null;
|
|
1449
1497
|
/**
|
|
1450
1498
|
*
|
|
1451
1499
|
* @type {string}
|
|
@@ -2158,21 +2206,29 @@ export interface ValidationErrorLocInner {
|
|
|
2158
2206
|
*/
|
|
2159
2207
|
export declare const AgentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2160
2208
|
/**
|
|
2161
|
-
* Create a new agent
|
|
2162
|
-
* @summary Create
|
|
2163
|
-
* @param {AgentUpdate} agentUpdate
|
|
2209
|
+
* 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
|
|
2210
|
+
* @summary Create Agent
|
|
2211
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2164
2212
|
* @param {*} [options] Override http request option.
|
|
2165
2213
|
* @throws {RequiredError}
|
|
2166
2214
|
*/
|
|
2167
|
-
createAgent: (agentUpdate
|
|
2215
|
+
createAgent: (agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2168
2216
|
/**
|
|
2169
|
-
*
|
|
2170
|
-
* @summary
|
|
2171
|
-
* @param {string}
|
|
2217
|
+
* 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
|
|
2218
|
+
* @summary Export Agent
|
|
2219
|
+
* @param {string} agentId ID of the agent to export
|
|
2220
|
+
* @param {*} [options] Override http request option.
|
|
2221
|
+
* @throws {RequiredError}
|
|
2222
|
+
*/
|
|
2223
|
+
exportAgent: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2224
|
+
/**
|
|
2225
|
+
* 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
|
|
2226
|
+
* @summary Get Agent
|
|
2227
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2172
2228
|
* @param {*} [options] Override http request option.
|
|
2173
2229
|
* @throws {RequiredError}
|
|
2174
2230
|
*/
|
|
2175
|
-
|
|
2231
|
+
getAgent: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2176
2232
|
/**
|
|
2177
2233
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2178
2234
|
* @summary Get Agent Statistics
|
|
@@ -2181,6 +2237,60 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2181
2237
|
* @throws {RequiredError}
|
|
2182
2238
|
*/
|
|
2183
2239
|
getAgentStatistics: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2240
|
+
/**
|
|
2241
|
+
* 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
|
|
2242
|
+
* @summary Get Agents
|
|
2243
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2244
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2245
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2246
|
+
* @param {*} [options] Override http request option.
|
|
2247
|
+
* @throws {RequiredError}
|
|
2248
|
+
*/
|
|
2249
|
+
getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2250
|
+
/**
|
|
2251
|
+
* 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
|
|
2252
|
+
* @summary Import Agent
|
|
2253
|
+
* @param {string} agentId
|
|
2254
|
+
* @param {File} file YAML file containing agent configuration
|
|
2255
|
+
* @param {*} [options] Override http request option.
|
|
2256
|
+
* @throws {RequiredError}
|
|
2257
|
+
*/
|
|
2258
|
+
importAgent: (agentId: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2259
|
+
/**
|
|
2260
|
+
* 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
|
|
2261
|
+
* @summary Override Agent
|
|
2262
|
+
* @param {string} agentId ID of the agent to update
|
|
2263
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2264
|
+
* @param {*} [options] Override http request option.
|
|
2265
|
+
* @throws {RequiredError}
|
|
2266
|
+
*/
|
|
2267
|
+
overrideAgent: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2268
|
+
/**
|
|
2269
|
+
* 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
|
|
2270
|
+
* @summary Update Agent
|
|
2271
|
+
* @param {string} agentId ID of the agent to update
|
|
2272
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2273
|
+
* @param {*} [options] Override http request option.
|
|
2274
|
+
* @throws {RequiredError}
|
|
2275
|
+
*/
|
|
2276
|
+
updateAgent: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2277
|
+
/**
|
|
2278
|
+
* 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
|
|
2279
|
+
* @summary Validate Agent Create
|
|
2280
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2281
|
+
* @param {*} [options] Override http request option.
|
|
2282
|
+
* @throws {RequiredError}
|
|
2283
|
+
*/
|
|
2284
|
+
validateAgentCreate: (agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2285
|
+
/**
|
|
2286
|
+
* 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
|
|
2287
|
+
* @summary Validate Agent Update
|
|
2288
|
+
* @param {string} agentId Agent ID
|
|
2289
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
validateAgentUpdate: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2184
2294
|
};
|
|
2185
2295
|
/**
|
|
2186
2296
|
* AgentApi - functional programming interface
|
|
@@ -2188,21 +2298,29 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2188
2298
|
*/
|
|
2189
2299
|
export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
2190
2300
|
/**
|
|
2191
|
-
* Create a new agent
|
|
2192
|
-
* @summary Create
|
|
2193
|
-
* @param {AgentUpdate} agentUpdate
|
|
2301
|
+
* 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
|
|
2302
|
+
* @summary Create Agent
|
|
2303
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2194
2304
|
* @param {*} [options] Override http request option.
|
|
2195
2305
|
* @throws {RequiredError}
|
|
2196
2306
|
*/
|
|
2197
|
-
createAgent(agentUpdate
|
|
2307
|
+
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>>;
|
|
2198
2308
|
/**
|
|
2199
|
-
*
|
|
2200
|
-
* @summary
|
|
2201
|
-
* @param {string}
|
|
2309
|
+
* 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
|
|
2310
|
+
* @summary Export Agent
|
|
2311
|
+
* @param {string} agentId ID of the agent to export
|
|
2312
|
+
* @param {*} [options] Override http request option.
|
|
2313
|
+
* @throws {RequiredError}
|
|
2314
|
+
*/
|
|
2315
|
+
exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2316
|
+
/**
|
|
2317
|
+
* 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
|
|
2318
|
+
* @summary Get Agent
|
|
2319
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2202
2320
|
* @param {*} [options] Override http request option.
|
|
2203
2321
|
* @throws {RequiredError}
|
|
2204
2322
|
*/
|
|
2205
|
-
|
|
2323
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2206
2324
|
/**
|
|
2207
2325
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2208
2326
|
* @summary Get Agent Statistics
|
|
@@ -2211,6 +2329,60 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2211
2329
|
* @throws {RequiredError}
|
|
2212
2330
|
*/
|
|
2213
2331
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatisticsResponse>>;
|
|
2332
|
+
/**
|
|
2333
|
+
* 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
|
|
2334
|
+
* @summary Get Agents
|
|
2335
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2336
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2337
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2338
|
+
* @param {*} [options] Override http request option.
|
|
2339
|
+
* @throws {RequiredError}
|
|
2340
|
+
*/
|
|
2341
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
|
|
2342
|
+
/**
|
|
2343
|
+
* 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
|
|
2344
|
+
* @summary Import Agent
|
|
2345
|
+
* @param {string} agentId
|
|
2346
|
+
* @param {File} file YAML file containing agent configuration
|
|
2347
|
+
* @param {*} [options] Override http request option.
|
|
2348
|
+
* @throws {RequiredError}
|
|
2349
|
+
*/
|
|
2350
|
+
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
2351
|
+
/**
|
|
2352
|
+
* 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
|
|
2353
|
+
* @summary Override Agent
|
|
2354
|
+
* @param {string} agentId ID of the agent to update
|
|
2355
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2356
|
+
* @param {*} [options] Override http request option.
|
|
2357
|
+
* @throws {RequiredError}
|
|
2358
|
+
*/
|
|
2359
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2360
|
+
/**
|
|
2361
|
+
* 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
|
|
2362
|
+
* @summary Update Agent
|
|
2363
|
+
* @param {string} agentId ID of the agent to update
|
|
2364
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2365
|
+
* @param {*} [options] Override http request option.
|
|
2366
|
+
* @throws {RequiredError}
|
|
2367
|
+
*/
|
|
2368
|
+
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2369
|
+
/**
|
|
2370
|
+
* 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
|
|
2371
|
+
* @summary Validate Agent Create
|
|
2372
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2373
|
+
* @param {*} [options] Override http request option.
|
|
2374
|
+
* @throws {RequiredError}
|
|
2375
|
+
*/
|
|
2376
|
+
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2377
|
+
/**
|
|
2378
|
+
* 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
|
|
2379
|
+
* @summary Validate Agent Update
|
|
2380
|
+
* @param {string} agentId Agent ID
|
|
2381
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
*/
|
|
2385
|
+
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2214
2386
|
};
|
|
2215
2387
|
/**
|
|
2216
2388
|
* AgentApi - factory interface
|
|
@@ -2218,21 +2390,29 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2218
2390
|
*/
|
|
2219
2391
|
export declare const AgentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2220
2392
|
/**
|
|
2221
|
-
* Create a new agent
|
|
2222
|
-
* @summary Create
|
|
2223
|
-
* @param {AgentUpdate} agentUpdate
|
|
2393
|
+
* 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
|
|
2394
|
+
* @summary Create Agent
|
|
2395
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2224
2396
|
* @param {*} [options] Override http request option.
|
|
2225
2397
|
* @throws {RequiredError}
|
|
2226
2398
|
*/
|
|
2227
|
-
createAgent(agentUpdate
|
|
2399
|
+
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse>;
|
|
2228
2400
|
/**
|
|
2229
|
-
*
|
|
2230
|
-
* @summary
|
|
2231
|
-
* @param {string}
|
|
2401
|
+
* 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
|
|
2402
|
+
* @summary Export Agent
|
|
2403
|
+
* @param {string} agentId ID of the agent to export
|
|
2404
|
+
* @param {*} [options] Override http request option.
|
|
2405
|
+
* @throws {RequiredError}
|
|
2406
|
+
*/
|
|
2407
|
+
exportAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2408
|
+
/**
|
|
2409
|
+
* 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
|
|
2410
|
+
* @summary Get Agent
|
|
2411
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2232
2412
|
* @param {*} [options] Override http request option.
|
|
2233
2413
|
* @throws {RequiredError}
|
|
2234
2414
|
*/
|
|
2235
|
-
|
|
2415
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2236
2416
|
/**
|
|
2237
2417
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2238
2418
|
* @summary Get Agent Statistics
|
|
@@ -2241,6 +2421,60 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2241
2421
|
* @throws {RequiredError}
|
|
2242
2422
|
*/
|
|
2243
2423
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatisticsResponse>;
|
|
2424
|
+
/**
|
|
2425
|
+
* 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
|
|
2426
|
+
* @summary Get Agents
|
|
2427
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2428
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2429
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2430
|
+
* @param {*} [options] Override http request option.
|
|
2431
|
+
* @throws {RequiredError}
|
|
2432
|
+
*/
|
|
2433
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
|
|
2434
|
+
/**
|
|
2435
|
+
* 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
|
|
2436
|
+
* @summary Import Agent
|
|
2437
|
+
* @param {string} agentId
|
|
2438
|
+
* @param {File} file YAML file containing agent configuration
|
|
2439
|
+
* @param {*} [options] Override http request option.
|
|
2440
|
+
* @throws {RequiredError}
|
|
2441
|
+
*/
|
|
2442
|
+
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
2443
|
+
/**
|
|
2444
|
+
* 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
|
|
2445
|
+
* @summary Override Agent
|
|
2446
|
+
* @param {string} agentId ID of the agent to update
|
|
2447
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2452
|
+
/**
|
|
2453
|
+
* 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
|
|
2454
|
+
* @summary Update Agent
|
|
2455
|
+
* @param {string} agentId ID of the agent to update
|
|
2456
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
*/
|
|
2460
|
+
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2461
|
+
/**
|
|
2462
|
+
* 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
|
|
2463
|
+
* @summary Validate Agent Create
|
|
2464
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2465
|
+
* @param {*} [options] Override http request option.
|
|
2466
|
+
* @throws {RequiredError}
|
|
2467
|
+
*/
|
|
2468
|
+
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2469
|
+
/**
|
|
2470
|
+
* 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
|
|
2471
|
+
* @summary Validate Agent Update
|
|
2472
|
+
* @param {string} agentId Agent ID
|
|
2473
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2474
|
+
* @param {*} [options] Override http request option.
|
|
2475
|
+
* @throws {RequiredError}
|
|
2476
|
+
*/
|
|
2477
|
+
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2244
2478
|
};
|
|
2245
2479
|
/**
|
|
2246
2480
|
* AgentApi - object-oriented interface
|
|
@@ -2250,23 +2484,32 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2250
2484
|
*/
|
|
2251
2485
|
export declare class AgentApi extends BaseAPI {
|
|
2252
2486
|
/**
|
|
2253
|
-
* Create a new agent
|
|
2254
|
-
* @summary Create
|
|
2255
|
-
* @param {AgentUpdate} agentUpdate
|
|
2487
|
+
* 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
|
|
2488
|
+
* @summary Create Agent
|
|
2489
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2256
2490
|
* @param {*} [options] Override http request option.
|
|
2257
2491
|
* @throws {RequiredError}
|
|
2258
2492
|
* @memberof AgentApi
|
|
2259
2493
|
*/
|
|
2260
|
-
createAgent(agentUpdate
|
|
2494
|
+
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any>>;
|
|
2261
2495
|
/**
|
|
2262
|
-
*
|
|
2263
|
-
* @summary
|
|
2264
|
-
* @param {string}
|
|
2496
|
+
* 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
|
|
2497
|
+
* @summary Export Agent
|
|
2498
|
+
* @param {string} agentId ID of the agent to export
|
|
2499
|
+
* @param {*} [options] Override http request option.
|
|
2500
|
+
* @throws {RequiredError}
|
|
2501
|
+
* @memberof AgentApi
|
|
2502
|
+
*/
|
|
2503
|
+
exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2504
|
+
/**
|
|
2505
|
+
* 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
|
|
2506
|
+
* @summary Get Agent
|
|
2507
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2265
2508
|
* @param {*} [options] Override http request option.
|
|
2266
2509
|
* @throws {RequiredError}
|
|
2267
2510
|
* @memberof AgentApi
|
|
2268
2511
|
*/
|
|
2269
|
-
|
|
2512
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2270
2513
|
/**
|
|
2271
2514
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2272
2515
|
* @summary Get Agent Statistics
|
|
@@ -2276,6 +2519,66 @@ export declare class AgentApi extends BaseAPI {
|
|
|
2276
2519
|
* @memberof AgentApi
|
|
2277
2520
|
*/
|
|
2278
2521
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any>>;
|
|
2522
|
+
/**
|
|
2523
|
+
* 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
|
|
2524
|
+
* @summary Get Agents
|
|
2525
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2526
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2527
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2528
|
+
* @param {*} [options] Override http request option.
|
|
2529
|
+
* @throws {RequiredError}
|
|
2530
|
+
* @memberof AgentApi
|
|
2531
|
+
*/
|
|
2532
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
2533
|
+
/**
|
|
2534
|
+
* 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
|
|
2535
|
+
* @summary Import Agent
|
|
2536
|
+
* @param {string} agentId
|
|
2537
|
+
* @param {File} file YAML file containing agent configuration
|
|
2538
|
+
* @param {*} [options] Override http request option.
|
|
2539
|
+
* @throws {RequiredError}
|
|
2540
|
+
* @memberof AgentApi
|
|
2541
|
+
*/
|
|
2542
|
+
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
2543
|
+
/**
|
|
2544
|
+
* 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
|
|
2545
|
+
* @summary Override Agent
|
|
2546
|
+
* @param {string} agentId ID of the agent to update
|
|
2547
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2548
|
+
* @param {*} [options] Override http request option.
|
|
2549
|
+
* @throws {RequiredError}
|
|
2550
|
+
* @memberof AgentApi
|
|
2551
|
+
*/
|
|
2552
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2553
|
+
/**
|
|
2554
|
+
* 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
|
|
2555
|
+
* @summary Update Agent
|
|
2556
|
+
* @param {string} agentId ID of the agent to update
|
|
2557
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2558
|
+
* @param {*} [options] Override http request option.
|
|
2559
|
+
* @throws {RequiredError}
|
|
2560
|
+
* @memberof AgentApi
|
|
2561
|
+
*/
|
|
2562
|
+
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2563
|
+
/**
|
|
2564
|
+
* 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
|
|
2565
|
+
* @summary Validate Agent Create
|
|
2566
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2567
|
+
* @param {*} [options] Override http request option.
|
|
2568
|
+
* @throws {RequiredError}
|
|
2569
|
+
* @memberof AgentApi
|
|
2570
|
+
*/
|
|
2571
|
+
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2572
|
+
/**
|
|
2573
|
+
* 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
|
|
2574
|
+
* @summary Validate Agent Update
|
|
2575
|
+
* @param {string} agentId Agent ID
|
|
2576
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2577
|
+
* @param {*} [options] Override http request option.
|
|
2578
|
+
* @throws {RequiredError}
|
|
2579
|
+
* @memberof AgentApi
|
|
2580
|
+
*/
|
|
2581
|
+
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2279
2582
|
}
|
|
2280
2583
|
/**
|
|
2281
2584
|
* ChatApi - axios parameter creator
|