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