@illalabs/interfaces 0.3.0-canary.f3dad1f7 → 0.4.0-canary-beta-52713059

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.
Files changed (76) hide show
  1. package/dist/interfaces/chat/response.d.ts +8 -0
  2. package/dist/interfaces/chat/response.d.ts.map +1 -1
  3. package/dist/schemas/chatContext.d.ts +323 -0
  4. package/dist/schemas/chatContext.d.ts.map +1 -1
  5. package/dist/schemas/chatRequestBody.d.ts +1030 -0
  6. package/dist/schemas/chatRequestBody.d.ts.map +1 -1
  7. package/dist/schemas/chatRequestBody.js +7 -0
  8. package/dist/schemas/chatRequestBody.js.map +1 -1
  9. package/dist/schemas/index.d.ts +1 -0
  10. package/dist/schemas/index.d.ts.map +1 -1
  11. package/dist/schemas/index.js +1 -0
  12. package/dist/schemas/index.js.map +1 -1
  13. package/dist/schemas/messages.d.ts +473 -0
  14. package/dist/schemas/messages.d.ts.map +1 -1
  15. package/dist/schemas/messages.js +64 -0
  16. package/dist/schemas/messages.js.map +1 -1
  17. package/dist/schemas/modelContext.d.ts +3 -3
  18. package/dist/schemas/planning.d.ts +666 -0
  19. package/dist/schemas/planning.d.ts.map +1 -0
  20. package/dist/schemas/planning.js +153 -0
  21. package/dist/schemas/planning.js.map +1 -0
  22. package/dist/schemas/telemetryEvents.d.ts +1836 -48
  23. package/dist/schemas/telemetryEvents.d.ts.map +1 -1
  24. package/dist/schemas/telemetryEvents.js +92 -18
  25. package/dist/schemas/telemetryEvents.js.map +1 -1
  26. package/dist/schemas/userContext.d.ts +3 -0
  27. package/dist/schemas/userContext.d.ts.map +1 -1
  28. package/dist/schemas/userContext.js +4 -0
  29. package/dist/schemas/userContext.js.map +1 -1
  30. package/dist/tools/IllaToolError.d.ts +6 -2
  31. package/dist/tools/IllaToolError.d.ts.map +1 -1
  32. package/dist/tools/IllaToolError.js +6 -2
  33. package/dist/tools/IllaToolError.js.map +1 -1
  34. package/dist/tools/IllaToolOutcome.js +1 -1
  35. package/dist/tools/IllaToolOutcome.js.map +1 -1
  36. package/dist/types/actions/inputs.d.ts +6 -2
  37. package/dist/types/actions/inputs.d.ts.map +1 -1
  38. package/dist/types/actions/outputs.d.ts +19 -1
  39. package/dist/types/actions/outputs.d.ts.map +1 -1
  40. package/dist/types/actions/tools/getWalletBalanceAction.d.ts +3 -1
  41. package/dist/types/actions/tools/getWalletBalanceAction.d.ts.map +1 -1
  42. package/dist/types/actions/tools/index.d.ts +12 -0
  43. package/dist/types/actions/tools/index.d.ts.map +1 -1
  44. package/dist/types/actions/tools/polymarketPostOrderAction.d.ts +81 -0
  45. package/dist/types/actions/tools/polymarketPostOrderAction.d.ts.map +1 -0
  46. package/dist/types/actions/tools/polymarketPostOrderAction.js +2 -0
  47. package/dist/types/actions/tools/polymarketPostOrderAction.js.map +1 -0
  48. package/dist/types/actions/tools/predictionMarketsBetAction.d.ts +19 -0
  49. package/dist/types/actions/tools/predictionMarketsBetAction.d.ts.map +1 -0
  50. package/dist/types/actions/tools/predictionMarketsBetAction.js +2 -0
  51. package/dist/types/actions/tools/predictionMarketsBetAction.js.map +1 -0
  52. package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts +21 -0
  53. package/dist/types/actions/tools/predictionMarketsFetchAction.d.ts.map +1 -0
  54. package/dist/types/actions/tools/predictionMarketsFetchAction.js +2 -0
  55. package/dist/types/actions/tools/predictionMarketsFetchAction.js.map +1 -0
  56. package/dist/types/actions/tools/predictionMarketsPositionsAction.d.ts +25 -0
  57. package/dist/types/actions/tools/predictionMarketsPositionsAction.d.ts.map +1 -0
  58. package/dist/types/actions/tools/predictionMarketsPositionsAction.js +2 -0
  59. package/dist/types/actions/tools/predictionMarketsPositionsAction.js.map +1 -0
  60. package/dist/types/index.d.ts +1 -0
  61. package/dist/types/index.d.ts.map +1 -1
  62. package/dist/types/index.js +1 -0
  63. package/dist/types/index.js.map +1 -1
  64. package/dist/types/planning.d.ts +55 -0
  65. package/dist/types/planning.d.ts.map +1 -0
  66. package/dist/types/planning.js +2 -0
  67. package/dist/types/planning.js.map +1 -0
  68. package/dist/types/telemetry.d.ts +36 -1
  69. package/dist/types/telemetry.d.ts.map +1 -1
  70. package/dist/types/telemetry.js +2 -1
  71. package/dist/types/telemetry.js.map +1 -1
  72. package/dist/utils/constants.d.ts +5 -3
  73. package/dist/utils/constants.d.ts.map +1 -1
  74. package/dist/utils/constants.js +11 -1
  75. package/dist/utils/constants.js.map +1 -1
  76. package/package.json +1 -1
@@ -81,10 +81,13 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
81
81
  messages: z.ZodArray<z.ZodType<import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("@ai-sdk/provider-utils").ModelMessage>, "many">;
82
82
  userContext: z.ZodObject<{
83
83
  address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
84
+ signerWallet: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
84
85
  }, "strict", z.ZodTypeAny, {
85
86
  address: `0x${string}`;
87
+ signerWallet?: `0x${string}` | undefined;
86
88
  }, {
87
89
  address: string;
90
+ signerWallet?: string | undefined;
88
91
  }>;
89
92
  prompt: z.ZodOptional<z.ZodObject<{
90
93
  role: z.ZodLiteral<"user">;
@@ -193,6 +196,329 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
193
196
  }>>>;
194
197
  /** Client-generated request ID for telemetry subscription */
195
198
  requestId: z.ZodOptional<z.ZodString>;
199
+ /** Planning agent configuration */
200
+ agentPlanningConfig: z.ZodOptional<z.ZodObject<{
201
+ enabled: z.ZodOptional<z.ZodBoolean>;
202
+ cacheEnabled: z.ZodOptional<z.ZodBoolean>;
203
+ cacheTTL: z.ZodOptional<z.ZodNumber>;
204
+ forceRefresh: z.ZodOptional<z.ZodBoolean>;
205
+ planningModel: z.ZodOptional<z.ZodString>;
206
+ }, "strict", z.ZodTypeAny, {
207
+ enabled?: boolean | undefined;
208
+ cacheEnabled?: boolean | undefined;
209
+ cacheTTL?: number | undefined;
210
+ forceRefresh?: boolean | undefined;
211
+ planningModel?: string | undefined;
212
+ }, {
213
+ enabled?: boolean | undefined;
214
+ cacheEnabled?: boolean | undefined;
215
+ cacheTTL?: number | undefined;
216
+ forceRefresh?: boolean | undefined;
217
+ planningModel?: string | undefined;
218
+ }>>;
219
+ /** Previously accepted plan to execute */
220
+ acceptedPlan: z.ZodOptional<z.ZodObject<{
221
+ planId: z.ZodString;
222
+ version: z.ZodNumber;
223
+ isExecutable: z.ZodBoolean;
224
+ autoExecutable: z.ZodBoolean;
225
+ userSummary: z.ZodObject<{
226
+ title: z.ZodString;
227
+ description: z.ZodString;
228
+ steps: z.ZodArray<z.ZodObject<{
229
+ number: z.ZodNumber;
230
+ description: z.ZodString;
231
+ status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "skipped"]>;
232
+ requiresApproval: z.ZodBoolean;
233
+ }, "strict", z.ZodTypeAny, {
234
+ number: number;
235
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
236
+ description: string;
237
+ requiresApproval: boolean;
238
+ }, {
239
+ number: number;
240
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
241
+ description: string;
242
+ requiresApproval: boolean;
243
+ }>, "many">;
244
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
245
+ }, "strict", z.ZodTypeAny, {
246
+ description: string;
247
+ title: string;
248
+ steps: {
249
+ number: number;
250
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
251
+ description: string;
252
+ requiresApproval: boolean;
253
+ }[];
254
+ warnings?: string[] | undefined;
255
+ }, {
256
+ description: string;
257
+ title: string;
258
+ steps: {
259
+ number: number;
260
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
261
+ description: string;
262
+ requiresApproval: boolean;
263
+ }[];
264
+ warnings?: string[] | undefined;
265
+ }>;
266
+ executionSchema: z.ZodObject<{
267
+ steps: z.ZodArray<z.ZodObject<{
268
+ stepNumber: z.ZodNumber;
269
+ description: z.ZodString;
270
+ operationType: z.ZodEnum<["read", "write"]>;
271
+ requiresUserApproval: z.ZodBoolean;
272
+ dependsOn: z.ZodArray<z.ZodNumber, "many">;
273
+ status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "skipped"]>;
274
+ result: z.ZodOptional<z.ZodUnknown>;
275
+ toolName: z.ZodOptional<z.ZodString>;
276
+ executionInstructions: z.ZodObject<{
277
+ objective: z.ZodString;
278
+ inputSource: z.ZodRecord<z.ZodString, z.ZodString>;
279
+ expectedOutput: z.ZodString;
280
+ errorHandling: z.ZodString;
281
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
282
+ }, "strict", z.ZodTypeAny, {
283
+ objective: string;
284
+ inputSource: Record<string, string>;
285
+ expectedOutput: string;
286
+ errorHandling: string;
287
+ constraints?: string[] | undefined;
288
+ }, {
289
+ objective: string;
290
+ inputSource: Record<string, string>;
291
+ expectedOutput: string;
292
+ errorHandling: string;
293
+ constraints?: string[] | undefined;
294
+ }>;
295
+ }, "strict", z.ZodTypeAny, {
296
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
297
+ description: string;
298
+ stepNumber: number;
299
+ operationType: "read" | "write";
300
+ requiresUserApproval: boolean;
301
+ dependsOn: number[];
302
+ executionInstructions: {
303
+ objective: string;
304
+ inputSource: Record<string, string>;
305
+ expectedOutput: string;
306
+ errorHandling: string;
307
+ constraints?: string[] | undefined;
308
+ };
309
+ result?: unknown;
310
+ toolName?: string | undefined;
311
+ }, {
312
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
313
+ description: string;
314
+ stepNumber: number;
315
+ operationType: "read" | "write";
316
+ requiresUserApproval: boolean;
317
+ dependsOn: number[];
318
+ executionInstructions: {
319
+ objective: string;
320
+ inputSource: Record<string, string>;
321
+ expectedOutput: string;
322
+ errorHandling: string;
323
+ constraints?: string[] | undefined;
324
+ };
325
+ result?: unknown;
326
+ toolName?: string | undefined;
327
+ }>, "many">;
328
+ complexity: z.ZodEnum<["low", "medium", "high"]>;
329
+ recommendedModel: z.ZodString;
330
+ toolSequence: z.ZodArray<z.ZodString, "many">;
331
+ readOperations: z.ZodArray<z.ZodString, "many">;
332
+ writeOperations: z.ZodArray<z.ZodString, "many">;
333
+ pendingApprovals: z.ZodNumber;
334
+ availableTools: z.ZodArray<z.ZodString, "many">;
335
+ }, "strict", z.ZodTypeAny, {
336
+ steps: {
337
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
338
+ description: string;
339
+ stepNumber: number;
340
+ operationType: "read" | "write";
341
+ requiresUserApproval: boolean;
342
+ dependsOn: number[];
343
+ executionInstructions: {
344
+ objective: string;
345
+ inputSource: Record<string, string>;
346
+ expectedOutput: string;
347
+ errorHandling: string;
348
+ constraints?: string[] | undefined;
349
+ };
350
+ result?: unknown;
351
+ toolName?: string | undefined;
352
+ }[];
353
+ complexity: "low" | "medium" | "high";
354
+ recommendedModel: string;
355
+ toolSequence: string[];
356
+ readOperations: string[];
357
+ writeOperations: string[];
358
+ pendingApprovals: number;
359
+ availableTools: string[];
360
+ }, {
361
+ steps: {
362
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
363
+ description: string;
364
+ stepNumber: number;
365
+ operationType: "read" | "write";
366
+ requiresUserApproval: boolean;
367
+ dependsOn: number[];
368
+ executionInstructions: {
369
+ objective: string;
370
+ inputSource: Record<string, string>;
371
+ expectedOutput: string;
372
+ errorHandling: string;
373
+ constraints?: string[] | undefined;
374
+ };
375
+ result?: unknown;
376
+ toolName?: string | undefined;
377
+ }[];
378
+ complexity: "low" | "medium" | "high";
379
+ recommendedModel: string;
380
+ toolSequence: string[];
381
+ readOperations: string[];
382
+ writeOperations: string[];
383
+ pendingApprovals: number;
384
+ availableTools: string[];
385
+ }>;
386
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
387
+ type: z.ZodEnum<["conflicting_intent", "impossible_task", "missing_tool", "missing_context", "unsupported_operation"]>;
388
+ message: z.ZodString;
389
+ suggestion: z.ZodOptional<z.ZodString>;
390
+ }, "strict", z.ZodTypeAny, {
391
+ message: string;
392
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
393
+ suggestion?: string | undefined;
394
+ }, {
395
+ message: string;
396
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
397
+ suggestion?: string | undefined;
398
+ }>, "many">>;
399
+ replanContext: z.ZodOptional<z.ZodObject<{
400
+ previousPlanId: z.ZodString;
401
+ replanReason: z.ZodString;
402
+ preservedSteps: z.ZodArray<z.ZodNumber, "many">;
403
+ }, "strict", z.ZodTypeAny, {
404
+ previousPlanId: string;
405
+ replanReason: string;
406
+ preservedSteps: number[];
407
+ }, {
408
+ previousPlanId: string;
409
+ replanReason: string;
410
+ preservedSteps: number[];
411
+ }>>;
412
+ createdAt: z.ZodString;
413
+ }, "strict", z.ZodTypeAny, {
414
+ planId: string;
415
+ version: number;
416
+ isExecutable: boolean;
417
+ autoExecutable: boolean;
418
+ userSummary: {
419
+ description: string;
420
+ title: string;
421
+ steps: {
422
+ number: number;
423
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
424
+ description: string;
425
+ requiresApproval: boolean;
426
+ }[];
427
+ warnings?: string[] | undefined;
428
+ };
429
+ executionSchema: {
430
+ steps: {
431
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
432
+ description: string;
433
+ stepNumber: number;
434
+ operationType: "read" | "write";
435
+ requiresUserApproval: boolean;
436
+ dependsOn: number[];
437
+ executionInstructions: {
438
+ objective: string;
439
+ inputSource: Record<string, string>;
440
+ expectedOutput: string;
441
+ errorHandling: string;
442
+ constraints?: string[] | undefined;
443
+ };
444
+ result?: unknown;
445
+ toolName?: string | undefined;
446
+ }[];
447
+ complexity: "low" | "medium" | "high";
448
+ recommendedModel: string;
449
+ toolSequence: string[];
450
+ readOperations: string[];
451
+ writeOperations: string[];
452
+ pendingApprovals: number;
453
+ availableTools: string[];
454
+ };
455
+ createdAt: string;
456
+ conflicts?: {
457
+ message: string;
458
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
459
+ suggestion?: string | undefined;
460
+ }[] | undefined;
461
+ replanContext?: {
462
+ previousPlanId: string;
463
+ replanReason: string;
464
+ preservedSteps: number[];
465
+ } | undefined;
466
+ }, {
467
+ planId: string;
468
+ version: number;
469
+ isExecutable: boolean;
470
+ autoExecutable: boolean;
471
+ userSummary: {
472
+ description: string;
473
+ title: string;
474
+ steps: {
475
+ number: number;
476
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
477
+ description: string;
478
+ requiresApproval: boolean;
479
+ }[];
480
+ warnings?: string[] | undefined;
481
+ };
482
+ executionSchema: {
483
+ steps: {
484
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
485
+ description: string;
486
+ stepNumber: number;
487
+ operationType: "read" | "write";
488
+ requiresUserApproval: boolean;
489
+ dependsOn: number[];
490
+ executionInstructions: {
491
+ objective: string;
492
+ inputSource: Record<string, string>;
493
+ expectedOutput: string;
494
+ errorHandling: string;
495
+ constraints?: string[] | undefined;
496
+ };
497
+ result?: unknown;
498
+ toolName?: string | undefined;
499
+ }[];
500
+ complexity: "low" | "medium" | "high";
501
+ recommendedModel: string;
502
+ toolSequence: string[];
503
+ readOperations: string[];
504
+ writeOperations: string[];
505
+ pendingApprovals: number;
506
+ availableTools: string[];
507
+ };
508
+ createdAt: string;
509
+ conflicts?: {
510
+ message: string;
511
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
512
+ suggestion?: string | undefined;
513
+ }[] | undefined;
514
+ replanContext?: {
515
+ previousPlanId: string;
516
+ replanReason: string;
517
+ preservedSteps: number[];
518
+ } | undefined;
519
+ }>>;
520
+ /** If true, return plan without executing */
521
+ dryRun: z.ZodOptional<z.ZodBoolean>;
196
522
  }, "strict", z.ZodTypeAny, {
197
523
  toolsConfig: {
198
524
  autoRouter?: {
@@ -211,6 +537,7 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
211
537
  messages: import("@ai-sdk/provider-utils").ModelMessage[];
212
538
  userContext: {
213
539
  address: `0x${string}`;
540
+ signerWallet?: `0x${string}` | undefined;
214
541
  };
215
542
  languageModel: string;
216
543
  personalityContext: {
@@ -240,6 +567,68 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
240
567
  } | undefined;
241
568
  }[] | undefined;
242
569
  requestId?: string | undefined;
570
+ agentPlanningConfig?: {
571
+ enabled?: boolean | undefined;
572
+ cacheEnabled?: boolean | undefined;
573
+ cacheTTL?: number | undefined;
574
+ forceRefresh?: boolean | undefined;
575
+ planningModel?: string | undefined;
576
+ } | undefined;
577
+ acceptedPlan?: {
578
+ planId: string;
579
+ version: number;
580
+ isExecutable: boolean;
581
+ autoExecutable: boolean;
582
+ userSummary: {
583
+ description: string;
584
+ title: string;
585
+ steps: {
586
+ number: number;
587
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
588
+ description: string;
589
+ requiresApproval: boolean;
590
+ }[];
591
+ warnings?: string[] | undefined;
592
+ };
593
+ executionSchema: {
594
+ steps: {
595
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
596
+ description: string;
597
+ stepNumber: number;
598
+ operationType: "read" | "write";
599
+ requiresUserApproval: boolean;
600
+ dependsOn: number[];
601
+ executionInstructions: {
602
+ objective: string;
603
+ inputSource: Record<string, string>;
604
+ expectedOutput: string;
605
+ errorHandling: string;
606
+ constraints?: string[] | undefined;
607
+ };
608
+ result?: unknown;
609
+ toolName?: string | undefined;
610
+ }[];
611
+ complexity: "low" | "medium" | "high";
612
+ recommendedModel: string;
613
+ toolSequence: string[];
614
+ readOperations: string[];
615
+ writeOperations: string[];
616
+ pendingApprovals: number;
617
+ availableTools: string[];
618
+ };
619
+ createdAt: string;
620
+ conflicts?: {
621
+ message: string;
622
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
623
+ suggestion?: string | undefined;
624
+ }[] | undefined;
625
+ replanContext?: {
626
+ previousPlanId: string;
627
+ replanReason: string;
628
+ preservedSteps: number[];
629
+ } | undefined;
630
+ } | undefined;
631
+ dryRun?: boolean | undefined;
243
632
  }, {
244
633
  toolsConfig: {
245
634
  autoRouter?: {
@@ -258,6 +647,7 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
258
647
  messages: import("@ai-sdk/provider-utils").ModelMessage[];
259
648
  userContext: {
260
649
  address: string;
650
+ signerWallet?: string | undefined;
261
651
  };
262
652
  languageModel: string;
263
653
  prompt?: {
@@ -287,6 +677,68 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
287
677
  channel: "text" | "voice";
288
678
  } | undefined;
289
679
  requestId?: string | undefined;
680
+ agentPlanningConfig?: {
681
+ enabled?: boolean | undefined;
682
+ cacheEnabled?: boolean | undefined;
683
+ cacheTTL?: number | undefined;
684
+ forceRefresh?: boolean | undefined;
685
+ planningModel?: string | undefined;
686
+ } | undefined;
687
+ acceptedPlan?: {
688
+ planId: string;
689
+ version: number;
690
+ isExecutable: boolean;
691
+ autoExecutable: boolean;
692
+ userSummary: {
693
+ description: string;
694
+ title: string;
695
+ steps: {
696
+ number: number;
697
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
698
+ description: string;
699
+ requiresApproval: boolean;
700
+ }[];
701
+ warnings?: string[] | undefined;
702
+ };
703
+ executionSchema: {
704
+ steps: {
705
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
706
+ description: string;
707
+ stepNumber: number;
708
+ operationType: "read" | "write";
709
+ requiresUserApproval: boolean;
710
+ dependsOn: number[];
711
+ executionInstructions: {
712
+ objective: string;
713
+ inputSource: Record<string, string>;
714
+ expectedOutput: string;
715
+ errorHandling: string;
716
+ constraints?: string[] | undefined;
717
+ };
718
+ result?: unknown;
719
+ toolName?: string | undefined;
720
+ }[];
721
+ complexity: "low" | "medium" | "high";
722
+ recommendedModel: string;
723
+ toolSequence: string[];
724
+ readOperations: string[];
725
+ writeOperations: string[];
726
+ pendingApprovals: number;
727
+ availableTools: string[];
728
+ };
729
+ createdAt: string;
730
+ conflicts?: {
731
+ message: string;
732
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
733
+ suggestion?: string | undefined;
734
+ }[] | undefined;
735
+ replanContext?: {
736
+ previousPlanId: string;
737
+ replanReason: string;
738
+ preservedSteps: number[];
739
+ } | undefined;
740
+ } | undefined;
741
+ dryRun?: boolean | undefined;
290
742
  }>;
291
743
  export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
292
744
  toolsConfig: z.ZodObject<{
@@ -370,10 +822,13 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
370
822
  messages: z.ZodArray<z.ZodType<import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("@ai-sdk/provider-utils").ModelMessage>, "many">;
371
823
  userContext: z.ZodObject<{
372
824
  address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
825
+ signerWallet: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
373
826
  }, "strict", z.ZodTypeAny, {
374
827
  address: `0x${string}`;
828
+ signerWallet?: `0x${string}` | undefined;
375
829
  }, {
376
830
  address: string;
831
+ signerWallet?: string | undefined;
377
832
  }>;
378
833
  prompt: z.ZodOptional<z.ZodObject<{
379
834
  role: z.ZodLiteral<"user">;
@@ -482,6 +937,329 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
482
937
  }>>>;
483
938
  /** Client-generated request ID for telemetry subscription */
484
939
  requestId: z.ZodOptional<z.ZodString>;
940
+ /** Planning agent configuration */
941
+ agentPlanningConfig: z.ZodOptional<z.ZodObject<{
942
+ enabled: z.ZodOptional<z.ZodBoolean>;
943
+ cacheEnabled: z.ZodOptional<z.ZodBoolean>;
944
+ cacheTTL: z.ZodOptional<z.ZodNumber>;
945
+ forceRefresh: z.ZodOptional<z.ZodBoolean>;
946
+ planningModel: z.ZodOptional<z.ZodString>;
947
+ }, "strict", z.ZodTypeAny, {
948
+ enabled?: boolean | undefined;
949
+ cacheEnabled?: boolean | undefined;
950
+ cacheTTL?: number | undefined;
951
+ forceRefresh?: boolean | undefined;
952
+ planningModel?: string | undefined;
953
+ }, {
954
+ enabled?: boolean | undefined;
955
+ cacheEnabled?: boolean | undefined;
956
+ cacheTTL?: number | undefined;
957
+ forceRefresh?: boolean | undefined;
958
+ planningModel?: string | undefined;
959
+ }>>;
960
+ /** Previously accepted plan to execute */
961
+ acceptedPlan: z.ZodOptional<z.ZodObject<{
962
+ planId: z.ZodString;
963
+ version: z.ZodNumber;
964
+ isExecutable: z.ZodBoolean;
965
+ autoExecutable: z.ZodBoolean;
966
+ userSummary: z.ZodObject<{
967
+ title: z.ZodString;
968
+ description: z.ZodString;
969
+ steps: z.ZodArray<z.ZodObject<{
970
+ number: z.ZodNumber;
971
+ description: z.ZodString;
972
+ status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "skipped"]>;
973
+ requiresApproval: z.ZodBoolean;
974
+ }, "strict", z.ZodTypeAny, {
975
+ number: number;
976
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
977
+ description: string;
978
+ requiresApproval: boolean;
979
+ }, {
980
+ number: number;
981
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
982
+ description: string;
983
+ requiresApproval: boolean;
984
+ }>, "many">;
985
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
986
+ }, "strict", z.ZodTypeAny, {
987
+ description: string;
988
+ title: string;
989
+ steps: {
990
+ number: number;
991
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
992
+ description: string;
993
+ requiresApproval: boolean;
994
+ }[];
995
+ warnings?: string[] | undefined;
996
+ }, {
997
+ description: string;
998
+ title: string;
999
+ steps: {
1000
+ number: number;
1001
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1002
+ description: string;
1003
+ requiresApproval: boolean;
1004
+ }[];
1005
+ warnings?: string[] | undefined;
1006
+ }>;
1007
+ executionSchema: z.ZodObject<{
1008
+ steps: z.ZodArray<z.ZodObject<{
1009
+ stepNumber: z.ZodNumber;
1010
+ description: z.ZodString;
1011
+ operationType: z.ZodEnum<["read", "write"]>;
1012
+ requiresUserApproval: z.ZodBoolean;
1013
+ dependsOn: z.ZodArray<z.ZodNumber, "many">;
1014
+ status: z.ZodEnum<["pending", "in_progress", "completed", "failed", "skipped"]>;
1015
+ result: z.ZodOptional<z.ZodUnknown>;
1016
+ toolName: z.ZodOptional<z.ZodString>;
1017
+ executionInstructions: z.ZodObject<{
1018
+ objective: z.ZodString;
1019
+ inputSource: z.ZodRecord<z.ZodString, z.ZodString>;
1020
+ expectedOutput: z.ZodString;
1021
+ errorHandling: z.ZodString;
1022
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1023
+ }, "strict", z.ZodTypeAny, {
1024
+ objective: string;
1025
+ inputSource: Record<string, string>;
1026
+ expectedOutput: string;
1027
+ errorHandling: string;
1028
+ constraints?: string[] | undefined;
1029
+ }, {
1030
+ objective: string;
1031
+ inputSource: Record<string, string>;
1032
+ expectedOutput: string;
1033
+ errorHandling: string;
1034
+ constraints?: string[] | undefined;
1035
+ }>;
1036
+ }, "strict", z.ZodTypeAny, {
1037
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1038
+ description: string;
1039
+ stepNumber: number;
1040
+ operationType: "read" | "write";
1041
+ requiresUserApproval: boolean;
1042
+ dependsOn: number[];
1043
+ executionInstructions: {
1044
+ objective: string;
1045
+ inputSource: Record<string, string>;
1046
+ expectedOutput: string;
1047
+ errorHandling: string;
1048
+ constraints?: string[] | undefined;
1049
+ };
1050
+ result?: unknown;
1051
+ toolName?: string | undefined;
1052
+ }, {
1053
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1054
+ description: string;
1055
+ stepNumber: number;
1056
+ operationType: "read" | "write";
1057
+ requiresUserApproval: boolean;
1058
+ dependsOn: number[];
1059
+ executionInstructions: {
1060
+ objective: string;
1061
+ inputSource: Record<string, string>;
1062
+ expectedOutput: string;
1063
+ errorHandling: string;
1064
+ constraints?: string[] | undefined;
1065
+ };
1066
+ result?: unknown;
1067
+ toolName?: string | undefined;
1068
+ }>, "many">;
1069
+ complexity: z.ZodEnum<["low", "medium", "high"]>;
1070
+ recommendedModel: z.ZodString;
1071
+ toolSequence: z.ZodArray<z.ZodString, "many">;
1072
+ readOperations: z.ZodArray<z.ZodString, "many">;
1073
+ writeOperations: z.ZodArray<z.ZodString, "many">;
1074
+ pendingApprovals: z.ZodNumber;
1075
+ availableTools: z.ZodArray<z.ZodString, "many">;
1076
+ }, "strict", z.ZodTypeAny, {
1077
+ steps: {
1078
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1079
+ description: string;
1080
+ stepNumber: number;
1081
+ operationType: "read" | "write";
1082
+ requiresUserApproval: boolean;
1083
+ dependsOn: number[];
1084
+ executionInstructions: {
1085
+ objective: string;
1086
+ inputSource: Record<string, string>;
1087
+ expectedOutput: string;
1088
+ errorHandling: string;
1089
+ constraints?: string[] | undefined;
1090
+ };
1091
+ result?: unknown;
1092
+ toolName?: string | undefined;
1093
+ }[];
1094
+ complexity: "low" | "medium" | "high";
1095
+ recommendedModel: string;
1096
+ toolSequence: string[];
1097
+ readOperations: string[];
1098
+ writeOperations: string[];
1099
+ pendingApprovals: number;
1100
+ availableTools: string[];
1101
+ }, {
1102
+ steps: {
1103
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1104
+ description: string;
1105
+ stepNumber: number;
1106
+ operationType: "read" | "write";
1107
+ requiresUserApproval: boolean;
1108
+ dependsOn: number[];
1109
+ executionInstructions: {
1110
+ objective: string;
1111
+ inputSource: Record<string, string>;
1112
+ expectedOutput: string;
1113
+ errorHandling: string;
1114
+ constraints?: string[] | undefined;
1115
+ };
1116
+ result?: unknown;
1117
+ toolName?: string | undefined;
1118
+ }[];
1119
+ complexity: "low" | "medium" | "high";
1120
+ recommendedModel: string;
1121
+ toolSequence: string[];
1122
+ readOperations: string[];
1123
+ writeOperations: string[];
1124
+ pendingApprovals: number;
1125
+ availableTools: string[];
1126
+ }>;
1127
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1128
+ type: z.ZodEnum<["conflicting_intent", "impossible_task", "missing_tool", "missing_context", "unsupported_operation"]>;
1129
+ message: z.ZodString;
1130
+ suggestion: z.ZodOptional<z.ZodString>;
1131
+ }, "strict", z.ZodTypeAny, {
1132
+ message: string;
1133
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
1134
+ suggestion?: string | undefined;
1135
+ }, {
1136
+ message: string;
1137
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
1138
+ suggestion?: string | undefined;
1139
+ }>, "many">>;
1140
+ replanContext: z.ZodOptional<z.ZodObject<{
1141
+ previousPlanId: z.ZodString;
1142
+ replanReason: z.ZodString;
1143
+ preservedSteps: z.ZodArray<z.ZodNumber, "many">;
1144
+ }, "strict", z.ZodTypeAny, {
1145
+ previousPlanId: string;
1146
+ replanReason: string;
1147
+ preservedSteps: number[];
1148
+ }, {
1149
+ previousPlanId: string;
1150
+ replanReason: string;
1151
+ preservedSteps: number[];
1152
+ }>>;
1153
+ createdAt: z.ZodString;
1154
+ }, "strict", z.ZodTypeAny, {
1155
+ planId: string;
1156
+ version: number;
1157
+ isExecutable: boolean;
1158
+ autoExecutable: boolean;
1159
+ userSummary: {
1160
+ description: string;
1161
+ title: string;
1162
+ steps: {
1163
+ number: number;
1164
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1165
+ description: string;
1166
+ requiresApproval: boolean;
1167
+ }[];
1168
+ warnings?: string[] | undefined;
1169
+ };
1170
+ executionSchema: {
1171
+ steps: {
1172
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1173
+ description: string;
1174
+ stepNumber: number;
1175
+ operationType: "read" | "write";
1176
+ requiresUserApproval: boolean;
1177
+ dependsOn: number[];
1178
+ executionInstructions: {
1179
+ objective: string;
1180
+ inputSource: Record<string, string>;
1181
+ expectedOutput: string;
1182
+ errorHandling: string;
1183
+ constraints?: string[] | undefined;
1184
+ };
1185
+ result?: unknown;
1186
+ toolName?: string | undefined;
1187
+ }[];
1188
+ complexity: "low" | "medium" | "high";
1189
+ recommendedModel: string;
1190
+ toolSequence: string[];
1191
+ readOperations: string[];
1192
+ writeOperations: string[];
1193
+ pendingApprovals: number;
1194
+ availableTools: string[];
1195
+ };
1196
+ createdAt: string;
1197
+ conflicts?: {
1198
+ message: string;
1199
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
1200
+ suggestion?: string | undefined;
1201
+ }[] | undefined;
1202
+ replanContext?: {
1203
+ previousPlanId: string;
1204
+ replanReason: string;
1205
+ preservedSteps: number[];
1206
+ } | undefined;
1207
+ }, {
1208
+ planId: string;
1209
+ version: number;
1210
+ isExecutable: boolean;
1211
+ autoExecutable: boolean;
1212
+ userSummary: {
1213
+ description: string;
1214
+ title: string;
1215
+ steps: {
1216
+ number: number;
1217
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1218
+ description: string;
1219
+ requiresApproval: boolean;
1220
+ }[];
1221
+ warnings?: string[] | undefined;
1222
+ };
1223
+ executionSchema: {
1224
+ steps: {
1225
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1226
+ description: string;
1227
+ stepNumber: number;
1228
+ operationType: "read" | "write";
1229
+ requiresUserApproval: boolean;
1230
+ dependsOn: number[];
1231
+ executionInstructions: {
1232
+ objective: string;
1233
+ inputSource: Record<string, string>;
1234
+ expectedOutput: string;
1235
+ errorHandling: string;
1236
+ constraints?: string[] | undefined;
1237
+ };
1238
+ result?: unknown;
1239
+ toolName?: string | undefined;
1240
+ }[];
1241
+ complexity: "low" | "medium" | "high";
1242
+ recommendedModel: string;
1243
+ toolSequence: string[];
1244
+ readOperations: string[];
1245
+ writeOperations: string[];
1246
+ pendingApprovals: number;
1247
+ availableTools: string[];
1248
+ };
1249
+ createdAt: string;
1250
+ conflicts?: {
1251
+ message: string;
1252
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
1253
+ suggestion?: string | undefined;
1254
+ }[] | undefined;
1255
+ replanContext?: {
1256
+ previousPlanId: string;
1257
+ replanReason: string;
1258
+ preservedSteps: number[];
1259
+ } | undefined;
1260
+ }>>;
1261
+ /** If true, return plan without executing */
1262
+ dryRun: z.ZodOptional<z.ZodBoolean>;
485
1263
  }, "strict", z.ZodTypeAny, {
486
1264
  toolsConfig: {
487
1265
  autoRouter?: {
@@ -500,6 +1278,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
500
1278
  messages: import("@ai-sdk/provider-utils").ModelMessage[];
501
1279
  userContext: {
502
1280
  address: `0x${string}`;
1281
+ signerWallet?: `0x${string}` | undefined;
503
1282
  };
504
1283
  languageModel: string;
505
1284
  personalityContext: {
@@ -529,6 +1308,68 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
529
1308
  } | undefined;
530
1309
  }[] | undefined;
531
1310
  requestId?: string | undefined;
1311
+ agentPlanningConfig?: {
1312
+ enabled?: boolean | undefined;
1313
+ cacheEnabled?: boolean | undefined;
1314
+ cacheTTL?: number | undefined;
1315
+ forceRefresh?: boolean | undefined;
1316
+ planningModel?: string | undefined;
1317
+ } | undefined;
1318
+ acceptedPlan?: {
1319
+ planId: string;
1320
+ version: number;
1321
+ isExecutable: boolean;
1322
+ autoExecutable: boolean;
1323
+ userSummary: {
1324
+ description: string;
1325
+ title: string;
1326
+ steps: {
1327
+ number: number;
1328
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1329
+ description: string;
1330
+ requiresApproval: boolean;
1331
+ }[];
1332
+ warnings?: string[] | undefined;
1333
+ };
1334
+ executionSchema: {
1335
+ steps: {
1336
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1337
+ description: string;
1338
+ stepNumber: number;
1339
+ operationType: "read" | "write";
1340
+ requiresUserApproval: boolean;
1341
+ dependsOn: number[];
1342
+ executionInstructions: {
1343
+ objective: string;
1344
+ inputSource: Record<string, string>;
1345
+ expectedOutput: string;
1346
+ errorHandling: string;
1347
+ constraints?: string[] | undefined;
1348
+ };
1349
+ result?: unknown;
1350
+ toolName?: string | undefined;
1351
+ }[];
1352
+ complexity: "low" | "medium" | "high";
1353
+ recommendedModel: string;
1354
+ toolSequence: string[];
1355
+ readOperations: string[];
1356
+ writeOperations: string[];
1357
+ pendingApprovals: number;
1358
+ availableTools: string[];
1359
+ };
1360
+ createdAt: string;
1361
+ conflicts?: {
1362
+ message: string;
1363
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
1364
+ suggestion?: string | undefined;
1365
+ }[] | undefined;
1366
+ replanContext?: {
1367
+ previousPlanId: string;
1368
+ replanReason: string;
1369
+ preservedSteps: number[];
1370
+ } | undefined;
1371
+ } | undefined;
1372
+ dryRun?: boolean | undefined;
532
1373
  }, {
533
1374
  toolsConfig: {
534
1375
  autoRouter?: {
@@ -547,6 +1388,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
547
1388
  messages: import("@ai-sdk/provider-utils").ModelMessage[];
548
1389
  userContext: {
549
1390
  address: string;
1391
+ signerWallet?: string | undefined;
550
1392
  };
551
1393
  languageModel: string;
552
1394
  prompt?: {
@@ -576,6 +1418,68 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
576
1418
  channel: "text" | "voice";
577
1419
  } | undefined;
578
1420
  requestId?: string | undefined;
1421
+ agentPlanningConfig?: {
1422
+ enabled?: boolean | undefined;
1423
+ cacheEnabled?: boolean | undefined;
1424
+ cacheTTL?: number | undefined;
1425
+ forceRefresh?: boolean | undefined;
1426
+ planningModel?: string | undefined;
1427
+ } | undefined;
1428
+ acceptedPlan?: {
1429
+ planId: string;
1430
+ version: number;
1431
+ isExecutable: boolean;
1432
+ autoExecutable: boolean;
1433
+ userSummary: {
1434
+ description: string;
1435
+ title: string;
1436
+ steps: {
1437
+ number: number;
1438
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1439
+ description: string;
1440
+ requiresApproval: boolean;
1441
+ }[];
1442
+ warnings?: string[] | undefined;
1443
+ };
1444
+ executionSchema: {
1445
+ steps: {
1446
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1447
+ description: string;
1448
+ stepNumber: number;
1449
+ operationType: "read" | "write";
1450
+ requiresUserApproval: boolean;
1451
+ dependsOn: number[];
1452
+ executionInstructions: {
1453
+ objective: string;
1454
+ inputSource: Record<string, string>;
1455
+ expectedOutput: string;
1456
+ errorHandling: string;
1457
+ constraints?: string[] | undefined;
1458
+ };
1459
+ result?: unknown;
1460
+ toolName?: string | undefined;
1461
+ }[];
1462
+ complexity: "low" | "medium" | "high";
1463
+ recommendedModel: string;
1464
+ toolSequence: string[];
1465
+ readOperations: string[];
1466
+ writeOperations: string[];
1467
+ pendingApprovals: number;
1468
+ availableTools: string[];
1469
+ };
1470
+ createdAt: string;
1471
+ conflicts?: {
1472
+ message: string;
1473
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
1474
+ suggestion?: string | undefined;
1475
+ }[] | undefined;
1476
+ replanContext?: {
1477
+ previousPlanId: string;
1478
+ replanReason: string;
1479
+ preservedSteps: number[];
1480
+ } | undefined;
1481
+ } | undefined;
1482
+ dryRun?: boolean | undefined;
579
1483
  }>, {
580
1484
  toolsConfig: {
581
1485
  autoRouter?: {
@@ -594,6 +1498,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
594
1498
  messages: import("@ai-sdk/provider-utils").ModelMessage[];
595
1499
  userContext: {
596
1500
  address: `0x${string}`;
1501
+ signerWallet?: `0x${string}` | undefined;
597
1502
  };
598
1503
  languageModel: string;
599
1504
  personalityContext: {
@@ -623,6 +1528,68 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
623
1528
  } | undefined;
624
1529
  }[] | undefined;
625
1530
  requestId?: string | undefined;
1531
+ agentPlanningConfig?: {
1532
+ enabled?: boolean | undefined;
1533
+ cacheEnabled?: boolean | undefined;
1534
+ cacheTTL?: number | undefined;
1535
+ forceRefresh?: boolean | undefined;
1536
+ planningModel?: string | undefined;
1537
+ } | undefined;
1538
+ acceptedPlan?: {
1539
+ planId: string;
1540
+ version: number;
1541
+ isExecutable: boolean;
1542
+ autoExecutable: boolean;
1543
+ userSummary: {
1544
+ description: string;
1545
+ title: string;
1546
+ steps: {
1547
+ number: number;
1548
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1549
+ description: string;
1550
+ requiresApproval: boolean;
1551
+ }[];
1552
+ warnings?: string[] | undefined;
1553
+ };
1554
+ executionSchema: {
1555
+ steps: {
1556
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1557
+ description: string;
1558
+ stepNumber: number;
1559
+ operationType: "read" | "write";
1560
+ requiresUserApproval: boolean;
1561
+ dependsOn: number[];
1562
+ executionInstructions: {
1563
+ objective: string;
1564
+ inputSource: Record<string, string>;
1565
+ expectedOutput: string;
1566
+ errorHandling: string;
1567
+ constraints?: string[] | undefined;
1568
+ };
1569
+ result?: unknown;
1570
+ toolName?: string | undefined;
1571
+ }[];
1572
+ complexity: "low" | "medium" | "high";
1573
+ recommendedModel: string;
1574
+ toolSequence: string[];
1575
+ readOperations: string[];
1576
+ writeOperations: string[];
1577
+ pendingApprovals: number;
1578
+ availableTools: string[];
1579
+ };
1580
+ createdAt: string;
1581
+ conflicts?: {
1582
+ message: string;
1583
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
1584
+ suggestion?: string | undefined;
1585
+ }[] | undefined;
1586
+ replanContext?: {
1587
+ previousPlanId: string;
1588
+ replanReason: string;
1589
+ preservedSteps: number[];
1590
+ } | undefined;
1591
+ } | undefined;
1592
+ dryRun?: boolean | undefined;
626
1593
  }, {
627
1594
  toolsConfig: {
628
1595
  autoRouter?: {
@@ -641,6 +1608,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
641
1608
  messages: import("@ai-sdk/provider-utils").ModelMessage[];
642
1609
  userContext: {
643
1610
  address: string;
1611
+ signerWallet?: string | undefined;
644
1612
  };
645
1613
  languageModel: string;
646
1614
  prompt?: {
@@ -670,5 +1638,67 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
670
1638
  channel: "text" | "voice";
671
1639
  } | undefined;
672
1640
  requestId?: string | undefined;
1641
+ agentPlanningConfig?: {
1642
+ enabled?: boolean | undefined;
1643
+ cacheEnabled?: boolean | undefined;
1644
+ cacheTTL?: number | undefined;
1645
+ forceRefresh?: boolean | undefined;
1646
+ planningModel?: string | undefined;
1647
+ } | undefined;
1648
+ acceptedPlan?: {
1649
+ planId: string;
1650
+ version: number;
1651
+ isExecutable: boolean;
1652
+ autoExecutable: boolean;
1653
+ userSummary: {
1654
+ description: string;
1655
+ title: string;
1656
+ steps: {
1657
+ number: number;
1658
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1659
+ description: string;
1660
+ requiresApproval: boolean;
1661
+ }[];
1662
+ warnings?: string[] | undefined;
1663
+ };
1664
+ executionSchema: {
1665
+ steps: {
1666
+ status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
1667
+ description: string;
1668
+ stepNumber: number;
1669
+ operationType: "read" | "write";
1670
+ requiresUserApproval: boolean;
1671
+ dependsOn: number[];
1672
+ executionInstructions: {
1673
+ objective: string;
1674
+ inputSource: Record<string, string>;
1675
+ expectedOutput: string;
1676
+ errorHandling: string;
1677
+ constraints?: string[] | undefined;
1678
+ };
1679
+ result?: unknown;
1680
+ toolName?: string | undefined;
1681
+ }[];
1682
+ complexity: "low" | "medium" | "high";
1683
+ recommendedModel: string;
1684
+ toolSequence: string[];
1685
+ readOperations: string[];
1686
+ writeOperations: string[];
1687
+ pendingApprovals: number;
1688
+ availableTools: string[];
1689
+ };
1690
+ createdAt: string;
1691
+ conflicts?: {
1692
+ message: string;
1693
+ type: "conflicting_intent" | "impossible_task" | "missing_tool" | "missing_context" | "unsupported_operation";
1694
+ suggestion?: string | undefined;
1695
+ }[] | undefined;
1696
+ replanContext?: {
1697
+ previousPlanId: string;
1698
+ replanReason: string;
1699
+ preservedSteps: number[];
1700
+ } | undefined;
1701
+ } | undefined;
1702
+ dryRun?: boolean | undefined;
673
1703
  }>;
674
1704
  //# sourceMappingURL=chatRequestBody.d.ts.map