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