@crestal/nation-sdk 0.6.25 → 0.6.26
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 -1
- package/README.md +4 -3
- package/api.ts +596 -306
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +584 -301
- package/dist/api.js +45 -8
- 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/AgentGenerateRequest.md +3 -1
- package/docs/AgentGenerateResponse.md +2 -2
- package/docs/AgentInput.md +95 -0
- package/docs/{Agent.md → AgentOutput.md} +3 -3
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
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.6.
|
|
5
|
+
* The version of the OpenAPI document: 0.6.26
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,283 +13,6 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
-
/**
|
|
17
|
-
* Agent model.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Agent
|
|
20
|
-
*/
|
|
21
|
-
export interface Agent {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Agent
|
|
26
|
-
*/
|
|
27
|
-
'name': string | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof Agent
|
|
32
|
-
*/
|
|
33
|
-
'slug'?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof Agent
|
|
38
|
-
*/
|
|
39
|
-
'description'?: string | null;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof Agent
|
|
44
|
-
*/
|
|
45
|
-
'external_website'?: string | null;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Agent
|
|
50
|
-
*/
|
|
51
|
-
'picture'?: string | null;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof Agent
|
|
56
|
-
*/
|
|
57
|
-
'ticker'?: string | null;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof Agent
|
|
62
|
-
*/
|
|
63
|
-
'token_address'?: string | null;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof Agent
|
|
68
|
-
*/
|
|
69
|
-
'token_pool'?: string | null;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof Agent
|
|
74
|
-
*/
|
|
75
|
-
'mode'?: AgentModeEnum | null;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof Agent
|
|
80
|
-
*/
|
|
81
|
-
'fee_percentage'?: string | null;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof Agent
|
|
86
|
-
*/
|
|
87
|
-
'purpose': string | null;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof Agent
|
|
92
|
-
*/
|
|
93
|
-
'personality': string | null;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof Agent
|
|
98
|
-
*/
|
|
99
|
-
'principles': string | null;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof Agent
|
|
104
|
-
*/
|
|
105
|
-
'owner'?: string | null;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof Agent
|
|
110
|
-
*/
|
|
111
|
-
'upstream_id'?: string | null;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {object}
|
|
115
|
-
* @memberof Agent
|
|
116
|
-
*/
|
|
117
|
-
'upstream_extra'?: object | null;
|
|
118
|
-
/**
|
|
119
|
-
* AI model identifier to be used by this agent for processing requests.
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof Agent
|
|
122
|
-
*/
|
|
123
|
-
'model'?: string;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof Agent
|
|
128
|
-
*/
|
|
129
|
-
'prompt'?: string | null;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof Agent
|
|
134
|
-
*/
|
|
135
|
-
'prompt_append'?: string | null;
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {number}
|
|
139
|
-
* @memberof Agent
|
|
140
|
-
*/
|
|
141
|
-
'temperature'?: number | null;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {number}
|
|
145
|
-
* @memberof Agent
|
|
146
|
-
*/
|
|
147
|
-
'frequency_penalty'?: number | null;
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @type {number}
|
|
151
|
-
* @memberof Agent
|
|
152
|
-
*/
|
|
153
|
-
'presence_penalty'?: number | null;
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @type {string}
|
|
157
|
-
* @memberof Agent
|
|
158
|
-
*/
|
|
159
|
-
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @type {Array<AgentAutonomous>}
|
|
163
|
-
* @memberof Agent
|
|
164
|
-
*/
|
|
165
|
-
'autonomous'?: Array<AgentAutonomous> | null;
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @type {string}
|
|
169
|
-
* @memberof Agent
|
|
170
|
-
*/
|
|
171
|
-
'example_intro'?: string | null;
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {Array<AgentExample>}
|
|
175
|
-
* @memberof Agent
|
|
176
|
-
*/
|
|
177
|
-
'examples'?: Array<AgentExample> | null;
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* @type {object}
|
|
181
|
-
* @memberof Agent
|
|
182
|
-
*/
|
|
183
|
-
'skills'?: object | null;
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @type {string}
|
|
187
|
-
* @memberof Agent
|
|
188
|
-
*/
|
|
189
|
-
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
190
|
-
/**
|
|
191
|
-
*
|
|
192
|
-
* @type {string}
|
|
193
|
-
* @memberof Agent
|
|
194
|
-
*/
|
|
195
|
-
'readonly_wallet_address'?: string | null;
|
|
196
|
-
/**
|
|
197
|
-
*
|
|
198
|
-
* @type {string}
|
|
199
|
-
* @memberof Agent
|
|
200
|
-
*/
|
|
201
|
-
'network_id'?: AgentNetworkIdEnum | null;
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @type {string}
|
|
205
|
-
* @memberof Agent
|
|
206
|
-
*/
|
|
207
|
-
'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
|
|
208
|
-
/**
|
|
209
|
-
*
|
|
210
|
-
* @type {boolean}
|
|
211
|
-
* @memberof Agent
|
|
212
|
-
*/
|
|
213
|
-
'telegram_entrypoint_enabled'?: boolean | null;
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* @type {string}
|
|
217
|
-
* @memberof Agent
|
|
218
|
-
*/
|
|
219
|
-
'telegram_entrypoint_prompt'?: string | null;
|
|
220
|
-
/**
|
|
221
|
-
*
|
|
222
|
-
* @type {object}
|
|
223
|
-
* @memberof Agent
|
|
224
|
-
*/
|
|
225
|
-
'telegram_config'?: object | null;
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @type {string}
|
|
229
|
-
* @memberof Agent
|
|
230
|
-
*/
|
|
231
|
-
'xmtp_entrypoint_prompt'?: string | null;
|
|
232
|
-
/**
|
|
233
|
-
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
234
|
-
* @type {string}
|
|
235
|
-
* @memberof Agent
|
|
236
|
-
*/
|
|
237
|
-
'id'?: string;
|
|
238
|
-
/**
|
|
239
|
-
* Timestamp when the agent was created, will ignore when importing
|
|
240
|
-
* @type {string}
|
|
241
|
-
* @memberof Agent
|
|
242
|
-
*/
|
|
243
|
-
'created_at'?: string;
|
|
244
|
-
/**
|
|
245
|
-
* Timestamp when the agent was last updated, will ignore when importing
|
|
246
|
-
* @type {string}
|
|
247
|
-
* @memberof Agent
|
|
248
|
-
*/
|
|
249
|
-
'updated_at'?: string;
|
|
250
|
-
}
|
|
251
|
-
export declare const AgentModeEnum: {
|
|
252
|
-
readonly Public: "public";
|
|
253
|
-
readonly Private: "private";
|
|
254
|
-
};
|
|
255
|
-
export type AgentModeEnum = typeof AgentModeEnum[keyof typeof AgentModeEnum];
|
|
256
|
-
export declare const AgentShortTermMemoryStrategyEnum: {
|
|
257
|
-
readonly Trim: "trim";
|
|
258
|
-
readonly Summarize: "summarize";
|
|
259
|
-
};
|
|
260
|
-
export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
|
|
261
|
-
export declare const AgentWalletProviderEnum: {
|
|
262
|
-
readonly Cdp: "cdp";
|
|
263
|
-
readonly Readonly: "readonly";
|
|
264
|
-
};
|
|
265
|
-
export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
|
|
266
|
-
export declare const AgentNetworkIdEnum: {
|
|
267
|
-
readonly EthereumMainnet: "ethereum-mainnet";
|
|
268
|
-
readonly EthereumSepolia: "ethereum-sepolia";
|
|
269
|
-
readonly PolygonMainnet: "polygon-mainnet";
|
|
270
|
-
readonly PolygonMumbai: "polygon-mumbai";
|
|
271
|
-
readonly BaseMainnet: "base-mainnet";
|
|
272
|
-
readonly BaseSepolia: "base-sepolia";
|
|
273
|
-
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
274
|
-
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
275
|
-
readonly OptimismMainnet: "optimism-mainnet";
|
|
276
|
-
readonly OptimismSepolia: "optimism-sepolia";
|
|
277
|
-
readonly Solana: "solana";
|
|
278
|
-
};
|
|
279
|
-
export type AgentNetworkIdEnum = typeof AgentNetworkIdEnum[keyof typeof AgentNetworkIdEnum];
|
|
280
|
-
export declare const AgentCdpNetworkIdEnum: {
|
|
281
|
-
readonly EthereumMainnet: "ethereum-mainnet";
|
|
282
|
-
readonly EthereumSepolia: "ethereum-sepolia";
|
|
283
|
-
readonly PolygonMainnet: "polygon-mainnet";
|
|
284
|
-
readonly PolygonMumbai: "polygon-mumbai";
|
|
285
|
-
readonly BaseMainnet: "base-mainnet";
|
|
286
|
-
readonly BaseSepolia: "base-sepolia";
|
|
287
|
-
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
288
|
-
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
289
|
-
readonly OptimismMainnet: "optimism-mainnet";
|
|
290
|
-
readonly OptimismSepolia: "optimism-sepolia";
|
|
291
|
-
};
|
|
292
|
-
export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof AgentCdpNetworkIdEnum];
|
|
293
16
|
/**
|
|
294
17
|
* Response model for agent API key generation.
|
|
295
18
|
* @export
|
|
@@ -470,16 +193,22 @@ export interface AgentGenerateRequest {
|
|
|
470
193
|
'prompt': string;
|
|
471
194
|
/**
|
|
472
195
|
*
|
|
473
|
-
* @type {
|
|
196
|
+
* @type {AgentInput}
|
|
474
197
|
* @memberof AgentGenerateRequest
|
|
475
198
|
*/
|
|
476
|
-
'existing_agent'?:
|
|
199
|
+
'existing_agent'?: AgentInput | null;
|
|
477
200
|
/**
|
|
478
201
|
*
|
|
479
202
|
* @type {string}
|
|
480
203
|
* @memberof AgentGenerateRequest
|
|
481
204
|
*/
|
|
482
205
|
'project_id'?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {boolean}
|
|
209
|
+
* @memberof AgentGenerateRequest
|
|
210
|
+
*/
|
|
211
|
+
'deploy'?: boolean | null;
|
|
483
212
|
}
|
|
484
213
|
/**
|
|
485
214
|
* Response model for agent generation.
|
|
@@ -514,43 +243,597 @@ export interface AgentGenerateResponse {
|
|
|
514
243
|
[key: string]: number;
|
|
515
244
|
}>;
|
|
516
245
|
/**
|
|
517
|
-
*
|
|
246
|
+
*
|
|
518
247
|
* @type {Array<object>}
|
|
519
248
|
* @memberof AgentGenerateResponse
|
|
520
249
|
*/
|
|
521
|
-
'autonomous_tasks'?: Array<object
|
|
250
|
+
'autonomous_tasks'?: Array<object> | null;
|
|
522
251
|
/**
|
|
523
|
-
*
|
|
252
|
+
*
|
|
524
253
|
* @type {Array<string>}
|
|
525
254
|
* @memberof AgentGenerateResponse
|
|
526
255
|
*/
|
|
527
|
-
'activated_skills'?: Array<string
|
|
256
|
+
'activated_skills'?: Array<string> | null;
|
|
528
257
|
}
|
|
529
258
|
/**
|
|
530
|
-
*
|
|
259
|
+
* Agent model.
|
|
531
260
|
* @export
|
|
532
|
-
* @interface
|
|
261
|
+
* @interface AgentInput
|
|
533
262
|
*/
|
|
534
|
-
export interface
|
|
263
|
+
export interface AgentInput {
|
|
535
264
|
/**
|
|
536
|
-
*
|
|
537
|
-
* @type {
|
|
538
|
-
* @memberof
|
|
265
|
+
*
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof AgentInput
|
|
539
268
|
*/
|
|
540
|
-
'
|
|
269
|
+
'name': string | null;
|
|
541
270
|
/**
|
|
542
|
-
*
|
|
543
|
-
* @type {
|
|
544
|
-
* @memberof
|
|
271
|
+
*
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof AgentInput
|
|
545
274
|
*/
|
|
546
|
-
'
|
|
275
|
+
'slug'?: string | null;
|
|
547
276
|
/**
|
|
548
277
|
*
|
|
549
278
|
* @type {string}
|
|
550
|
-
* @memberof
|
|
279
|
+
* @memberof AgentInput
|
|
551
280
|
*/
|
|
552
|
-
'
|
|
553
|
-
|
|
281
|
+
'description'?: string | null;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof AgentInput
|
|
286
|
+
*/
|
|
287
|
+
'external_website'?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof AgentInput
|
|
292
|
+
*/
|
|
293
|
+
'picture'?: string | null;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {string}
|
|
297
|
+
* @memberof AgentInput
|
|
298
|
+
*/
|
|
299
|
+
'ticker'?: string | null;
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @type {string}
|
|
303
|
+
* @memberof AgentInput
|
|
304
|
+
*/
|
|
305
|
+
'token_address'?: string | null;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof AgentInput
|
|
310
|
+
*/
|
|
311
|
+
'token_pool'?: string | null;
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof AgentInput
|
|
316
|
+
*/
|
|
317
|
+
'mode'?: AgentInputModeEnum | null;
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @type {FeePercentage}
|
|
321
|
+
* @memberof AgentInput
|
|
322
|
+
*/
|
|
323
|
+
'fee_percentage'?: FeePercentage | null;
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof AgentInput
|
|
328
|
+
*/
|
|
329
|
+
'purpose': string | null;
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @type {string}
|
|
333
|
+
* @memberof AgentInput
|
|
334
|
+
*/
|
|
335
|
+
'personality': string | null;
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof AgentInput
|
|
340
|
+
*/
|
|
341
|
+
'principles': string | null;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {string}
|
|
345
|
+
* @memberof AgentInput
|
|
346
|
+
*/
|
|
347
|
+
'owner'?: string | null;
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @type {string}
|
|
351
|
+
* @memberof AgentInput
|
|
352
|
+
*/
|
|
353
|
+
'upstream_id'?: string | null;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @type {object}
|
|
357
|
+
* @memberof AgentInput
|
|
358
|
+
*/
|
|
359
|
+
'upstream_extra'?: object | null;
|
|
360
|
+
/**
|
|
361
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof AgentInput
|
|
364
|
+
*/
|
|
365
|
+
'model'?: string;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof AgentInput
|
|
370
|
+
*/
|
|
371
|
+
'prompt'?: string | null;
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof AgentInput
|
|
376
|
+
*/
|
|
377
|
+
'prompt_append'?: string | null;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @type {number}
|
|
381
|
+
* @memberof AgentInput
|
|
382
|
+
*/
|
|
383
|
+
'temperature'?: number | null;
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {number}
|
|
387
|
+
* @memberof AgentInput
|
|
388
|
+
*/
|
|
389
|
+
'frequency_penalty'?: number | null;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {number}
|
|
393
|
+
* @memberof AgentInput
|
|
394
|
+
*/
|
|
395
|
+
'presence_penalty'?: number | null;
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @memberof AgentInput
|
|
400
|
+
*/
|
|
401
|
+
'short_term_memory_strategy'?: AgentInputShortTermMemoryStrategyEnum | null;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @type {Array<AgentAutonomous>}
|
|
405
|
+
* @memberof AgentInput
|
|
406
|
+
*/
|
|
407
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @type {string}
|
|
411
|
+
* @memberof AgentInput
|
|
412
|
+
*/
|
|
413
|
+
'example_intro'?: string | null;
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @type {Array<AgentExample>}
|
|
417
|
+
* @memberof AgentInput
|
|
418
|
+
*/
|
|
419
|
+
'examples'?: Array<AgentExample> | null;
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @type {object}
|
|
423
|
+
* @memberof AgentInput
|
|
424
|
+
*/
|
|
425
|
+
'skills'?: object | null;
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof AgentInput
|
|
430
|
+
*/
|
|
431
|
+
'wallet_provider'?: AgentInputWalletProviderEnum | null;
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof AgentInput
|
|
436
|
+
*/
|
|
437
|
+
'readonly_wallet_address'?: string | null;
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof AgentInput
|
|
442
|
+
*/
|
|
443
|
+
'network_id'?: AgentInputNetworkIdEnum | null;
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof AgentInput
|
|
448
|
+
*/
|
|
449
|
+
'cdp_network_id'?: AgentInputCdpNetworkIdEnum | null;
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @type {boolean}
|
|
453
|
+
* @memberof AgentInput
|
|
454
|
+
*/
|
|
455
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* @type {string}
|
|
459
|
+
* @memberof AgentInput
|
|
460
|
+
*/
|
|
461
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @type {object}
|
|
465
|
+
* @memberof AgentInput
|
|
466
|
+
*/
|
|
467
|
+
'telegram_config'?: object | null;
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @type {string}
|
|
471
|
+
* @memberof AgentInput
|
|
472
|
+
*/
|
|
473
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
474
|
+
/**
|
|
475
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
476
|
+
* @type {string}
|
|
477
|
+
* @memberof AgentInput
|
|
478
|
+
*/
|
|
479
|
+
'id'?: string;
|
|
480
|
+
/**
|
|
481
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof AgentInput
|
|
484
|
+
*/
|
|
485
|
+
'created_at'?: string;
|
|
486
|
+
/**
|
|
487
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof AgentInput
|
|
490
|
+
*/
|
|
491
|
+
'updated_at'?: string;
|
|
492
|
+
}
|
|
493
|
+
export declare const AgentInputModeEnum: {
|
|
494
|
+
readonly Public: "public";
|
|
495
|
+
readonly Private: "private";
|
|
496
|
+
};
|
|
497
|
+
export type AgentInputModeEnum = typeof AgentInputModeEnum[keyof typeof AgentInputModeEnum];
|
|
498
|
+
export declare const AgentInputShortTermMemoryStrategyEnum: {
|
|
499
|
+
readonly Trim: "trim";
|
|
500
|
+
readonly Summarize: "summarize";
|
|
501
|
+
};
|
|
502
|
+
export type AgentInputShortTermMemoryStrategyEnum = typeof AgentInputShortTermMemoryStrategyEnum[keyof typeof AgentInputShortTermMemoryStrategyEnum];
|
|
503
|
+
export declare const AgentInputWalletProviderEnum: {
|
|
504
|
+
readonly Cdp: "cdp";
|
|
505
|
+
readonly Readonly: "readonly";
|
|
506
|
+
};
|
|
507
|
+
export type AgentInputWalletProviderEnum = typeof AgentInputWalletProviderEnum[keyof typeof AgentInputWalletProviderEnum];
|
|
508
|
+
export declare const AgentInputNetworkIdEnum: {
|
|
509
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
510
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
511
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
512
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
513
|
+
readonly BaseMainnet: "base-mainnet";
|
|
514
|
+
readonly BaseSepolia: "base-sepolia";
|
|
515
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
516
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
517
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
518
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
519
|
+
readonly Solana: "solana";
|
|
520
|
+
};
|
|
521
|
+
export type AgentInputNetworkIdEnum = typeof AgentInputNetworkIdEnum[keyof typeof AgentInputNetworkIdEnum];
|
|
522
|
+
export declare const AgentInputCdpNetworkIdEnum: {
|
|
523
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
524
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
525
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
526
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
527
|
+
readonly BaseMainnet: "base-mainnet";
|
|
528
|
+
readonly BaseSepolia: "base-sepolia";
|
|
529
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
530
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
531
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
532
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
533
|
+
};
|
|
534
|
+
export type AgentInputCdpNetworkIdEnum = typeof AgentInputCdpNetworkIdEnum[keyof typeof AgentInputCdpNetworkIdEnum];
|
|
535
|
+
/**
|
|
536
|
+
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
537
|
+
* @export
|
|
538
|
+
* @interface AgentListResponse
|
|
539
|
+
*/
|
|
540
|
+
export interface AgentListResponse {
|
|
541
|
+
/**
|
|
542
|
+
* List of agents
|
|
543
|
+
* @type {Array<AgentResponse>}
|
|
544
|
+
* @memberof AgentListResponse
|
|
545
|
+
*/
|
|
546
|
+
'data': Array<AgentResponse>;
|
|
547
|
+
/**
|
|
548
|
+
* Indicates if there are more items
|
|
549
|
+
* @type {boolean}
|
|
550
|
+
* @memberof AgentListResponse
|
|
551
|
+
*/
|
|
552
|
+
'has_more': boolean;
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @type {string}
|
|
556
|
+
* @memberof AgentListResponse
|
|
557
|
+
*/
|
|
558
|
+
'next_cursor'?: string | null;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Agent model.
|
|
562
|
+
* @export
|
|
563
|
+
* @interface AgentOutput
|
|
564
|
+
*/
|
|
565
|
+
export interface AgentOutput {
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @type {string}
|
|
569
|
+
* @memberof AgentOutput
|
|
570
|
+
*/
|
|
571
|
+
'name': string | null;
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @type {string}
|
|
575
|
+
* @memberof AgentOutput
|
|
576
|
+
*/
|
|
577
|
+
'slug'?: string | null;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {string}
|
|
581
|
+
* @memberof AgentOutput
|
|
582
|
+
*/
|
|
583
|
+
'description'?: string | null;
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof AgentOutput
|
|
588
|
+
*/
|
|
589
|
+
'external_website'?: string | null;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type {string}
|
|
593
|
+
* @memberof AgentOutput
|
|
594
|
+
*/
|
|
595
|
+
'picture'?: string | null;
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @type {string}
|
|
599
|
+
* @memberof AgentOutput
|
|
600
|
+
*/
|
|
601
|
+
'ticker'?: string | null;
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof AgentOutput
|
|
606
|
+
*/
|
|
607
|
+
'token_address'?: string | null;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof AgentOutput
|
|
612
|
+
*/
|
|
613
|
+
'token_pool'?: string | null;
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @type {string}
|
|
617
|
+
* @memberof AgentOutput
|
|
618
|
+
*/
|
|
619
|
+
'mode'?: AgentOutputModeEnum | null;
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @type {string}
|
|
623
|
+
* @memberof AgentOutput
|
|
624
|
+
*/
|
|
625
|
+
'fee_percentage'?: string | null;
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @type {string}
|
|
629
|
+
* @memberof AgentOutput
|
|
630
|
+
*/
|
|
631
|
+
'purpose': string | null;
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* @type {string}
|
|
635
|
+
* @memberof AgentOutput
|
|
636
|
+
*/
|
|
637
|
+
'personality': string | null;
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* @type {string}
|
|
641
|
+
* @memberof AgentOutput
|
|
642
|
+
*/
|
|
643
|
+
'principles': string | null;
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @type {string}
|
|
647
|
+
* @memberof AgentOutput
|
|
648
|
+
*/
|
|
649
|
+
'owner'?: string | null;
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @type {string}
|
|
653
|
+
* @memberof AgentOutput
|
|
654
|
+
*/
|
|
655
|
+
'upstream_id'?: string | null;
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @type {object}
|
|
659
|
+
* @memberof AgentOutput
|
|
660
|
+
*/
|
|
661
|
+
'upstream_extra'?: object | null;
|
|
662
|
+
/**
|
|
663
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
664
|
+
* @type {string}
|
|
665
|
+
* @memberof AgentOutput
|
|
666
|
+
*/
|
|
667
|
+
'model'?: string;
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @type {string}
|
|
671
|
+
* @memberof AgentOutput
|
|
672
|
+
*/
|
|
673
|
+
'prompt'?: string | null;
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @type {string}
|
|
677
|
+
* @memberof AgentOutput
|
|
678
|
+
*/
|
|
679
|
+
'prompt_append'?: string | null;
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
* @type {number}
|
|
683
|
+
* @memberof AgentOutput
|
|
684
|
+
*/
|
|
685
|
+
'temperature'?: number | null;
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @type {number}
|
|
689
|
+
* @memberof AgentOutput
|
|
690
|
+
*/
|
|
691
|
+
'frequency_penalty'?: number | null;
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @type {number}
|
|
695
|
+
* @memberof AgentOutput
|
|
696
|
+
*/
|
|
697
|
+
'presence_penalty'?: number | null;
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @type {string}
|
|
701
|
+
* @memberof AgentOutput
|
|
702
|
+
*/
|
|
703
|
+
'short_term_memory_strategy'?: AgentOutputShortTermMemoryStrategyEnum | null;
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type {Array<AgentAutonomous>}
|
|
707
|
+
* @memberof AgentOutput
|
|
708
|
+
*/
|
|
709
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @type {string}
|
|
713
|
+
* @memberof AgentOutput
|
|
714
|
+
*/
|
|
715
|
+
'example_intro'?: string | null;
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @type {Array<AgentExample>}
|
|
719
|
+
* @memberof AgentOutput
|
|
720
|
+
*/
|
|
721
|
+
'examples'?: Array<AgentExample> | null;
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @type {object}
|
|
725
|
+
* @memberof AgentOutput
|
|
726
|
+
*/
|
|
727
|
+
'skills'?: object | null;
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @type {string}
|
|
731
|
+
* @memberof AgentOutput
|
|
732
|
+
*/
|
|
733
|
+
'wallet_provider'?: AgentOutputWalletProviderEnum | null;
|
|
734
|
+
/**
|
|
735
|
+
*
|
|
736
|
+
* @type {string}
|
|
737
|
+
* @memberof AgentOutput
|
|
738
|
+
*/
|
|
739
|
+
'readonly_wallet_address'?: string | null;
|
|
740
|
+
/**
|
|
741
|
+
*
|
|
742
|
+
* @type {string}
|
|
743
|
+
* @memberof AgentOutput
|
|
744
|
+
*/
|
|
745
|
+
'network_id'?: AgentOutputNetworkIdEnum | null;
|
|
746
|
+
/**
|
|
747
|
+
*
|
|
748
|
+
* @type {string}
|
|
749
|
+
* @memberof AgentOutput
|
|
750
|
+
*/
|
|
751
|
+
'cdp_network_id'?: AgentOutputCdpNetworkIdEnum | null;
|
|
752
|
+
/**
|
|
753
|
+
*
|
|
754
|
+
* @type {boolean}
|
|
755
|
+
* @memberof AgentOutput
|
|
756
|
+
*/
|
|
757
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
758
|
+
/**
|
|
759
|
+
*
|
|
760
|
+
* @type {string}
|
|
761
|
+
* @memberof AgentOutput
|
|
762
|
+
*/
|
|
763
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* @type {object}
|
|
767
|
+
* @memberof AgentOutput
|
|
768
|
+
*/
|
|
769
|
+
'telegram_config'?: object | null;
|
|
770
|
+
/**
|
|
771
|
+
*
|
|
772
|
+
* @type {string}
|
|
773
|
+
* @memberof AgentOutput
|
|
774
|
+
*/
|
|
775
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
776
|
+
/**
|
|
777
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
778
|
+
* @type {string}
|
|
779
|
+
* @memberof AgentOutput
|
|
780
|
+
*/
|
|
781
|
+
'id'?: string;
|
|
782
|
+
/**
|
|
783
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
784
|
+
* @type {string}
|
|
785
|
+
* @memberof AgentOutput
|
|
786
|
+
*/
|
|
787
|
+
'created_at'?: string;
|
|
788
|
+
/**
|
|
789
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
790
|
+
* @type {string}
|
|
791
|
+
* @memberof AgentOutput
|
|
792
|
+
*/
|
|
793
|
+
'updated_at'?: string;
|
|
794
|
+
}
|
|
795
|
+
export declare const AgentOutputModeEnum: {
|
|
796
|
+
readonly Public: "public";
|
|
797
|
+
readonly Private: "private";
|
|
798
|
+
};
|
|
799
|
+
export type AgentOutputModeEnum = typeof AgentOutputModeEnum[keyof typeof AgentOutputModeEnum];
|
|
800
|
+
export declare const AgentOutputShortTermMemoryStrategyEnum: {
|
|
801
|
+
readonly Trim: "trim";
|
|
802
|
+
readonly Summarize: "summarize";
|
|
803
|
+
};
|
|
804
|
+
export type AgentOutputShortTermMemoryStrategyEnum = typeof AgentOutputShortTermMemoryStrategyEnum[keyof typeof AgentOutputShortTermMemoryStrategyEnum];
|
|
805
|
+
export declare const AgentOutputWalletProviderEnum: {
|
|
806
|
+
readonly Cdp: "cdp";
|
|
807
|
+
readonly Readonly: "readonly";
|
|
808
|
+
};
|
|
809
|
+
export type AgentOutputWalletProviderEnum = typeof AgentOutputWalletProviderEnum[keyof typeof AgentOutputWalletProviderEnum];
|
|
810
|
+
export declare const AgentOutputNetworkIdEnum: {
|
|
811
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
812
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
813
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
814
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
815
|
+
readonly BaseMainnet: "base-mainnet";
|
|
816
|
+
readonly BaseSepolia: "base-sepolia";
|
|
817
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
818
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
819
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
820
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
821
|
+
readonly Solana: "solana";
|
|
822
|
+
};
|
|
823
|
+
export type AgentOutputNetworkIdEnum = typeof AgentOutputNetworkIdEnum[keyof typeof AgentOutputNetworkIdEnum];
|
|
824
|
+
export declare const AgentOutputCdpNetworkIdEnum: {
|
|
825
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
826
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
827
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
828
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
829
|
+
readonly BaseMainnet: "base-mainnet";
|
|
830
|
+
readonly BaseSepolia: "base-sepolia";
|
|
831
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
832
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
833
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
834
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
835
|
+
};
|
|
836
|
+
export type AgentOutputCdpNetworkIdEnum = typeof AgentOutputCdpNetworkIdEnum[keyof typeof AgentOutputCdpNetworkIdEnum];
|
|
554
837
|
/**
|
|
555
838
|
* Response model for Agent API.
|
|
556
839
|
* @export
|
|
@@ -4511,7 +4794,7 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
4511
4794
|
* @param {*} [options] Override http request option.
|
|
4512
4795
|
* @throws {RequiredError}
|
|
4513
4796
|
*/
|
|
4514
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4797
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentOutput>>;
|
|
4515
4798
|
/**
|
|
4516
4799
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
4517
4800
|
* @summary Get User Agents
|
|
@@ -4534,7 +4817,7 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4534
4817
|
* @param {*} [options] Override http request option.
|
|
4535
4818
|
* @throws {RequiredError}
|
|
4536
4819
|
*/
|
|
4537
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4820
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentOutput>;
|
|
4538
4821
|
/**
|
|
4539
4822
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
4540
4823
|
* @summary Get User Agents
|
|
@@ -4560,7 +4843,7 @@ export declare class UserApi extends BaseAPI {
|
|
|
4560
4843
|
* @throws {RequiredError}
|
|
4561
4844
|
* @memberof UserApi
|
|
4562
4845
|
*/
|
|
4563
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4846
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentOutput, any>>;
|
|
4564
4847
|
/**
|
|
4565
4848
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
4566
4849
|
* @summary Get User Agents
|