@crestal/nation-sdk 0.6.30 → 0.6.32
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 +3 -1
- package/README.md +9 -4
- package/api.ts +1336 -704
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +866 -419
- package/dist/api.js +565 -136
- 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/Agent.md +35 -29
- package/docs/AgentApi.md +4 -61
- package/docs/AgentCreate.md +15 -37
- package/docs/AgentDraft.md +75 -0
- package/docs/AgentResponse.md +72 -40
- package/docs/AgentUpdate.md +13 -37
- package/docs/AgentUserInput.md +61 -0
- package/docs/DraftApi.md +280 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/FeePercentage.md +0 -19
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.32
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,18 +19,6 @@ import { BaseAPI } from './base';
|
|
|
19
19
|
* @interface Agent
|
|
20
20
|
*/
|
|
21
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
22
|
/**
|
|
35
23
|
*
|
|
36
24
|
* @type {string}
|
|
@@ -43,12 +31,6 @@ export interface Agent {
|
|
|
43
31
|
* @memberof Agent
|
|
44
32
|
*/
|
|
45
33
|
'external_website'?: string | null;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Agent
|
|
50
|
-
*/
|
|
51
|
-
'picture'?: string | null;
|
|
52
34
|
/**
|
|
53
35
|
*
|
|
54
36
|
* @type {string}
|
|
@@ -72,49 +54,49 @@ export interface Agent {
|
|
|
72
54
|
* @type {string}
|
|
73
55
|
* @memberof Agent
|
|
74
56
|
*/
|
|
75
|
-
'
|
|
57
|
+
'fee_percentage'?: string | null;
|
|
76
58
|
/**
|
|
77
59
|
*
|
|
78
60
|
* @type {string}
|
|
79
61
|
* @memberof Agent
|
|
80
62
|
*/
|
|
81
|
-
'
|
|
63
|
+
'example_intro'?: string | null;
|
|
82
64
|
/**
|
|
83
65
|
*
|
|
84
|
-
* @type {
|
|
66
|
+
* @type {Array<AgentExample>}
|
|
85
67
|
* @memberof Agent
|
|
86
68
|
*/
|
|
87
|
-
'
|
|
69
|
+
'examples'?: Array<AgentExample> | null;
|
|
88
70
|
/**
|
|
89
71
|
*
|
|
90
72
|
* @type {string}
|
|
91
73
|
* @memberof Agent
|
|
92
74
|
*/
|
|
93
|
-
'
|
|
75
|
+
'name': string | null;
|
|
94
76
|
/**
|
|
95
77
|
*
|
|
96
78
|
* @type {string}
|
|
97
79
|
* @memberof Agent
|
|
98
80
|
*/
|
|
99
|
-
'
|
|
81
|
+
'picture'?: string | null;
|
|
100
82
|
/**
|
|
101
83
|
*
|
|
102
84
|
* @type {string}
|
|
103
85
|
* @memberof Agent
|
|
104
86
|
*/
|
|
105
|
-
'
|
|
87
|
+
'purpose'?: string | null;
|
|
106
88
|
/**
|
|
107
89
|
*
|
|
108
90
|
* @type {string}
|
|
109
91
|
* @memberof Agent
|
|
110
92
|
*/
|
|
111
|
-
'
|
|
93
|
+
'personality'?: string | null;
|
|
112
94
|
/**
|
|
113
95
|
*
|
|
114
|
-
* @type {
|
|
96
|
+
* @type {string}
|
|
115
97
|
* @memberof Agent
|
|
116
98
|
*/
|
|
117
|
-
'
|
|
99
|
+
'principles'?: string | null;
|
|
118
100
|
/**
|
|
119
101
|
* AI model identifier to be used by this agent for processing requests.
|
|
120
102
|
* @type {string}
|
|
@@ -151,6 +133,30 @@ export interface Agent {
|
|
|
151
133
|
* @memberof Agent
|
|
152
134
|
*/
|
|
153
135
|
'presence_penalty'?: number | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof Agent
|
|
140
|
+
*/
|
|
141
|
+
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof Agent
|
|
146
|
+
*/
|
|
147
|
+
'readonly_wallet_address'?: string | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof Agent
|
|
152
|
+
*/
|
|
153
|
+
'network_id'?: AgentNetworkIdEnum | null;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {object}
|
|
157
|
+
* @memberof Agent
|
|
158
|
+
*/
|
|
159
|
+
'skills'?: object | null;
|
|
154
160
|
/**
|
|
155
161
|
*
|
|
156
162
|
* @type {string}
|
|
@@ -165,76 +171,88 @@ export interface Agent {
|
|
|
165
171
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
166
172
|
/**
|
|
167
173
|
*
|
|
168
|
-
* @type {
|
|
174
|
+
* @type {boolean}
|
|
169
175
|
* @memberof Agent
|
|
170
176
|
*/
|
|
171
|
-
'
|
|
177
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
172
178
|
/**
|
|
173
179
|
*
|
|
174
|
-
* @type {
|
|
180
|
+
* @type {string}
|
|
175
181
|
* @memberof Agent
|
|
176
182
|
*/
|
|
177
|
-
'
|
|
183
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
178
184
|
/**
|
|
179
185
|
*
|
|
180
186
|
* @type {object}
|
|
181
187
|
* @memberof Agent
|
|
182
188
|
*/
|
|
183
|
-
'
|
|
189
|
+
'telegram_config'?: object | null;
|
|
184
190
|
/**
|
|
185
191
|
*
|
|
186
192
|
* @type {string}
|
|
187
193
|
* @memberof Agent
|
|
188
194
|
*/
|
|
189
|
-
'
|
|
195
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
190
196
|
/**
|
|
191
197
|
*
|
|
192
198
|
* @type {string}
|
|
193
199
|
* @memberof Agent
|
|
194
200
|
*/
|
|
195
|
-
'
|
|
201
|
+
'upstream_id'?: string | null;
|
|
196
202
|
/**
|
|
197
203
|
*
|
|
204
|
+
* @type {object}
|
|
205
|
+
* @memberof Agent
|
|
206
|
+
*/
|
|
207
|
+
'upstream_extra'?: object | null;
|
|
208
|
+
/**
|
|
209
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
198
210
|
* @type {string}
|
|
199
211
|
* @memberof Agent
|
|
200
212
|
*/
|
|
201
|
-
'
|
|
213
|
+
'id'?: string;
|
|
202
214
|
/**
|
|
203
215
|
*
|
|
204
216
|
* @type {string}
|
|
205
217
|
* @memberof Agent
|
|
206
218
|
*/
|
|
207
|
-
'
|
|
219
|
+
'owner'?: string | null;
|
|
208
220
|
/**
|
|
209
221
|
*
|
|
210
|
-
* @type {
|
|
222
|
+
* @type {string}
|
|
211
223
|
* @memberof Agent
|
|
212
224
|
*/
|
|
213
|
-
'
|
|
225
|
+
'slug'?: string | null;
|
|
214
226
|
/**
|
|
215
227
|
*
|
|
216
228
|
* @type {string}
|
|
217
229
|
* @memberof Agent
|
|
218
230
|
*/
|
|
219
|
-
'
|
|
231
|
+
'version'?: string | null;
|
|
220
232
|
/**
|
|
221
233
|
*
|
|
222
234
|
* @type {object}
|
|
223
235
|
* @memberof Agent
|
|
224
236
|
*/
|
|
225
|
-
'
|
|
237
|
+
'statistics'?: object | null;
|
|
226
238
|
/**
|
|
227
239
|
*
|
|
228
|
-
* @type {
|
|
240
|
+
* @type {object}
|
|
229
241
|
* @memberof Agent
|
|
230
242
|
*/
|
|
231
|
-
'
|
|
243
|
+
'assets'?: object | null;
|
|
232
244
|
/**
|
|
233
|
-
*
|
|
234
|
-
* @type {
|
|
245
|
+
*
|
|
246
|
+
* @type {CreditAccount}
|
|
235
247
|
* @memberof Agent
|
|
236
248
|
*/
|
|
237
|
-
'
|
|
249
|
+
'account_snapshot'?: CreditAccount | null;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @type {object}
|
|
253
|
+
* @memberof Agent
|
|
254
|
+
*/
|
|
255
|
+
'extra'?: object | null;
|
|
238
256
|
/**
|
|
239
257
|
* Timestamp when the agent was created, will ignore when importing
|
|
240
258
|
* @type {string}
|
|
@@ -248,16 +266,6 @@ export interface Agent {
|
|
|
248
266
|
*/
|
|
249
267
|
'updated_at'?: string;
|
|
250
268
|
}
|
|
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
269
|
export declare const AgentWalletProviderEnum: {
|
|
262
270
|
readonly Cdp: "cdp";
|
|
263
271
|
readonly Readonly: "readonly";
|
|
@@ -277,19 +285,11 @@ export declare const AgentNetworkIdEnum: {
|
|
|
277
285
|
readonly Solana: "solana";
|
|
278
286
|
};
|
|
279
287
|
export type AgentNetworkIdEnum = typeof AgentNetworkIdEnum[keyof typeof AgentNetworkIdEnum];
|
|
280
|
-
export declare const
|
|
281
|
-
readonly
|
|
282
|
-
readonly
|
|
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";
|
|
288
|
+
export declare const AgentShortTermMemoryStrategyEnum: {
|
|
289
|
+
readonly Trim: "trim";
|
|
290
|
+
readonly Summarize: "summarize";
|
|
291
291
|
};
|
|
292
|
-
export type
|
|
292
|
+
export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
|
|
293
293
|
/**
|
|
294
294
|
* Response model for agent API key generation.
|
|
295
295
|
* @export
|
|
@@ -449,24 +449,6 @@ export interface AgentCreate {
|
|
|
449
449
|
* @memberof AgentCreate
|
|
450
450
|
*/
|
|
451
451
|
'name': string | null;
|
|
452
|
-
/**
|
|
453
|
-
*
|
|
454
|
-
* @type {string}
|
|
455
|
-
* @memberof AgentCreate
|
|
456
|
-
*/
|
|
457
|
-
'slug'?: string | null;
|
|
458
|
-
/**
|
|
459
|
-
*
|
|
460
|
-
* @type {string}
|
|
461
|
-
* @memberof AgentCreate
|
|
462
|
-
*/
|
|
463
|
-
'description'?: string | null;
|
|
464
|
-
/**
|
|
465
|
-
*
|
|
466
|
-
* @type {string}
|
|
467
|
-
* @memberof AgentCreate
|
|
468
|
-
*/
|
|
469
|
-
'external_website'?: string | null;
|
|
470
452
|
/**
|
|
471
453
|
*
|
|
472
454
|
* @type {string}
|
|
@@ -478,67 +460,19 @@ export interface AgentCreate {
|
|
|
478
460
|
* @type {string}
|
|
479
461
|
* @memberof AgentCreate
|
|
480
462
|
*/
|
|
481
|
-
'
|
|
482
|
-
/**
|
|
483
|
-
*
|
|
484
|
-
* @type {string}
|
|
485
|
-
* @memberof AgentCreate
|
|
486
|
-
*/
|
|
487
|
-
'token_address'?: string | null;
|
|
488
|
-
/**
|
|
489
|
-
*
|
|
490
|
-
* @type {string}
|
|
491
|
-
* @memberof AgentCreate
|
|
492
|
-
*/
|
|
493
|
-
'token_pool'?: string | null;
|
|
494
|
-
/**
|
|
495
|
-
*
|
|
496
|
-
* @type {string}
|
|
497
|
-
* @memberof AgentCreate
|
|
498
|
-
*/
|
|
499
|
-
'mode'?: AgentCreateModeEnum | null;
|
|
500
|
-
/**
|
|
501
|
-
*
|
|
502
|
-
* @type {FeePercentage}
|
|
503
|
-
* @memberof AgentCreate
|
|
504
|
-
*/
|
|
505
|
-
'fee_percentage'?: FeePercentage | null;
|
|
506
|
-
/**
|
|
507
|
-
*
|
|
508
|
-
* @type {string}
|
|
509
|
-
* @memberof AgentCreate
|
|
510
|
-
*/
|
|
511
|
-
'purpose': string | null;
|
|
512
|
-
/**
|
|
513
|
-
*
|
|
514
|
-
* @type {string}
|
|
515
|
-
* @memberof AgentCreate
|
|
516
|
-
*/
|
|
517
|
-
'personality': string | null;
|
|
518
|
-
/**
|
|
519
|
-
*
|
|
520
|
-
* @type {string}
|
|
521
|
-
* @memberof AgentCreate
|
|
522
|
-
*/
|
|
523
|
-
'principles': string | null;
|
|
463
|
+
'purpose'?: string | null;
|
|
524
464
|
/**
|
|
525
465
|
*
|
|
526
466
|
* @type {string}
|
|
527
467
|
* @memberof AgentCreate
|
|
528
468
|
*/
|
|
529
|
-
'
|
|
469
|
+
'personality'?: string | null;
|
|
530
470
|
/**
|
|
531
471
|
*
|
|
532
472
|
* @type {string}
|
|
533
473
|
* @memberof AgentCreate
|
|
534
474
|
*/
|
|
535
|
-
'
|
|
536
|
-
/**
|
|
537
|
-
*
|
|
538
|
-
* @type {object}
|
|
539
|
-
* @memberof AgentCreate
|
|
540
|
-
*/
|
|
541
|
-
'upstream_extra'?: object | null;
|
|
475
|
+
'principles'?: string | null;
|
|
542
476
|
/**
|
|
543
477
|
* AI model identifier to be used by this agent for processing requests.
|
|
544
478
|
* @type {string}
|
|
@@ -580,25 +514,19 @@ export interface AgentCreate {
|
|
|
580
514
|
* @type {string}
|
|
581
515
|
* @memberof AgentCreate
|
|
582
516
|
*/
|
|
583
|
-
'
|
|
584
|
-
/**
|
|
585
|
-
*
|
|
586
|
-
* @type {Array<AgentAutonomous>}
|
|
587
|
-
* @memberof AgentCreate
|
|
588
|
-
*/
|
|
589
|
-
'autonomous'?: Array<AgentAutonomous> | null;
|
|
517
|
+
'wallet_provider'?: AgentCreateWalletProviderEnum | null;
|
|
590
518
|
/**
|
|
591
519
|
*
|
|
592
520
|
* @type {string}
|
|
593
521
|
* @memberof AgentCreate
|
|
594
522
|
*/
|
|
595
|
-
'
|
|
523
|
+
'readonly_wallet_address'?: string | null;
|
|
596
524
|
/**
|
|
597
525
|
*
|
|
598
|
-
* @type {
|
|
526
|
+
* @type {string}
|
|
599
527
|
* @memberof AgentCreate
|
|
600
528
|
*/
|
|
601
|
-
'
|
|
529
|
+
'network_id'?: AgentCreateNetworkIdEnum | null;
|
|
602
530
|
/**
|
|
603
531
|
*
|
|
604
532
|
* @type {object}
|
|
@@ -610,66 +538,62 @@ export interface AgentCreate {
|
|
|
610
538
|
* @type {string}
|
|
611
539
|
* @memberof AgentCreate
|
|
612
540
|
*/
|
|
613
|
-
'
|
|
541
|
+
'short_term_memory_strategy'?: AgentCreateShortTermMemoryStrategyEnum | null;
|
|
614
542
|
/**
|
|
615
543
|
*
|
|
616
|
-
* @type {
|
|
544
|
+
* @type {Array<AgentAutonomous>}
|
|
617
545
|
* @memberof AgentCreate
|
|
618
546
|
*/
|
|
619
|
-
'
|
|
547
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
620
548
|
/**
|
|
621
549
|
*
|
|
622
|
-
* @type {
|
|
550
|
+
* @type {boolean}
|
|
623
551
|
* @memberof AgentCreate
|
|
624
552
|
*/
|
|
625
|
-
'
|
|
553
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
626
554
|
/**
|
|
627
555
|
*
|
|
628
556
|
* @type {string}
|
|
629
557
|
* @memberof AgentCreate
|
|
630
558
|
*/
|
|
631
|
-
'
|
|
559
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
632
560
|
/**
|
|
633
561
|
*
|
|
634
|
-
* @type {
|
|
562
|
+
* @type {object}
|
|
635
563
|
* @memberof AgentCreate
|
|
636
564
|
*/
|
|
637
|
-
'
|
|
565
|
+
'telegram_config'?: object | null;
|
|
638
566
|
/**
|
|
639
567
|
*
|
|
640
568
|
* @type {string}
|
|
641
569
|
* @memberof AgentCreate
|
|
642
570
|
*/
|
|
643
|
-
'
|
|
571
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
644
572
|
/**
|
|
645
573
|
*
|
|
646
|
-
* @type {
|
|
574
|
+
* @type {string}
|
|
647
575
|
* @memberof AgentCreate
|
|
648
576
|
*/
|
|
649
|
-
'
|
|
577
|
+
'upstream_id'?: string | null;
|
|
650
578
|
/**
|
|
651
579
|
*
|
|
652
|
-
* @type {
|
|
580
|
+
* @type {object}
|
|
653
581
|
* @memberof AgentCreate
|
|
654
582
|
*/
|
|
655
|
-
'
|
|
583
|
+
'upstream_extra'?: object | null;
|
|
656
584
|
/**
|
|
657
585
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
658
586
|
* @type {string}
|
|
659
587
|
* @memberof AgentCreate
|
|
660
588
|
*/
|
|
661
589
|
'id'?: string;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type {string}
|
|
593
|
+
* @memberof AgentCreate
|
|
594
|
+
*/
|
|
595
|
+
'owner'?: string | null;
|
|
662
596
|
}
|
|
663
|
-
export declare const AgentCreateModeEnum: {
|
|
664
|
-
readonly Public: "public";
|
|
665
|
-
readonly Private: "private";
|
|
666
|
-
};
|
|
667
|
-
export type AgentCreateModeEnum = typeof AgentCreateModeEnum[keyof typeof AgentCreateModeEnum];
|
|
668
|
-
export declare const AgentCreateShortTermMemoryStrategyEnum: {
|
|
669
|
-
readonly Trim: "trim";
|
|
670
|
-
readonly Summarize: "summarize";
|
|
671
|
-
};
|
|
672
|
-
export type AgentCreateShortTermMemoryStrategyEnum = typeof AgentCreateShortTermMemoryStrategyEnum[keyof typeof AgentCreateShortTermMemoryStrategyEnum];
|
|
673
597
|
export declare const AgentCreateWalletProviderEnum: {
|
|
674
598
|
readonly Cdp: "cdp";
|
|
675
599
|
readonly Readonly: "readonly";
|
|
@@ -689,35 +613,226 @@ export declare const AgentCreateNetworkIdEnum: {
|
|
|
689
613
|
readonly Solana: "solana";
|
|
690
614
|
};
|
|
691
615
|
export type AgentCreateNetworkIdEnum = typeof AgentCreateNetworkIdEnum[keyof typeof AgentCreateNetworkIdEnum];
|
|
692
|
-
export declare const
|
|
693
|
-
readonly
|
|
694
|
-
readonly
|
|
695
|
-
readonly PolygonMainnet: "polygon-mainnet";
|
|
696
|
-
readonly PolygonMumbai: "polygon-mumbai";
|
|
697
|
-
readonly BaseMainnet: "base-mainnet";
|
|
698
|
-
readonly BaseSepolia: "base-sepolia";
|
|
699
|
-
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
700
|
-
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
701
|
-
readonly OptimismMainnet: "optimism-mainnet";
|
|
702
|
-
readonly OptimismSepolia: "optimism-sepolia";
|
|
616
|
+
export declare const AgentCreateShortTermMemoryStrategyEnum: {
|
|
617
|
+
readonly Trim: "trim";
|
|
618
|
+
readonly Summarize: "summarize";
|
|
703
619
|
};
|
|
704
|
-
export type
|
|
620
|
+
export type AgentCreateShortTermMemoryStrategyEnum = typeof AgentCreateShortTermMemoryStrategyEnum[keyof typeof AgentCreateShortTermMemoryStrategyEnum];
|
|
705
621
|
/**
|
|
706
|
-
* Agent
|
|
622
|
+
* Agent draft model.
|
|
707
623
|
* @export
|
|
708
|
-
* @interface
|
|
624
|
+
* @interface AgentDraft
|
|
709
625
|
*/
|
|
710
|
-
export interface
|
|
626
|
+
export interface AgentDraft {
|
|
711
627
|
/**
|
|
712
|
-
*
|
|
628
|
+
*
|
|
713
629
|
* @type {string}
|
|
714
|
-
* @memberof
|
|
630
|
+
* @memberof AgentDraft
|
|
715
631
|
*/
|
|
716
|
-
'name': string;
|
|
632
|
+
'name': string | null;
|
|
717
633
|
/**
|
|
718
|
-
*
|
|
634
|
+
*
|
|
719
635
|
* @type {string}
|
|
720
|
-
* @memberof
|
|
636
|
+
* @memberof AgentDraft
|
|
637
|
+
*/
|
|
638
|
+
'picture'?: string | null;
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @type {string}
|
|
642
|
+
* @memberof AgentDraft
|
|
643
|
+
*/
|
|
644
|
+
'purpose'?: string | null;
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @type {string}
|
|
648
|
+
* @memberof AgentDraft
|
|
649
|
+
*/
|
|
650
|
+
'personality'?: string | null;
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @type {string}
|
|
654
|
+
* @memberof AgentDraft
|
|
655
|
+
*/
|
|
656
|
+
'principles'?: string | null;
|
|
657
|
+
/**
|
|
658
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
659
|
+
* @type {string}
|
|
660
|
+
* @memberof AgentDraft
|
|
661
|
+
*/
|
|
662
|
+
'model'?: string;
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @type {string}
|
|
666
|
+
* @memberof AgentDraft
|
|
667
|
+
*/
|
|
668
|
+
'prompt'?: string | null;
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @type {string}
|
|
672
|
+
* @memberof AgentDraft
|
|
673
|
+
*/
|
|
674
|
+
'prompt_append'?: string | null;
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @type {number}
|
|
678
|
+
* @memberof AgentDraft
|
|
679
|
+
*/
|
|
680
|
+
'temperature'?: number | null;
|
|
681
|
+
/**
|
|
682
|
+
*
|
|
683
|
+
* @type {number}
|
|
684
|
+
* @memberof AgentDraft
|
|
685
|
+
*/
|
|
686
|
+
'frequency_penalty'?: number | null;
|
|
687
|
+
/**
|
|
688
|
+
*
|
|
689
|
+
* @type {number}
|
|
690
|
+
* @memberof AgentDraft
|
|
691
|
+
*/
|
|
692
|
+
'presence_penalty'?: number | null;
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @type {string}
|
|
696
|
+
* @memberof AgentDraft
|
|
697
|
+
*/
|
|
698
|
+
'wallet_provider'?: AgentDraftWalletProviderEnum | null;
|
|
699
|
+
/**
|
|
700
|
+
*
|
|
701
|
+
* @type {string}
|
|
702
|
+
* @memberof AgentDraft
|
|
703
|
+
*/
|
|
704
|
+
'readonly_wallet_address'?: string | null;
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @type {string}
|
|
708
|
+
* @memberof AgentDraft
|
|
709
|
+
*/
|
|
710
|
+
'network_id'?: AgentDraftNetworkIdEnum | null;
|
|
711
|
+
/**
|
|
712
|
+
*
|
|
713
|
+
* @type {object}
|
|
714
|
+
* @memberof AgentDraft
|
|
715
|
+
*/
|
|
716
|
+
'skills'?: object | null;
|
|
717
|
+
/**
|
|
718
|
+
*
|
|
719
|
+
* @type {string}
|
|
720
|
+
* @memberof AgentDraft
|
|
721
|
+
*/
|
|
722
|
+
'short_term_memory_strategy'?: AgentDraftShortTermMemoryStrategyEnum | null;
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @type {Array<AgentAutonomous>}
|
|
726
|
+
* @memberof AgentDraft
|
|
727
|
+
*/
|
|
728
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @type {boolean}
|
|
732
|
+
* @memberof AgentDraft
|
|
733
|
+
*/
|
|
734
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @type {string}
|
|
738
|
+
* @memberof AgentDraft
|
|
739
|
+
*/
|
|
740
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @type {object}
|
|
744
|
+
* @memberof AgentDraft
|
|
745
|
+
*/
|
|
746
|
+
'telegram_config'?: object | null;
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @type {string}
|
|
750
|
+
* @memberof AgentDraft
|
|
751
|
+
*/
|
|
752
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
753
|
+
/**
|
|
754
|
+
* Unique identifier for the draft
|
|
755
|
+
* @type {string}
|
|
756
|
+
* @memberof AgentDraft
|
|
757
|
+
*/
|
|
758
|
+
'id'?: string;
|
|
759
|
+
/**
|
|
760
|
+
* Agent id
|
|
761
|
+
* @type {string}
|
|
762
|
+
* @memberof AgentDraft
|
|
763
|
+
*/
|
|
764
|
+
'agent_id'?: string;
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @type {string}
|
|
768
|
+
* @memberof AgentDraft
|
|
769
|
+
*/
|
|
770
|
+
'owner'?: string | null;
|
|
771
|
+
/**
|
|
772
|
+
*
|
|
773
|
+
* @type {string}
|
|
774
|
+
* @memberof AgentDraft
|
|
775
|
+
*/
|
|
776
|
+
'version'?: string | null;
|
|
777
|
+
/**
|
|
778
|
+
*
|
|
779
|
+
* @type {string}
|
|
780
|
+
* @memberof AgentDraft
|
|
781
|
+
*/
|
|
782
|
+
'deployed_at'?: string | null;
|
|
783
|
+
/**
|
|
784
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
785
|
+
* @type {string}
|
|
786
|
+
* @memberof AgentDraft
|
|
787
|
+
*/
|
|
788
|
+
'created_at'?: string;
|
|
789
|
+
/**
|
|
790
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
791
|
+
* @type {string}
|
|
792
|
+
* @memberof AgentDraft
|
|
793
|
+
*/
|
|
794
|
+
'updated_at'?: string;
|
|
795
|
+
}
|
|
796
|
+
export declare const AgentDraftWalletProviderEnum: {
|
|
797
|
+
readonly Cdp: "cdp";
|
|
798
|
+
readonly Readonly: "readonly";
|
|
799
|
+
};
|
|
800
|
+
export type AgentDraftWalletProviderEnum = typeof AgentDraftWalletProviderEnum[keyof typeof AgentDraftWalletProviderEnum];
|
|
801
|
+
export declare const AgentDraftNetworkIdEnum: {
|
|
802
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
803
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
804
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
805
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
806
|
+
readonly BaseMainnet: "base-mainnet";
|
|
807
|
+
readonly BaseSepolia: "base-sepolia";
|
|
808
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
809
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
810
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
811
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
812
|
+
readonly Solana: "solana";
|
|
813
|
+
};
|
|
814
|
+
export type AgentDraftNetworkIdEnum = typeof AgentDraftNetworkIdEnum[keyof typeof AgentDraftNetworkIdEnum];
|
|
815
|
+
export declare const AgentDraftShortTermMemoryStrategyEnum: {
|
|
816
|
+
readonly Trim: "trim";
|
|
817
|
+
readonly Summarize: "summarize";
|
|
818
|
+
};
|
|
819
|
+
export type AgentDraftShortTermMemoryStrategyEnum = typeof AgentDraftShortTermMemoryStrategyEnum[keyof typeof AgentDraftShortTermMemoryStrategyEnum];
|
|
820
|
+
/**
|
|
821
|
+
* Agent example configuration.
|
|
822
|
+
* @export
|
|
823
|
+
* @interface AgentExample
|
|
824
|
+
*/
|
|
825
|
+
export interface AgentExample {
|
|
826
|
+
/**
|
|
827
|
+
* Name of the example
|
|
828
|
+
* @type {string}
|
|
829
|
+
* @memberof AgentExample
|
|
830
|
+
*/
|
|
831
|
+
'name': string;
|
|
832
|
+
/**
|
|
833
|
+
* Description of the example
|
|
834
|
+
* @type {string}
|
|
835
|
+
* @memberof AgentExample
|
|
721
836
|
*/
|
|
722
837
|
'description': string;
|
|
723
838
|
/**
|
|
@@ -835,47 +950,59 @@ export interface AgentListResponse {
|
|
|
835
950
|
*/
|
|
836
951
|
export interface AgentResponse {
|
|
837
952
|
/**
|
|
838
|
-
*
|
|
953
|
+
*
|
|
839
954
|
* @type {string}
|
|
840
955
|
* @memberof AgentResponse
|
|
841
956
|
*/
|
|
842
|
-
'
|
|
957
|
+
'description'?: string | null;
|
|
843
958
|
/**
|
|
844
|
-
*
|
|
959
|
+
*
|
|
845
960
|
* @type {string}
|
|
846
961
|
* @memberof AgentResponse
|
|
847
962
|
*/
|
|
848
|
-
'
|
|
963
|
+
'external_website'?: string | null;
|
|
849
964
|
/**
|
|
850
|
-
*
|
|
965
|
+
*
|
|
851
966
|
* @type {string}
|
|
852
967
|
* @memberof AgentResponse
|
|
853
968
|
*/
|
|
854
|
-
'
|
|
969
|
+
'ticker'?: string | null;
|
|
855
970
|
/**
|
|
856
971
|
*
|
|
857
972
|
* @type {string}
|
|
858
973
|
* @memberof AgentResponse
|
|
859
974
|
*/
|
|
860
|
-
'
|
|
975
|
+
'token_address'?: string | null;
|
|
861
976
|
/**
|
|
862
977
|
*
|
|
863
978
|
* @type {string}
|
|
864
979
|
* @memberof AgentResponse
|
|
865
980
|
*/
|
|
866
|
-
'
|
|
981
|
+
'token_pool'?: string | null;
|
|
867
982
|
/**
|
|
868
983
|
*
|
|
869
984
|
* @type {string}
|
|
870
985
|
* @memberof AgentResponse
|
|
871
986
|
*/
|
|
872
|
-
'
|
|
987
|
+
'fee_percentage'?: string | null;
|
|
873
988
|
/**
|
|
874
989
|
*
|
|
875
990
|
* @type {string}
|
|
876
991
|
* @memberof AgentResponse
|
|
877
992
|
*/
|
|
878
|
-
'
|
|
993
|
+
'example_intro'?: string | null;
|
|
994
|
+
/**
|
|
995
|
+
*
|
|
996
|
+
* @type {Array<AgentExample>}
|
|
997
|
+
* @memberof AgentResponse
|
|
998
|
+
*/
|
|
999
|
+
'examples'?: Array<AgentExample> | null;
|
|
1000
|
+
/**
|
|
1001
|
+
*
|
|
1002
|
+
* @type {string}
|
|
1003
|
+
* @memberof AgentResponse
|
|
1004
|
+
*/
|
|
1005
|
+
'name': string | null;
|
|
879
1006
|
/**
|
|
880
1007
|
*
|
|
881
1008
|
* @type {string}
|
|
@@ -887,186 +1014,284 @@ export interface AgentResponse {
|
|
|
887
1014
|
* @type {string}
|
|
888
1015
|
* @memberof AgentResponse
|
|
889
1016
|
*/
|
|
890
|
-
'
|
|
1017
|
+
'purpose'?: string | null;
|
|
891
1018
|
/**
|
|
892
1019
|
*
|
|
893
1020
|
* @type {string}
|
|
894
1021
|
* @memberof AgentResponse
|
|
895
1022
|
*/
|
|
896
|
-
'
|
|
1023
|
+
'personality'?: string | null;
|
|
897
1024
|
/**
|
|
898
1025
|
*
|
|
899
1026
|
* @type {string}
|
|
900
1027
|
* @memberof AgentResponse
|
|
901
1028
|
*/
|
|
902
|
-
'
|
|
1029
|
+
'principles'?: string | null;
|
|
1030
|
+
/**
|
|
1031
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
1032
|
+
* @type {string}
|
|
1033
|
+
* @memberof AgentResponse
|
|
1034
|
+
*/
|
|
1035
|
+
'model'?: string;
|
|
1036
|
+
/**
|
|
1037
|
+
*
|
|
1038
|
+
* @type {string}
|
|
1039
|
+
* @memberof AgentResponse
|
|
1040
|
+
*/
|
|
1041
|
+
'prompt'?: string | null;
|
|
903
1042
|
/**
|
|
904
1043
|
*
|
|
905
1044
|
* @type {string}
|
|
906
1045
|
* @memberof AgentResponse
|
|
907
1046
|
*/
|
|
908
|
-
'
|
|
1047
|
+
'prompt_append'?: string | null;
|
|
1048
|
+
/**
|
|
1049
|
+
*
|
|
1050
|
+
* @type {number}
|
|
1051
|
+
* @memberof AgentResponse
|
|
1052
|
+
*/
|
|
1053
|
+
'temperature'?: number | null;
|
|
1054
|
+
/**
|
|
1055
|
+
*
|
|
1056
|
+
* @type {number}
|
|
1057
|
+
* @memberof AgentResponse
|
|
1058
|
+
*/
|
|
1059
|
+
'frequency_penalty'?: number | null;
|
|
1060
|
+
/**
|
|
1061
|
+
*
|
|
1062
|
+
* @type {number}
|
|
1063
|
+
* @memberof AgentResponse
|
|
1064
|
+
*/
|
|
1065
|
+
'presence_penalty'?: number | null;
|
|
909
1066
|
/**
|
|
910
1067
|
*
|
|
911
1068
|
* @type {string}
|
|
912
1069
|
* @memberof AgentResponse
|
|
913
1070
|
*/
|
|
914
|
-
'
|
|
1071
|
+
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
915
1072
|
/**
|
|
916
1073
|
*
|
|
917
1074
|
* @type {string}
|
|
918
1075
|
* @memberof AgentResponse
|
|
919
1076
|
*/
|
|
920
|
-
'
|
|
1077
|
+
'readonly_wallet_address'?: string | null;
|
|
921
1078
|
/**
|
|
922
1079
|
*
|
|
923
1080
|
* @type {string}
|
|
924
1081
|
* @memberof AgentResponse
|
|
925
1082
|
*/
|
|
926
|
-
'
|
|
1083
|
+
'network_id'?: AgentResponseNetworkIdEnum | null;
|
|
927
1084
|
/**
|
|
928
1085
|
*
|
|
929
1086
|
* @type {object}
|
|
930
1087
|
* @memberof AgentResponse
|
|
931
1088
|
*/
|
|
932
|
-
'
|
|
1089
|
+
'skills'?: object | null;
|
|
933
1090
|
/**
|
|
934
|
-
*
|
|
1091
|
+
*
|
|
935
1092
|
* @type {string}
|
|
936
1093
|
* @memberof AgentResponse
|
|
937
1094
|
*/
|
|
938
|
-
'
|
|
1095
|
+
'short_term_memory_strategy'?: AgentResponseShortTermMemoryStrategyEnum | null;
|
|
939
1096
|
/**
|
|
940
1097
|
*
|
|
941
|
-
* @type {Array<
|
|
1098
|
+
* @type {Array<AgentAutonomous>}
|
|
942
1099
|
* @memberof AgentResponse
|
|
943
1100
|
*/
|
|
944
|
-
'autonomous'?: Array<
|
|
1101
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @type {boolean}
|
|
1105
|
+
* @memberof AgentResponse
|
|
1106
|
+
*/
|
|
1107
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
945
1108
|
/**
|
|
946
1109
|
*
|
|
947
1110
|
* @type {string}
|
|
948
1111
|
* @memberof AgentResponse
|
|
949
1112
|
*/
|
|
950
|
-
'
|
|
1113
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
951
1114
|
/**
|
|
952
1115
|
*
|
|
953
|
-
* @type {
|
|
1116
|
+
* @type {object}
|
|
954
1117
|
* @memberof AgentResponse
|
|
955
1118
|
*/
|
|
956
|
-
'
|
|
1119
|
+
'telegram_config'?: object | null;
|
|
1120
|
+
/**
|
|
1121
|
+
*
|
|
1122
|
+
* @type {string}
|
|
1123
|
+
* @memberof AgentResponse
|
|
1124
|
+
*/
|
|
1125
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
1126
|
+
/**
|
|
1127
|
+
*
|
|
1128
|
+
* @type {string}
|
|
1129
|
+
* @memberof AgentResponse
|
|
1130
|
+
*/
|
|
1131
|
+
'upstream_id'?: string | null;
|
|
957
1132
|
/**
|
|
958
1133
|
*
|
|
959
1134
|
* @type {object}
|
|
960
1135
|
* @memberof AgentResponse
|
|
961
1136
|
*/
|
|
962
|
-
'
|
|
1137
|
+
'upstream_extra'?: object | null;
|
|
1138
|
+
/**
|
|
1139
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
1140
|
+
* @type {string}
|
|
1141
|
+
* @memberof AgentResponse
|
|
1142
|
+
*/
|
|
1143
|
+
'id'?: string;
|
|
963
1144
|
/**
|
|
964
1145
|
*
|
|
965
1146
|
* @type {string}
|
|
966
1147
|
* @memberof AgentResponse
|
|
967
1148
|
*/
|
|
968
|
-
'
|
|
1149
|
+
'owner'?: string | null;
|
|
969
1150
|
/**
|
|
970
1151
|
*
|
|
971
1152
|
* @type {string}
|
|
972
1153
|
* @memberof AgentResponse
|
|
973
1154
|
*/
|
|
974
|
-
'
|
|
1155
|
+
'slug'?: string | null;
|
|
975
1156
|
/**
|
|
976
1157
|
*
|
|
977
1158
|
* @type {string}
|
|
978
1159
|
* @memberof AgentResponse
|
|
979
1160
|
*/
|
|
980
|
-
'
|
|
1161
|
+
'version'?: string | null;
|
|
981
1162
|
/**
|
|
982
1163
|
*
|
|
983
|
-
* @type {
|
|
1164
|
+
* @type {object}
|
|
984
1165
|
* @memberof AgentResponse
|
|
985
1166
|
*/
|
|
986
|
-
'
|
|
1167
|
+
'statistics'?: object | null;
|
|
1168
|
+
/**
|
|
1169
|
+
*
|
|
1170
|
+
* @type {object}
|
|
1171
|
+
* @memberof AgentResponse
|
|
1172
|
+
*/
|
|
1173
|
+
'assets'?: object | null;
|
|
1174
|
+
/**
|
|
1175
|
+
*
|
|
1176
|
+
* @type {CreditAccount}
|
|
1177
|
+
* @memberof AgentResponse
|
|
1178
|
+
*/
|
|
1179
|
+
'account_snapshot'?: CreditAccount | null;
|
|
1180
|
+
/**
|
|
1181
|
+
*
|
|
1182
|
+
* @type {object}
|
|
1183
|
+
* @memberof AgentResponse
|
|
1184
|
+
*/
|
|
1185
|
+
'extra'?: object | null;
|
|
1186
|
+
/**
|
|
1187
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
1188
|
+
* @type {string}
|
|
1189
|
+
* @memberof AgentResponse
|
|
1190
|
+
*/
|
|
1191
|
+
'created_at'?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
1194
|
+
* @type {string}
|
|
1195
|
+
* @memberof AgentResponse
|
|
1196
|
+
*/
|
|
1197
|
+
'updated_at'?: string;
|
|
987
1198
|
/**
|
|
988
1199
|
*
|
|
989
1200
|
* @type {string}
|
|
990
1201
|
* @memberof AgentResponse
|
|
991
1202
|
*/
|
|
992
|
-
'cdp_wallet_address'
|
|
1203
|
+
'cdp_wallet_address'?: string | null;
|
|
993
1204
|
/**
|
|
994
1205
|
*
|
|
995
1206
|
* @type {string}
|
|
996
1207
|
* @memberof AgentResponse
|
|
997
1208
|
*/
|
|
998
|
-
'evm_wallet_address'
|
|
1209
|
+
'evm_wallet_address'?: string | null;
|
|
999
1210
|
/**
|
|
1000
1211
|
*
|
|
1001
1212
|
* @type {string}
|
|
1002
1213
|
* @memberof AgentResponse
|
|
1003
1214
|
*/
|
|
1004
|
-
'solana_wallet_address'
|
|
1215
|
+
'solana_wallet_address'?: string | null;
|
|
1005
1216
|
/**
|
|
1006
1217
|
* Whether the agent has linked their Twitter account
|
|
1007
1218
|
* @type {boolean}
|
|
1008
1219
|
* @memberof AgentResponse
|
|
1009
1220
|
*/
|
|
1010
|
-
'has_twitter_linked'
|
|
1221
|
+
'has_twitter_linked'?: boolean;
|
|
1011
1222
|
/**
|
|
1012
1223
|
*
|
|
1013
1224
|
* @type {string}
|
|
1014
1225
|
* @memberof AgentResponse
|
|
1015
1226
|
*/
|
|
1016
|
-
'linked_twitter_username'
|
|
1227
|
+
'linked_twitter_username'?: string | null;
|
|
1017
1228
|
/**
|
|
1018
1229
|
*
|
|
1019
1230
|
* @type {string}
|
|
1020
1231
|
* @memberof AgentResponse
|
|
1021
1232
|
*/
|
|
1022
|
-
'linked_twitter_name'
|
|
1233
|
+
'linked_twitter_name'?: string | null;
|
|
1023
1234
|
/**
|
|
1024
1235
|
* Whether the agent has self-keyed their Twitter account
|
|
1025
1236
|
* @type {boolean}
|
|
1026
1237
|
* @memberof AgentResponse
|
|
1027
1238
|
*/
|
|
1028
|
-
'has_twitter_self_key'
|
|
1239
|
+
'has_twitter_self_key'?: boolean;
|
|
1029
1240
|
/**
|
|
1030
1241
|
* Whether the agent has self-keyed their Telegram account
|
|
1031
1242
|
* @type {boolean}
|
|
1032
1243
|
* @memberof AgentResponse
|
|
1033
1244
|
*/
|
|
1034
|
-
'has_telegram_self_key'
|
|
1245
|
+
'has_telegram_self_key'?: boolean;
|
|
1035
1246
|
/**
|
|
1036
1247
|
*
|
|
1037
1248
|
* @type {string}
|
|
1038
1249
|
* @memberof AgentResponse
|
|
1039
1250
|
*/
|
|
1040
|
-
'linked_telegram_username'
|
|
1251
|
+
'linked_telegram_username'?: string | null;
|
|
1041
1252
|
/**
|
|
1042
1253
|
*
|
|
1043
1254
|
* @type {string}
|
|
1044
1255
|
* @memberof AgentResponse
|
|
1045
1256
|
*/
|
|
1046
|
-
'linked_telegram_name'
|
|
1257
|
+
'linked_telegram_name'?: string | null;
|
|
1047
1258
|
/**
|
|
1048
1259
|
* Whether the agent accepts image inputs in public mode
|
|
1049
1260
|
* @type {boolean}
|
|
1050
1261
|
* @memberof AgentResponse
|
|
1051
1262
|
*/
|
|
1052
|
-
'accept_image_input'
|
|
1263
|
+
'accept_image_input'?: boolean;
|
|
1053
1264
|
/**
|
|
1054
1265
|
* Whether the agent accepts image inputs in private mode
|
|
1055
1266
|
* @type {boolean}
|
|
1056
1267
|
* @memberof AgentResponse
|
|
1057
1268
|
*/
|
|
1058
|
-
'accept_image_input_private'
|
|
1269
|
+
'accept_image_input_private'?: boolean;
|
|
1059
1270
|
}
|
|
1060
|
-
export declare const AgentResponseModeEnum: {
|
|
1061
|
-
readonly Public: "public";
|
|
1062
|
-
readonly Private: "private";
|
|
1063
|
-
};
|
|
1064
|
-
export type AgentResponseModeEnum = typeof AgentResponseModeEnum[keyof typeof AgentResponseModeEnum];
|
|
1065
1271
|
export declare const AgentResponseWalletProviderEnum: {
|
|
1066
1272
|
readonly Cdp: "cdp";
|
|
1067
1273
|
readonly Readonly: "readonly";
|
|
1068
1274
|
};
|
|
1069
1275
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
1276
|
+
export declare const AgentResponseNetworkIdEnum: {
|
|
1277
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
1278
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
1279
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
1280
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
1281
|
+
readonly BaseMainnet: "base-mainnet";
|
|
1282
|
+
readonly BaseSepolia: "base-sepolia";
|
|
1283
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
1284
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
1285
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
1286
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
1287
|
+
readonly Solana: "solana";
|
|
1288
|
+
};
|
|
1289
|
+
export type AgentResponseNetworkIdEnum = typeof AgentResponseNetworkIdEnum[keyof typeof AgentResponseNetworkIdEnum];
|
|
1290
|
+
export declare const AgentResponseShortTermMemoryStrategyEnum: {
|
|
1291
|
+
readonly Trim: "trim";
|
|
1292
|
+
readonly Summarize: "summarize";
|
|
1293
|
+
};
|
|
1294
|
+
export type AgentResponseShortTermMemoryStrategyEnum = typeof AgentResponseShortTermMemoryStrategyEnum[keyof typeof AgentResponseShortTermMemoryStrategyEnum];
|
|
1070
1295
|
/**
|
|
1071
1296
|
* Sort options for agents list.
|
|
1072
1297
|
* @export
|
|
@@ -1192,222 +1417,297 @@ export interface AgentUpdate {
|
|
|
1192
1417
|
* @type {string}
|
|
1193
1418
|
* @memberof AgentUpdate
|
|
1194
1419
|
*/
|
|
1195
|
-
'
|
|
1420
|
+
'picture'?: string | null;
|
|
1196
1421
|
/**
|
|
1197
1422
|
*
|
|
1198
1423
|
* @type {string}
|
|
1199
1424
|
* @memberof AgentUpdate
|
|
1200
1425
|
*/
|
|
1201
|
-
'
|
|
1426
|
+
'purpose'?: string | null;
|
|
1202
1427
|
/**
|
|
1203
1428
|
*
|
|
1204
1429
|
* @type {string}
|
|
1205
1430
|
* @memberof AgentUpdate
|
|
1206
1431
|
*/
|
|
1207
|
-
'
|
|
1432
|
+
'personality'?: string | null;
|
|
1208
1433
|
/**
|
|
1209
1434
|
*
|
|
1210
1435
|
* @type {string}
|
|
1211
1436
|
* @memberof AgentUpdate
|
|
1212
1437
|
*/
|
|
1213
|
-
'
|
|
1438
|
+
'principles'?: string | null;
|
|
1439
|
+
/**
|
|
1440
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
1441
|
+
* @type {string}
|
|
1442
|
+
* @memberof AgentUpdate
|
|
1443
|
+
*/
|
|
1444
|
+
'model'?: string;
|
|
1214
1445
|
/**
|
|
1215
1446
|
*
|
|
1216
1447
|
* @type {string}
|
|
1217
1448
|
* @memberof AgentUpdate
|
|
1218
1449
|
*/
|
|
1219
|
-
'
|
|
1450
|
+
'prompt'?: string | null;
|
|
1220
1451
|
/**
|
|
1221
1452
|
*
|
|
1222
1453
|
* @type {string}
|
|
1223
1454
|
* @memberof AgentUpdate
|
|
1224
1455
|
*/
|
|
1225
|
-
'
|
|
1456
|
+
'prompt_append'?: string | null;
|
|
1457
|
+
/**
|
|
1458
|
+
*
|
|
1459
|
+
* @type {number}
|
|
1460
|
+
* @memberof AgentUpdate
|
|
1461
|
+
*/
|
|
1462
|
+
'temperature'?: number | null;
|
|
1463
|
+
/**
|
|
1464
|
+
*
|
|
1465
|
+
* @type {number}
|
|
1466
|
+
* @memberof AgentUpdate
|
|
1467
|
+
*/
|
|
1468
|
+
'frequency_penalty'?: number | null;
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @type {number}
|
|
1472
|
+
* @memberof AgentUpdate
|
|
1473
|
+
*/
|
|
1474
|
+
'presence_penalty'?: number | null;
|
|
1226
1475
|
/**
|
|
1227
1476
|
*
|
|
1228
1477
|
* @type {string}
|
|
1229
1478
|
* @memberof AgentUpdate
|
|
1230
1479
|
*/
|
|
1231
|
-
'
|
|
1480
|
+
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1481
|
+
/**
|
|
1482
|
+
*
|
|
1483
|
+
* @type {string}
|
|
1484
|
+
* @memberof AgentUpdate
|
|
1485
|
+
*/
|
|
1486
|
+
'readonly_wallet_address'?: string | null;
|
|
1487
|
+
/**
|
|
1488
|
+
*
|
|
1489
|
+
* @type {string}
|
|
1490
|
+
* @memberof AgentUpdate
|
|
1491
|
+
*/
|
|
1492
|
+
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1493
|
+
/**
|
|
1494
|
+
*
|
|
1495
|
+
* @type {object}
|
|
1496
|
+
* @memberof AgentUpdate
|
|
1497
|
+
*/
|
|
1498
|
+
'skills'?: object | null;
|
|
1499
|
+
/**
|
|
1500
|
+
*
|
|
1501
|
+
* @type {string}
|
|
1502
|
+
* @memberof AgentUpdate
|
|
1503
|
+
*/
|
|
1504
|
+
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1505
|
+
/**
|
|
1506
|
+
*
|
|
1507
|
+
* @type {Array<AgentAutonomous>}
|
|
1508
|
+
* @memberof AgentUpdate
|
|
1509
|
+
*/
|
|
1510
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1511
|
+
/**
|
|
1512
|
+
*
|
|
1513
|
+
* @type {boolean}
|
|
1514
|
+
* @memberof AgentUpdate
|
|
1515
|
+
*/
|
|
1516
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1517
|
+
/**
|
|
1518
|
+
*
|
|
1519
|
+
* @type {string}
|
|
1520
|
+
* @memberof AgentUpdate
|
|
1521
|
+
*/
|
|
1522
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
1523
|
+
/**
|
|
1524
|
+
*
|
|
1525
|
+
* @type {object}
|
|
1526
|
+
* @memberof AgentUpdate
|
|
1527
|
+
*/
|
|
1528
|
+
'telegram_config'?: object | null;
|
|
1232
1529
|
/**
|
|
1233
1530
|
*
|
|
1234
1531
|
* @type {string}
|
|
1235
1532
|
* @memberof AgentUpdate
|
|
1236
1533
|
*/
|
|
1237
|
-
'
|
|
1534
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
1238
1535
|
/**
|
|
1239
1536
|
*
|
|
1240
|
-
* @type {
|
|
1537
|
+
* @type {string}
|
|
1241
1538
|
* @memberof AgentUpdate
|
|
1242
1539
|
*/
|
|
1243
|
-
'
|
|
1540
|
+
'upstream_id'?: string | null;
|
|
1244
1541
|
/**
|
|
1245
1542
|
*
|
|
1246
|
-
* @type {
|
|
1543
|
+
* @type {object}
|
|
1247
1544
|
* @memberof AgentUpdate
|
|
1248
1545
|
*/
|
|
1249
|
-
'
|
|
1546
|
+
'upstream_extra'?: object | null;
|
|
1547
|
+
}
|
|
1548
|
+
export declare const AgentUpdateWalletProviderEnum: {
|
|
1549
|
+
readonly Cdp: "cdp";
|
|
1550
|
+
readonly Readonly: "readonly";
|
|
1551
|
+
};
|
|
1552
|
+
export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
|
|
1553
|
+
export declare const AgentUpdateNetworkIdEnum: {
|
|
1554
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
1555
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
1556
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
1557
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
1558
|
+
readonly BaseMainnet: "base-mainnet";
|
|
1559
|
+
readonly BaseSepolia: "base-sepolia";
|
|
1560
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
1561
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
1562
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
1563
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
1564
|
+
readonly Solana: "solana";
|
|
1565
|
+
};
|
|
1566
|
+
export type AgentUpdateNetworkIdEnum = typeof AgentUpdateNetworkIdEnum[keyof typeof AgentUpdateNetworkIdEnum];
|
|
1567
|
+
export declare const AgentUpdateShortTermMemoryStrategyEnum: {
|
|
1568
|
+
readonly Trim: "trim";
|
|
1569
|
+
readonly Summarize: "summarize";
|
|
1570
|
+
};
|
|
1571
|
+
export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTermMemoryStrategyEnum[keyof typeof AgentUpdateShortTermMemoryStrategyEnum];
|
|
1572
|
+
/**
|
|
1573
|
+
* Agent update model.
|
|
1574
|
+
* @export
|
|
1575
|
+
* @interface AgentUserInput
|
|
1576
|
+
*/
|
|
1577
|
+
export interface AgentUserInput {
|
|
1250
1578
|
/**
|
|
1251
1579
|
*
|
|
1252
1580
|
* @type {string}
|
|
1253
|
-
* @memberof
|
|
1581
|
+
* @memberof AgentUserInput
|
|
1254
1582
|
*/
|
|
1255
|
-
'
|
|
1583
|
+
'name': string | null;
|
|
1256
1584
|
/**
|
|
1257
1585
|
*
|
|
1258
1586
|
* @type {string}
|
|
1259
|
-
* @memberof
|
|
1587
|
+
* @memberof AgentUserInput
|
|
1260
1588
|
*/
|
|
1261
|
-
'
|
|
1589
|
+
'picture'?: string | null;
|
|
1262
1590
|
/**
|
|
1263
1591
|
*
|
|
1264
1592
|
* @type {string}
|
|
1265
|
-
* @memberof
|
|
1593
|
+
* @memberof AgentUserInput
|
|
1266
1594
|
*/
|
|
1267
|
-
'
|
|
1595
|
+
'purpose'?: string | null;
|
|
1268
1596
|
/**
|
|
1269
1597
|
*
|
|
1270
1598
|
* @type {string}
|
|
1271
|
-
* @memberof
|
|
1599
|
+
* @memberof AgentUserInput
|
|
1272
1600
|
*/
|
|
1273
|
-
'
|
|
1601
|
+
'personality'?: string | null;
|
|
1274
1602
|
/**
|
|
1275
1603
|
*
|
|
1276
|
-
* @type {
|
|
1277
|
-
* @memberof
|
|
1604
|
+
* @type {string}
|
|
1605
|
+
* @memberof AgentUserInput
|
|
1278
1606
|
*/
|
|
1279
|
-
'
|
|
1607
|
+
'principles'?: string | null;
|
|
1280
1608
|
/**
|
|
1281
1609
|
* AI model identifier to be used by this agent for processing requests.
|
|
1282
1610
|
* @type {string}
|
|
1283
|
-
* @memberof
|
|
1611
|
+
* @memberof AgentUserInput
|
|
1284
1612
|
*/
|
|
1285
1613
|
'model'?: string;
|
|
1286
1614
|
/**
|
|
1287
1615
|
*
|
|
1288
1616
|
* @type {string}
|
|
1289
|
-
* @memberof
|
|
1617
|
+
* @memberof AgentUserInput
|
|
1290
1618
|
*/
|
|
1291
1619
|
'prompt'?: string | null;
|
|
1292
1620
|
/**
|
|
1293
1621
|
*
|
|
1294
1622
|
* @type {string}
|
|
1295
|
-
* @memberof
|
|
1623
|
+
* @memberof AgentUserInput
|
|
1296
1624
|
*/
|
|
1297
1625
|
'prompt_append'?: string | null;
|
|
1298
1626
|
/**
|
|
1299
1627
|
*
|
|
1300
1628
|
* @type {number}
|
|
1301
|
-
* @memberof
|
|
1629
|
+
* @memberof AgentUserInput
|
|
1302
1630
|
*/
|
|
1303
1631
|
'temperature'?: number | null;
|
|
1304
1632
|
/**
|
|
1305
1633
|
*
|
|
1306
1634
|
* @type {number}
|
|
1307
|
-
* @memberof
|
|
1635
|
+
* @memberof AgentUserInput
|
|
1308
1636
|
*/
|
|
1309
1637
|
'frequency_penalty'?: number | null;
|
|
1310
1638
|
/**
|
|
1311
1639
|
*
|
|
1312
1640
|
* @type {number}
|
|
1313
|
-
* @memberof
|
|
1641
|
+
* @memberof AgentUserInput
|
|
1314
1642
|
*/
|
|
1315
1643
|
'presence_penalty'?: number | null;
|
|
1316
1644
|
/**
|
|
1317
1645
|
*
|
|
1318
1646
|
* @type {string}
|
|
1319
|
-
* @memberof
|
|
1320
|
-
*/
|
|
1321
|
-
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1322
|
-
/**
|
|
1323
|
-
*
|
|
1324
|
-
* @type {Array<AgentAutonomous>}
|
|
1325
|
-
* @memberof AgentUpdate
|
|
1647
|
+
* @memberof AgentUserInput
|
|
1326
1648
|
*/
|
|
1327
|
-
'
|
|
1649
|
+
'wallet_provider'?: AgentUserInputWalletProviderEnum | null;
|
|
1328
1650
|
/**
|
|
1329
1651
|
*
|
|
1330
1652
|
* @type {string}
|
|
1331
|
-
* @memberof
|
|
1653
|
+
* @memberof AgentUserInput
|
|
1332
1654
|
*/
|
|
1333
|
-
'
|
|
1655
|
+
'readonly_wallet_address'?: string | null;
|
|
1334
1656
|
/**
|
|
1335
1657
|
*
|
|
1336
|
-
* @type {
|
|
1337
|
-
* @memberof
|
|
1658
|
+
* @type {string}
|
|
1659
|
+
* @memberof AgentUserInput
|
|
1338
1660
|
*/
|
|
1339
|
-
'
|
|
1661
|
+
'network_id'?: AgentUserInputNetworkIdEnum | null;
|
|
1340
1662
|
/**
|
|
1341
1663
|
*
|
|
1342
1664
|
* @type {object}
|
|
1343
|
-
* @memberof
|
|
1665
|
+
* @memberof AgentUserInput
|
|
1344
1666
|
*/
|
|
1345
1667
|
'skills'?: object | null;
|
|
1346
1668
|
/**
|
|
1347
1669
|
*
|
|
1348
1670
|
* @type {string}
|
|
1349
|
-
* @memberof
|
|
1350
|
-
*/
|
|
1351
|
-
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1352
|
-
/**
|
|
1353
|
-
*
|
|
1354
|
-
* @type {string}
|
|
1355
|
-
* @memberof AgentUpdate
|
|
1356
|
-
*/
|
|
1357
|
-
'readonly_wallet_address'?: string | null;
|
|
1358
|
-
/**
|
|
1359
|
-
*
|
|
1360
|
-
* @type {string}
|
|
1361
|
-
* @memberof AgentUpdate
|
|
1671
|
+
* @memberof AgentUserInput
|
|
1362
1672
|
*/
|
|
1363
|
-
'
|
|
1673
|
+
'short_term_memory_strategy'?: AgentUserInputShortTermMemoryStrategyEnum | null;
|
|
1364
1674
|
/**
|
|
1365
1675
|
*
|
|
1366
|
-
* @type {
|
|
1367
|
-
* @memberof
|
|
1676
|
+
* @type {Array<AgentAutonomous>}
|
|
1677
|
+
* @memberof AgentUserInput
|
|
1368
1678
|
*/
|
|
1369
|
-
'
|
|
1679
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1370
1680
|
/**
|
|
1371
1681
|
*
|
|
1372
1682
|
* @type {boolean}
|
|
1373
|
-
* @memberof
|
|
1683
|
+
* @memberof AgentUserInput
|
|
1374
1684
|
*/
|
|
1375
1685
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1376
1686
|
/**
|
|
1377
1687
|
*
|
|
1378
1688
|
* @type {string}
|
|
1379
|
-
* @memberof
|
|
1689
|
+
* @memberof AgentUserInput
|
|
1380
1690
|
*/
|
|
1381
1691
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1382
1692
|
/**
|
|
1383
1693
|
*
|
|
1384
1694
|
* @type {object}
|
|
1385
|
-
* @memberof
|
|
1695
|
+
* @memberof AgentUserInput
|
|
1386
1696
|
*/
|
|
1387
1697
|
'telegram_config'?: object | null;
|
|
1388
1698
|
/**
|
|
1389
1699
|
*
|
|
1390
1700
|
* @type {string}
|
|
1391
|
-
* @memberof
|
|
1701
|
+
* @memberof AgentUserInput
|
|
1392
1702
|
*/
|
|
1393
1703
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
1394
1704
|
}
|
|
1395
|
-
export declare const
|
|
1396
|
-
readonly Public: "public";
|
|
1397
|
-
readonly Private: "private";
|
|
1398
|
-
};
|
|
1399
|
-
export type AgentUpdateModeEnum = typeof AgentUpdateModeEnum[keyof typeof AgentUpdateModeEnum];
|
|
1400
|
-
export declare const AgentUpdateShortTermMemoryStrategyEnum: {
|
|
1401
|
-
readonly Trim: "trim";
|
|
1402
|
-
readonly Summarize: "summarize";
|
|
1403
|
-
};
|
|
1404
|
-
export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTermMemoryStrategyEnum[keyof typeof AgentUpdateShortTermMemoryStrategyEnum];
|
|
1405
|
-
export declare const AgentUpdateWalletProviderEnum: {
|
|
1705
|
+
export declare const AgentUserInputWalletProviderEnum: {
|
|
1406
1706
|
readonly Cdp: "cdp";
|
|
1407
1707
|
readonly Readonly: "readonly";
|
|
1408
1708
|
};
|
|
1409
|
-
export type
|
|
1410
|
-
export declare const
|
|
1709
|
+
export type AgentUserInputWalletProviderEnum = typeof AgentUserInputWalletProviderEnum[keyof typeof AgentUserInputWalletProviderEnum];
|
|
1710
|
+
export declare const AgentUserInputNetworkIdEnum: {
|
|
1411
1711
|
readonly EthereumMainnet: "ethereum-mainnet";
|
|
1412
1712
|
readonly EthereumSepolia: "ethereum-sepolia";
|
|
1413
1713
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
@@ -1420,20 +1720,12 @@ export declare const AgentUpdateNetworkIdEnum: {
|
|
|
1420
1720
|
readonly OptimismSepolia: "optimism-sepolia";
|
|
1421
1721
|
readonly Solana: "solana";
|
|
1422
1722
|
};
|
|
1423
|
-
export type
|
|
1424
|
-
export declare const
|
|
1425
|
-
readonly
|
|
1426
|
-
readonly
|
|
1427
|
-
readonly PolygonMainnet: "polygon-mainnet";
|
|
1428
|
-
readonly PolygonMumbai: "polygon-mumbai";
|
|
1429
|
-
readonly BaseMainnet: "base-mainnet";
|
|
1430
|
-
readonly BaseSepolia: "base-sepolia";
|
|
1431
|
-
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
1432
|
-
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
1433
|
-
readonly OptimismMainnet: "optimism-mainnet";
|
|
1434
|
-
readonly OptimismSepolia: "optimism-sepolia";
|
|
1723
|
+
export type AgentUserInputNetworkIdEnum = typeof AgentUserInputNetworkIdEnum[keyof typeof AgentUserInputNetworkIdEnum];
|
|
1724
|
+
export declare const AgentUserInputShortTermMemoryStrategyEnum: {
|
|
1725
|
+
readonly Trim: "trim";
|
|
1726
|
+
readonly Summarize: "summarize";
|
|
1435
1727
|
};
|
|
1436
|
-
export type
|
|
1728
|
+
export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputShortTermMemoryStrategyEnum[keyof typeof AgentUserInputShortTermMemoryStrategyEnum];
|
|
1437
1729
|
/**
|
|
1438
1730
|
* Model for individual asset with symbol and balance.
|
|
1439
1731
|
* @export
|
|
@@ -2711,13 +3003,6 @@ export declare const EventType: {
|
|
|
2711
3003
|
readonly RechargeBonus: "recharge_bonus";
|
|
2712
3004
|
};
|
|
2713
3005
|
export type EventType = typeof EventType[keyof typeof EventType];
|
|
2714
|
-
/**
|
|
2715
|
-
* Fee percentage of the agent
|
|
2716
|
-
* @export
|
|
2717
|
-
* @interface FeePercentage
|
|
2718
|
-
*/
|
|
2719
|
-
export interface FeePercentage {
|
|
2720
|
-
}
|
|
2721
3006
|
/**
|
|
2722
3007
|
* Response model for single generation detail.
|
|
2723
3008
|
* @export
|
|
@@ -3255,15 +3540,6 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3255
3540
|
* @throws {RequiredError}
|
|
3256
3541
|
*/
|
|
3257
3542
|
resetAgentApiKey: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3258
|
-
/**
|
|
3259
|
-
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3260
|
-
* @summary Update Agent
|
|
3261
|
-
* @param {string} agentId ID of the agent to update
|
|
3262
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3263
|
-
* @param {*} [options] Override http request option.
|
|
3264
|
-
* @throws {RequiredError}
|
|
3265
|
-
*/
|
|
3266
|
-
updateAgent: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3267
3543
|
/**
|
|
3268
3544
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
|
|
3269
3545
|
* @summary Validate Agent Create
|
|
@@ -3310,7 +3586,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
3310
3586
|
* @param {*} [options] Override http request option.
|
|
3311
3587
|
* @throws {RequiredError}
|
|
3312
3588
|
*/
|
|
3313
|
-
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3589
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>>;
|
|
3314
3590
|
/**
|
|
3315
3591
|
* Get the API keys for an agent. Returns both private (sk-) and public (pk-) API keys for the agent. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3316
3592
|
* @summary Get Agent API Key
|
|
@@ -3372,7 +3648,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
3372
3648
|
* @param {*} [options] Override http request option.
|
|
3373
3649
|
* @throws {RequiredError}
|
|
3374
3650
|
*/
|
|
3375
|
-
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3651
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>>;
|
|
3376
3652
|
/**
|
|
3377
3653
|
* Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3378
3654
|
* @summary Reset Agent API Key
|
|
@@ -3381,15 +3657,6 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
3381
3657
|
* @throws {RequiredError}
|
|
3382
3658
|
*/
|
|
3383
3659
|
resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentApiKeyResponse>>;
|
|
3384
|
-
/**
|
|
3385
|
-
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3386
|
-
* @summary Update Agent
|
|
3387
|
-
* @param {string} agentId ID of the agent to update
|
|
3388
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3389
|
-
* @param {*} [options] Override http request option.
|
|
3390
|
-
* @throws {RequiredError}
|
|
3391
|
-
*/
|
|
3392
|
-
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
3393
3660
|
/**
|
|
3394
3661
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
|
|
3395
3662
|
* @summary Validate Agent Create
|
|
@@ -3436,7 +3703,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3436
3703
|
* @param {*} [options] Override http request option.
|
|
3437
3704
|
* @throws {RequiredError}
|
|
3438
3705
|
*/
|
|
3439
|
-
getAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3706
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse>;
|
|
3440
3707
|
/**
|
|
3441
3708
|
* Get the API keys for an agent. Returns both private (sk-) and public (pk-) API keys for the agent. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3442
3709
|
* @summary Get Agent API Key
|
|
@@ -3498,7 +3765,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3498
3765
|
* @param {*} [options] Override http request option.
|
|
3499
3766
|
* @throws {RequiredError}
|
|
3500
3767
|
*/
|
|
3501
|
-
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3768
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse>;
|
|
3502
3769
|
/**
|
|
3503
3770
|
* Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3504
3771
|
* @summary Reset Agent API Key
|
|
@@ -3507,15 +3774,6 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3507
3774
|
* @throws {RequiredError}
|
|
3508
3775
|
*/
|
|
3509
3776
|
resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse>;
|
|
3510
|
-
/**
|
|
3511
|
-
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3512
|
-
* @summary Update Agent
|
|
3513
|
-
* @param {string} agentId ID of the agent to update
|
|
3514
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3515
|
-
* @param {*} [options] Override http request option.
|
|
3516
|
-
* @throws {RequiredError}
|
|
3517
|
-
*/
|
|
3518
|
-
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
3519
3777
|
/**
|
|
3520
3778
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
|
|
3521
3779
|
* @summary Validate Agent Create
|
|
@@ -3549,7 +3807,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3549
3807
|
* @throws {RequiredError}
|
|
3550
3808
|
* @memberof AgentApi
|
|
3551
3809
|
*/
|
|
3552
|
-
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any>>;
|
|
3810
|
+
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any, {}>>;
|
|
3553
3811
|
/**
|
|
3554
3812
|
* 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
|
|
3555
3813
|
* @summary Export Agent
|
|
@@ -3558,7 +3816,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3558
3816
|
* @throws {RequiredError}
|
|
3559
3817
|
* @memberof AgentApi
|
|
3560
3818
|
*/
|
|
3561
|
-
exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
3819
|
+
exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3562
3820
|
/**
|
|
3563
3821
|
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3564
3822
|
* @summary Get Agent
|
|
@@ -3567,7 +3825,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3567
3825
|
* @throws {RequiredError}
|
|
3568
3826
|
* @memberof AgentApi
|
|
3569
3827
|
*/
|
|
3570
|
-
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any,
|
|
3828
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any, {}>>;
|
|
3571
3829
|
/**
|
|
3572
3830
|
* Get the API keys for an agent. Returns both private (sk-) and public (pk-) API keys for the agent. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3573
3831
|
* @summary Get Agent API Key
|
|
@@ -3576,7 +3834,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3576
3834
|
* @throws {RequiredError}
|
|
3577
3835
|
* @memberof AgentApi
|
|
3578
3836
|
*/
|
|
3579
|
-
getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
|
|
3837
|
+
getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any, {}>>;
|
|
3580
3838
|
/**
|
|
3581
3839
|
* Get the assets and balances for an agent\'s wallet
|
|
3582
3840
|
* @summary Get Agent Assets
|
|
@@ -3585,7 +3843,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3585
3843
|
* @throws {RequiredError}
|
|
3586
3844
|
* @memberof AgentApi
|
|
3587
3845
|
*/
|
|
3588
|
-
getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any>>;
|
|
3846
|
+
getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any, {}>>;
|
|
3589
3847
|
/**
|
|
3590
3848
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
3591
3849
|
* @summary Get Agent Statistics
|
|
@@ -3594,7 +3852,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3594
3852
|
* @throws {RequiredError}
|
|
3595
3853
|
* @memberof AgentApi
|
|
3596
3854
|
*/
|
|
3597
|
-
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any>>;
|
|
3855
|
+
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any, {}>>;
|
|
3598
3856
|
/**
|
|
3599
3857
|
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3600
3858
|
* @summary Get Agents
|
|
@@ -3605,7 +3863,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3605
3863
|
* @throws {RequiredError}
|
|
3606
3864
|
* @memberof AgentApi
|
|
3607
3865
|
*/
|
|
3608
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
3866
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
|
|
3609
3867
|
/**
|
|
3610
3868
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
3611
3869
|
* @summary Skill History
|
|
@@ -3616,7 +3874,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3616
3874
|
* @throws {RequiredError}
|
|
3617
3875
|
* @memberof AgentApi
|
|
3618
3876
|
*/
|
|
3619
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
3877
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
|
|
3620
3878
|
/**
|
|
3621
3879
|
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
3622
3880
|
* @summary Import Agent
|
|
@@ -3626,7 +3884,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3626
3884
|
* @throws {RequiredError}
|
|
3627
3885
|
* @memberof AgentApi
|
|
3628
3886
|
*/
|
|
3629
|
-
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
3887
|
+
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
3630
3888
|
/**
|
|
3631
3889
|
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
|
|
3632
3890
|
* @summary Override Agent
|
|
@@ -3636,7 +3894,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3636
3894
|
* @throws {RequiredError}
|
|
3637
3895
|
* @memberof AgentApi
|
|
3638
3896
|
*/
|
|
3639
|
-
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any,
|
|
3897
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any, {}>>;
|
|
3640
3898
|
/**
|
|
3641
3899
|
* Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3642
3900
|
* @summary Reset Agent API Key
|
|
@@ -3645,17 +3903,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3645
3903
|
* @throws {RequiredError}
|
|
3646
3904
|
* @memberof AgentApi
|
|
3647
3905
|
*/
|
|
3648
|
-
resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
|
|
3649
|
-
/**
|
|
3650
|
-
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
3651
|
-
* @summary Update Agent
|
|
3652
|
-
* @param {string} agentId ID of the agent to update
|
|
3653
|
-
* @param {AgentUpdate} [agentUpdate]
|
|
3654
|
-
* @param {*} [options] Override http request option.
|
|
3655
|
-
* @throws {RequiredError}
|
|
3656
|
-
* @memberof AgentApi
|
|
3657
|
-
*/
|
|
3658
|
-
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
3906
|
+
resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any, {}>>;
|
|
3659
3907
|
/**
|
|
3660
3908
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
|
|
3661
3909
|
* @summary Validate Agent Create
|
|
@@ -3664,7 +3912,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3664
3912
|
* @throws {RequiredError}
|
|
3665
3913
|
* @memberof AgentApi
|
|
3666
3914
|
*/
|
|
3667
|
-
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3915
|
+
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
3668
3916
|
/**
|
|
3669
3917
|
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
3670
3918
|
* @summary Validate Agent Update
|
|
@@ -3674,7 +3922,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3674
3922
|
* @throws {RequiredError}
|
|
3675
3923
|
* @memberof AgentApi
|
|
3676
3924
|
*/
|
|
3677
|
-
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3925
|
+
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
3678
3926
|
}
|
|
3679
3927
|
/**
|
|
3680
3928
|
* ChatApi - axios parameter creator
|
|
@@ -3985,7 +4233,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
3985
4233
|
* @throws {RequiredError}
|
|
3986
4234
|
* @memberof ChatApi
|
|
3987
4235
|
*/
|
|
3988
|
-
createChatThread(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
4236
|
+
createChatThread(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any, {}>>;
|
|
3989
4237
|
/**
|
|
3990
4238
|
* Delete a specific chat thread for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
3991
4239
|
* @summary Delete a chat thread
|
|
@@ -3995,7 +4243,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
3995
4243
|
* @throws {RequiredError}
|
|
3996
4244
|
* @memberof ChatApi
|
|
3997
4245
|
*/
|
|
3998
|
-
deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4246
|
+
deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
3999
4247
|
/**
|
|
4000
4248
|
* Retrieve a specific chat thread by its ID for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
4001
4249
|
* @summary Get chat thread by ID
|
|
@@ -4005,7 +4253,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
4005
4253
|
* @throws {RequiredError}
|
|
4006
4254
|
* @memberof ChatApi
|
|
4007
4255
|
*/
|
|
4008
|
-
getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
4256
|
+
getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any, {}>>;
|
|
4009
4257
|
/**
|
|
4010
4258
|
* Retrieve a specific chat message by its ID for the current user. Returns 404 if not found or not owned by the user.
|
|
4011
4259
|
* @summary Get message by ID
|
|
@@ -4014,7 +4262,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
4014
4262
|
* @throws {RequiredError}
|
|
4015
4263
|
* @memberof ChatApi
|
|
4016
4264
|
*/
|
|
4017
|
-
getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage, any>>;
|
|
4265
|
+
getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage, any, {}>>;
|
|
4018
4266
|
/**
|
|
4019
4267
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
4020
4268
|
* @summary Skill History
|
|
@@ -4025,7 +4273,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
4025
4273
|
* @throws {RequiredError}
|
|
4026
4274
|
* @memberof ChatApi
|
|
4027
4275
|
*/
|
|
4028
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
4276
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
|
|
4029
4277
|
/**
|
|
4030
4278
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
4031
4279
|
* @summary List chat threads for an agent
|
|
@@ -4034,7 +4282,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
4034
4282
|
* @throws {RequiredError}
|
|
4035
4283
|
* @memberof ChatApi
|
|
4036
4284
|
*/
|
|
4037
|
-
listChatsForAgent(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat[], any>>;
|
|
4285
|
+
listChatsForAgent(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat[], any, {}>>;
|
|
4038
4286
|
/**
|
|
4039
4287
|
* Retrieve the message history for a specific chat thread with cursor-based pagination.
|
|
4040
4288
|
* @summary List messages in a chat thread
|
|
@@ -4046,7 +4294,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
4046
4294
|
* @throws {RequiredError}
|
|
4047
4295
|
* @memberof ChatApi
|
|
4048
4296
|
*/
|
|
4049
|
-
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
4297
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
|
|
4050
4298
|
/**
|
|
4051
4299
|
* Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
|
|
4052
4300
|
* @summary Retry a message in a chat thread
|
|
@@ -4056,7 +4304,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
4056
4304
|
* @throws {RequiredError}
|
|
4057
4305
|
* @memberof ChatApi
|
|
4058
4306
|
*/
|
|
4059
|
-
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
4307
|
+
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any, {}>>;
|
|
4060
4308
|
/**
|
|
4061
4309
|
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
4062
4310
|
* @summary Send a message to a chat thread
|
|
@@ -4067,7 +4315,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
4067
4315
|
* @throws {RequiredError}
|
|
4068
4316
|
* @memberof ChatApi
|
|
4069
4317
|
*/
|
|
4070
|
-
sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
4318
|
+
sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any, {}>>;
|
|
4071
4319
|
/**
|
|
4072
4320
|
* Update details of a specific chat thread. Currently only supports updating the summary.
|
|
4073
4321
|
* @summary Update a chat thread
|
|
@@ -4078,7 +4326,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
4078
4326
|
* @throws {RequiredError}
|
|
4079
4327
|
* @memberof ChatApi
|
|
4080
4328
|
*/
|
|
4081
|
-
updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
4329
|
+
updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any, {}>>;
|
|
4082
4330
|
}
|
|
4083
4331
|
/**
|
|
4084
4332
|
* CreditApi - axios parameter creator
|
|
@@ -4254,7 +4502,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
4254
4502
|
* @throws {RequiredError}
|
|
4255
4503
|
* @memberof CreditApi
|
|
4256
4504
|
*/
|
|
4257
|
-
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEvent, any>>;
|
|
4505
|
+
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEvent, any, {}>>;
|
|
4258
4506
|
/**
|
|
4259
4507
|
* Get or create a user\'s credit account. This endpoint will create a new account if it does not exist. Not in the readonly router because it may create a new account.
|
|
4260
4508
|
* @summary Get User Account
|
|
@@ -4262,7 +4510,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
4262
4510
|
* @throws {RequiredError}
|
|
4263
4511
|
* @memberof CreditApi
|
|
4264
4512
|
*/
|
|
4265
|
-
getUserAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditAccount, any>>;
|
|
4513
|
+
getUserAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditAccount, any, {}>>;
|
|
4266
4514
|
/**
|
|
4267
4515
|
* List all income events for an agent account, with authorization check. Returns a paginated list of income events for the specified agent, only if the agent belongs to the user.
|
|
4268
4516
|
* @summary List Agent Income
|
|
@@ -4273,7 +4521,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
4273
4521
|
* @throws {RequiredError}
|
|
4274
4522
|
* @memberof CreditApi
|
|
4275
4523
|
*/
|
|
4276
|
-
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any>>;
|
|
4524
|
+
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any, {}>>;
|
|
4277
4525
|
/**
|
|
4278
4526
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
4279
4527
|
* @summary List User Events
|
|
@@ -4285,7 +4533,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
4285
4533
|
* @throws {RequiredError}
|
|
4286
4534
|
* @memberof CreditApi
|
|
4287
4535
|
*/
|
|
4288
|
-
listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any>>;
|
|
4536
|
+
listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any, {}>>;
|
|
4289
4537
|
/**
|
|
4290
4538
|
* List credit transactions for a user account, with optional filtering by transaction type and credit/debit. Returns a paginated list of transactions, each with optional associated event data.
|
|
4291
4539
|
* @summary List User Transactions
|
|
@@ -4297,7 +4545,206 @@ export declare class CreditApi extends BaseAPI {
|
|
|
4297
4545
|
* @throws {RequiredError}
|
|
4298
4546
|
* @memberof CreditApi
|
|
4299
4547
|
*/
|
|
4300
|
-
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditTransactionsResponse, any>>;
|
|
4548
|
+
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditTransactionsResponse, any, {}>>;
|
|
4549
|
+
}
|
|
4550
|
+
/**
|
|
4551
|
+
* DraftApi - axios parameter creator
|
|
4552
|
+
* @export
|
|
4553
|
+
*/
|
|
4554
|
+
export declare const DraftApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4555
|
+
/**
|
|
4556
|
+
* Create a new agent draft. Creates a new draft with the provided agent configuration. The draft will be assigned a unique ID and agent ID, with the current user as the owner. The version is calculated as a hash of the input configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 500: Internal server error
|
|
4557
|
+
* @summary Create Agent Draft
|
|
4558
|
+
* @param {AgentUserInput} agentUserInput
|
|
4559
|
+
* @param {*} [options] Override http request option.
|
|
4560
|
+
* @throws {RequiredError}
|
|
4561
|
+
*/
|
|
4562
|
+
createAgentDraft: (agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4563
|
+
/**
|
|
4564
|
+
* Get a specific draft by ID. Retrieves a specific draft for the given agent and draft ID. This endpoint is useful for viewing detailed information about a particular draft version. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found or user doesn\'t have access to this draft - 500: Internal server error
|
|
4565
|
+
* @summary Get Agent Draft By Id
|
|
4566
|
+
* @param {string} agentId Agent ID
|
|
4567
|
+
* @param {string} draftId Draft ID
|
|
4568
|
+
* @param {*} [options] Override http request option.
|
|
4569
|
+
* @throws {RequiredError}
|
|
4570
|
+
*/
|
|
4571
|
+
getAgentDraftById: (agentId: string, draftId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4572
|
+
/**
|
|
4573
|
+
* Get drafts for an agent. Retrieves the latest 10 drafts for the specified agent, ordered by creation time (most recent first). This endpoint is useful for viewing draft history and finding rollback targets. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4574
|
+
* @summary Get Agent Drafts
|
|
4575
|
+
* @param {string} agentId Agent ID
|
|
4576
|
+
* @param {*} [options] Override http request option.
|
|
4577
|
+
* @throws {RequiredError}
|
|
4578
|
+
*/
|
|
4579
|
+
getAgentDrafts: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4580
|
+
/**
|
|
4581
|
+
* Get the latest draft for an agent. Retrieves the most recent draft for the specified agent. The draft is ordered by creation time, with the most recent draft returned. For backward compatibility, if no draft exists for the agent, this endpoint will check if the agent exists in the agents table and automatically create a draft from the existing agent data. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4582
|
+
* @summary Get Agent Latest Draft
|
|
4583
|
+
* @param {string} agentId Agent ID
|
|
4584
|
+
* @param {*} [options] Override http request option.
|
|
4585
|
+
* @throws {RequiredError}
|
|
4586
|
+
*/
|
|
4587
|
+
getAgentLatestDraft: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4588
|
+
/**
|
|
4589
|
+
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4590
|
+
* @summary Update Agent Draft
|
|
4591
|
+
* @param {string} agentId Agent ID
|
|
4592
|
+
* @param {AgentUserInput} agentUserInput
|
|
4593
|
+
* @param {*} [options] Override http request option.
|
|
4594
|
+
* @throws {RequiredError}
|
|
4595
|
+
*/
|
|
4596
|
+
updateAgentDraft: (agentId: string, agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4597
|
+
};
|
|
4598
|
+
/**
|
|
4599
|
+
* DraftApi - functional programming interface
|
|
4600
|
+
* @export
|
|
4601
|
+
*/
|
|
4602
|
+
export declare const DraftApiFp: (configuration?: Configuration) => {
|
|
4603
|
+
/**
|
|
4604
|
+
* Create a new agent draft. Creates a new draft with the provided agent configuration. The draft will be assigned a unique ID and agent ID, with the current user as the owner. The version is calculated as a hash of the input configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 500: Internal server error
|
|
4605
|
+
* @summary Create Agent Draft
|
|
4606
|
+
* @param {AgentUserInput} agentUserInput
|
|
4607
|
+
* @param {*} [options] Override http request option.
|
|
4608
|
+
* @throws {RequiredError}
|
|
4609
|
+
*/
|
|
4610
|
+
createAgentDraft(agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentDraft>>;
|
|
4611
|
+
/**
|
|
4612
|
+
* Get a specific draft by ID. Retrieves a specific draft for the given agent and draft ID. This endpoint is useful for viewing detailed information about a particular draft version. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found or user doesn\'t have access to this draft - 500: Internal server error
|
|
4613
|
+
* @summary Get Agent Draft By Id
|
|
4614
|
+
* @param {string} agentId Agent ID
|
|
4615
|
+
* @param {string} draftId Draft ID
|
|
4616
|
+
* @param {*} [options] Override http request option.
|
|
4617
|
+
* @throws {RequiredError}
|
|
4618
|
+
*/
|
|
4619
|
+
getAgentDraftById(agentId: string, draftId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentDraft>>;
|
|
4620
|
+
/**
|
|
4621
|
+
* Get drafts for an agent. Retrieves the latest 10 drafts for the specified agent, ordered by creation time (most recent first). This endpoint is useful for viewing draft history and finding rollback targets. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4622
|
+
* @summary Get Agent Drafts
|
|
4623
|
+
* @param {string} agentId Agent ID
|
|
4624
|
+
* @param {*} [options] Override http request option.
|
|
4625
|
+
* @throws {RequiredError}
|
|
4626
|
+
*/
|
|
4627
|
+
getAgentDrafts(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentDraft>>>;
|
|
4628
|
+
/**
|
|
4629
|
+
* Get the latest draft for an agent. Retrieves the most recent draft for the specified agent. The draft is ordered by creation time, with the most recent draft returned. For backward compatibility, if no draft exists for the agent, this endpoint will check if the agent exists in the agents table and automatically create a draft from the existing agent data. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4630
|
+
* @summary Get Agent Latest Draft
|
|
4631
|
+
* @param {string} agentId Agent ID
|
|
4632
|
+
* @param {*} [options] Override http request option.
|
|
4633
|
+
* @throws {RequiredError}
|
|
4634
|
+
*/
|
|
4635
|
+
getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentDraft>>;
|
|
4636
|
+
/**
|
|
4637
|
+
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4638
|
+
* @summary Update Agent Draft
|
|
4639
|
+
* @param {string} agentId Agent ID
|
|
4640
|
+
* @param {AgentUserInput} agentUserInput
|
|
4641
|
+
* @param {*} [options] Override http request option.
|
|
4642
|
+
* @throws {RequiredError}
|
|
4643
|
+
*/
|
|
4644
|
+
updateAgentDraft(agentId: string, agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentDraft>>;
|
|
4645
|
+
};
|
|
4646
|
+
/**
|
|
4647
|
+
* DraftApi - factory interface
|
|
4648
|
+
* @export
|
|
4649
|
+
*/
|
|
4650
|
+
export declare const DraftApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4651
|
+
/**
|
|
4652
|
+
* Create a new agent draft. Creates a new draft with the provided agent configuration. The draft will be assigned a unique ID and agent ID, with the current user as the owner. The version is calculated as a hash of the input configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 500: Internal server error
|
|
4653
|
+
* @summary Create Agent Draft
|
|
4654
|
+
* @param {AgentUserInput} agentUserInput
|
|
4655
|
+
* @param {*} [options] Override http request option.
|
|
4656
|
+
* @throws {RequiredError}
|
|
4657
|
+
*/
|
|
4658
|
+
createAgentDraft(agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig): AxiosPromise<AgentDraft>;
|
|
4659
|
+
/**
|
|
4660
|
+
* Get a specific draft by ID. Retrieves a specific draft for the given agent and draft ID. This endpoint is useful for viewing detailed information about a particular draft version. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found or user doesn\'t have access to this draft - 500: Internal server error
|
|
4661
|
+
* @summary Get Agent Draft By Id
|
|
4662
|
+
* @param {string} agentId Agent ID
|
|
4663
|
+
* @param {string} draftId Draft ID
|
|
4664
|
+
* @param {*} [options] Override http request option.
|
|
4665
|
+
* @throws {RequiredError}
|
|
4666
|
+
*/
|
|
4667
|
+
getAgentDraftById(agentId: string, draftId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentDraft>;
|
|
4668
|
+
/**
|
|
4669
|
+
* Get drafts for an agent. Retrieves the latest 10 drafts for the specified agent, ordered by creation time (most recent first). This endpoint is useful for viewing draft history and finding rollback targets. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4670
|
+
* @summary Get Agent Drafts
|
|
4671
|
+
* @param {string} agentId Agent ID
|
|
4672
|
+
* @param {*} [options] Override http request option.
|
|
4673
|
+
* @throws {RequiredError}
|
|
4674
|
+
*/
|
|
4675
|
+
getAgentDrafts(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentDraft>>;
|
|
4676
|
+
/**
|
|
4677
|
+
* Get the latest draft for an agent. Retrieves the most recent draft for the specified agent. The draft is ordered by creation time, with the most recent draft returned. For backward compatibility, if no draft exists for the agent, this endpoint will check if the agent exists in the agents table and automatically create a draft from the existing agent data. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4678
|
+
* @summary Get Agent Latest Draft
|
|
4679
|
+
* @param {string} agentId Agent ID
|
|
4680
|
+
* @param {*} [options] Override http request option.
|
|
4681
|
+
* @throws {RequiredError}
|
|
4682
|
+
*/
|
|
4683
|
+
getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentDraft>;
|
|
4684
|
+
/**
|
|
4685
|
+
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4686
|
+
* @summary Update Agent Draft
|
|
4687
|
+
* @param {string} agentId Agent ID
|
|
4688
|
+
* @param {AgentUserInput} agentUserInput
|
|
4689
|
+
* @param {*} [options] Override http request option.
|
|
4690
|
+
* @throws {RequiredError}
|
|
4691
|
+
*/
|
|
4692
|
+
updateAgentDraft(agentId: string, agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig): AxiosPromise<AgentDraft>;
|
|
4693
|
+
};
|
|
4694
|
+
/**
|
|
4695
|
+
* DraftApi - object-oriented interface
|
|
4696
|
+
* @export
|
|
4697
|
+
* @class DraftApi
|
|
4698
|
+
* @extends {BaseAPI}
|
|
4699
|
+
*/
|
|
4700
|
+
export declare class DraftApi extends BaseAPI {
|
|
4701
|
+
/**
|
|
4702
|
+
* Create a new agent draft. Creates a new draft with the provided agent configuration. The draft will be assigned a unique ID and agent ID, with the current user as the owner. The version is calculated as a hash of the input configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 500: Internal server error
|
|
4703
|
+
* @summary Create Agent Draft
|
|
4704
|
+
* @param {AgentUserInput} agentUserInput
|
|
4705
|
+
* @param {*} [options] Override http request option.
|
|
4706
|
+
* @throws {RequiredError}
|
|
4707
|
+
* @memberof DraftApi
|
|
4708
|
+
*/
|
|
4709
|
+
createAgentDraft(agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentDraft, any, {}>>;
|
|
4710
|
+
/**
|
|
4711
|
+
* Get a specific draft by ID. Retrieves a specific draft for the given agent and draft ID. This endpoint is useful for viewing detailed information about a particular draft version. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found or user doesn\'t have access to this draft - 500: Internal server error
|
|
4712
|
+
* @summary Get Agent Draft By Id
|
|
4713
|
+
* @param {string} agentId Agent ID
|
|
4714
|
+
* @param {string} draftId Draft ID
|
|
4715
|
+
* @param {*} [options] Override http request option.
|
|
4716
|
+
* @throws {RequiredError}
|
|
4717
|
+
* @memberof DraftApi
|
|
4718
|
+
*/
|
|
4719
|
+
getAgentDraftById(agentId: string, draftId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentDraft, any, {}>>;
|
|
4720
|
+
/**
|
|
4721
|
+
* Get drafts for an agent. Retrieves the latest 10 drafts for the specified agent, ordered by creation time (most recent first). This endpoint is useful for viewing draft history and finding rollback targets. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4722
|
+
* @summary Get Agent Drafts
|
|
4723
|
+
* @param {string} agentId Agent ID
|
|
4724
|
+
* @param {*} [options] Override http request option.
|
|
4725
|
+
* @throws {RequiredError}
|
|
4726
|
+
* @memberof DraftApi
|
|
4727
|
+
*/
|
|
4728
|
+
getAgentDrafts(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentDraft[], any, {}>>;
|
|
4729
|
+
/**
|
|
4730
|
+
* Get the latest draft for an agent. Retrieves the most recent draft for the specified agent. The draft is ordered by creation time, with the most recent draft returned. For backward compatibility, if no draft exists for the agent, this endpoint will check if the agent exists in the agents table and automatically create a draft from the existing agent data. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4731
|
+
* @summary Get Agent Latest Draft
|
|
4732
|
+
* @param {string} agentId Agent ID
|
|
4733
|
+
* @param {*} [options] Override http request option.
|
|
4734
|
+
* @throws {RequiredError}
|
|
4735
|
+
* @memberof DraftApi
|
|
4736
|
+
*/
|
|
4737
|
+
getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentDraft, any, {}>>;
|
|
4738
|
+
/**
|
|
4739
|
+
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
4740
|
+
* @summary Update Agent Draft
|
|
4741
|
+
* @param {string} agentId Agent ID
|
|
4742
|
+
* @param {AgentUserInput} agentUserInput
|
|
4743
|
+
* @param {*} [options] Override http request option.
|
|
4744
|
+
* @throws {RequiredError}
|
|
4745
|
+
* @memberof DraftApi
|
|
4746
|
+
*/
|
|
4747
|
+
updateAgentDraft(agentId: string, agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentDraft, any, {}>>;
|
|
4301
4748
|
}
|
|
4302
4749
|
/**
|
|
4303
4750
|
* GeneratorApi - axios parameter creator
|
|
@@ -4404,7 +4851,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
4404
4851
|
* @throws {RequiredError}
|
|
4405
4852
|
* @memberof GeneratorApi
|
|
4406
4853
|
*/
|
|
4407
|
-
generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentGenerateResponse, any>>;
|
|
4854
|
+
generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentGenerateResponse, any, {}>>;
|
|
4408
4855
|
/**
|
|
4409
4856
|
* Get specific project conversation history. **Path Parameters:** * `project_id` - Project ID to get conversation history for **Query Parameters:** * `user_id` - Optional user ID for access validation **Returns:** * `GenerationDetailResponse` - Contains full conversation history for the project **Raises:** * `HTTPException`: - 404: Project not found or access denied - 500: Failed to retrieve generation detail
|
|
4410
4857
|
* @summary Get Generation Detail by Project ID
|
|
@@ -4413,7 +4860,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
4413
4860
|
* @throws {RequiredError}
|
|
4414
4861
|
* @memberof GeneratorApi
|
|
4415
4862
|
*/
|
|
4416
|
-
getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationDetailResponse, any>>;
|
|
4863
|
+
getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationDetailResponse, any, {}>>;
|
|
4417
4864
|
/**
|
|
4418
4865
|
* Get all projects/generations for a user. **Query Parameters:** * `user_id` - Optional user ID to filter projects * `limit` - Maximum number of recent projects to return (default: 50, max: 100) **Returns:** * `GenerationsListResponse` - Contains list of projects with their conversation history **Raises:** * `HTTPException`: - 400: Invalid parameters - 500: Failed to retrieve generations
|
|
4419
4866
|
* @summary Get Generations List by User
|
|
@@ -4422,7 +4869,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
4422
4869
|
* @throws {RequiredError}
|
|
4423
4870
|
* @memberof GeneratorApi
|
|
4424
4871
|
*/
|
|
4425
|
-
getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationsListResponse, any>>;
|
|
4872
|
+
getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationsListResponse, any, {}>>;
|
|
4426
4873
|
}
|
|
4427
4874
|
/**
|
|
4428
4875
|
* HealthApi - axios parameter creator
|
|
@@ -4477,7 +4924,7 @@ export declare class HealthApi extends BaseAPI {
|
|
|
4477
4924
|
* @throws {RequiredError}
|
|
4478
4925
|
* @memberof HealthApi
|
|
4479
4926
|
*/
|
|
4480
|
-
healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4927
|
+
healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4481
4928
|
}
|
|
4482
4929
|
/**
|
|
4483
4930
|
* MetadataApi - axios parameter creator
|
|
@@ -4628,7 +5075,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
4628
5075
|
* @throws {RequiredError}
|
|
4629
5076
|
* @memberof MetadataApi
|
|
4630
5077
|
*/
|
|
4631
|
-
getAgentSchema(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5078
|
+
getAgentSchema(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4632
5079
|
/**
|
|
4633
5080
|
* Returns a list of all available LLM models in the system
|
|
4634
5081
|
* @summary Get all LLM models
|
|
@@ -4636,7 +5083,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
4636
5083
|
* @throws {RequiredError}
|
|
4637
5084
|
* @memberof MetadataApi
|
|
4638
5085
|
*/
|
|
4639
|
-
getLlms(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LLMModelInfoWithProviderName[], any>>;
|
|
5086
|
+
getLlms(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LLMModelInfoWithProviderName[], any, {}>>;
|
|
4640
5087
|
/**
|
|
4641
5088
|
* Get the icon for a specific skill
|
|
4642
5089
|
* @summary Get skill icon
|
|
@@ -4647,7 +5094,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
4647
5094
|
* @throws {RequiredError}
|
|
4648
5095
|
* @memberof MetadataApi
|
|
4649
5096
|
*/
|
|
4650
|
-
getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5097
|
+
getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4651
5098
|
/**
|
|
4652
5099
|
* Get the JSON schema for a specific skill
|
|
4653
5100
|
* @summary Get skill schema
|
|
@@ -4656,7 +5103,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
4656
5103
|
* @throws {RequiredError}
|
|
4657
5104
|
* @memberof MetadataApi
|
|
4658
5105
|
*/
|
|
4659
|
-
getSkillSchema(skill: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5106
|
+
getSkillSchema(skill: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4660
5107
|
/**
|
|
4661
5108
|
* Returns a list of all available skills in the system
|
|
4662
5109
|
* @summary Get all skills
|
|
@@ -4664,7 +5111,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
4664
5111
|
* @throws {RequiredError}
|
|
4665
5112
|
* @memberof MetadataApi
|
|
4666
5113
|
*/
|
|
4667
|
-
getSkills(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
|
|
5114
|
+
getSkills(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any, {}>>;
|
|
4668
5115
|
}
|
|
4669
5116
|
/**
|
|
4670
5117
|
* OAuthApi - axios parameter creator
|
|
@@ -4781,7 +5228,7 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
4781
5228
|
* @throws {RequiredError}
|
|
4782
5229
|
* @memberof OAuthApi
|
|
4783
5230
|
*/
|
|
4784
|
-
getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TwitterAuthResponse, any>>;
|
|
5231
|
+
getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TwitterAuthResponse, any, {}>>;
|
|
4785
5232
|
/**
|
|
4786
5233
|
* Handle Twitter OAuth2 callback. This endpoint is called by Twitter after the user authorizes the application. It exchanges the authorization code for access and refresh tokens, then stores them in the database. **Query Parameters:** * `state` - URL-encoded state containing agent_id and redirect_uri * `code` - Authorization code from Twitter * `error` - Error message from Twitter (optional) **Returns:** * JSONResponse or RedirectResponse depending on redirect_uri
|
|
4787
5234
|
* @summary Twitter Oauth Callback
|
|
@@ -4792,7 +5239,7 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
4792
5239
|
* @throws {RequiredError}
|
|
4793
5240
|
* @memberof OAuthApi
|
|
4794
5241
|
*/
|
|
4795
|
-
twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5242
|
+
twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4796
5243
|
/**
|
|
4797
5244
|
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
4798
5245
|
* @summary Unlink Twitter Endpoint
|
|
@@ -4801,7 +5248,7 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
4801
5248
|
* @throws {RequiredError}
|
|
4802
5249
|
* @memberof OAuthApi
|
|
4803
5250
|
*/
|
|
4804
|
-
unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
5251
|
+
unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
4805
5252
|
}
|
|
4806
5253
|
/**
|
|
4807
5254
|
* UserApi - axios parameter creator
|
|
@@ -4887,7 +5334,7 @@ export declare class UserApi extends BaseAPI {
|
|
|
4887
5334
|
* @throws {RequiredError}
|
|
4888
5335
|
* @memberof UserApi
|
|
4889
5336
|
*/
|
|
4890
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any>>;
|
|
5337
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any, {}>>;
|
|
4891
5338
|
/**
|
|
4892
5339
|
* 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
|
|
4893
5340
|
* @summary Get User Agents
|
|
@@ -4897,5 +5344,5 @@ export declare class UserApi extends BaseAPI {
|
|
|
4897
5344
|
* @throws {RequiredError}
|
|
4898
5345
|
* @memberof UserApi
|
|
4899
5346
|
*/
|
|
4900
|
-
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
5347
|
+
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
|
|
4901
5348
|
}
|