@illalabs/interfaces 0.7.0 → 0.8.0
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/dist/schemas/chatContext.d.ts +20 -20
- package/dist/schemas/chatRequestBody.d.ts +65 -65
- package/dist/schemas/illaTools.d.ts +15 -15
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/messages.d.ts +52 -51
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +4 -1
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/planning.d.ts +22 -18
- package/dist/schemas/planning.d.ts.map +1 -1
- package/dist/schemas/planning.js +8 -0
- package/dist/schemas/planning.js.map +1 -1
- package/dist/schemas/planningRuntime.d.ts +15 -11
- package/dist/schemas/planningRuntime.d.ts.map +1 -1
- package/dist/schemas/planningRuntime.js +5 -0
- package/dist/schemas/planningRuntime.js.map +1 -1
- package/dist/schemas/telemetryEvents.d.ts +498 -302
- package/dist/schemas/telemetryEvents.d.ts.map +1 -1
- package/dist/schemas/telemetryEvents.js +29 -2
- package/dist/schemas/telemetryEvents.js.map +1 -1
- package/dist/schemas/uiMessageNormalizer.d.ts +22 -0
- package/dist/schemas/uiMessageNormalizer.d.ts.map +1 -0
- package/dist/schemas/uiMessageNormalizer.js +176 -0
- package/dist/schemas/uiMessageNormalizer.js.map +1 -0
- package/dist/types/planning.d.ts +4 -2
- package/dist/types/planning.d.ts.map +1 -1
- package/dist/types/planningRuntime.d.ts +3 -1
- package/dist/types/planningRuntime.d.ts.map +1 -1
- package/dist/types/telemetry.d.ts +3 -1
- package/dist/types/telemetry.d.ts.map +1 -1
- package/dist/types/telemetry.js +1 -1
- package/dist/types/telemetry.js.map +1 -1
- package/package.json +1 -1
|
@@ -78,7 +78,7 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
78
78
|
swapOrBridge?: "lifi" | undefined;
|
|
79
79
|
} | undefined;
|
|
80
80
|
}>;
|
|
81
|
-
messages: z.ZodArray<z.ZodType<import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("@ai-sdk/provider-utils").ModelMessage>, "many">;
|
|
81
|
+
messages: z.ZodEffects<z.ZodArray<z.ZodType<import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage>, "many">, import("@ai-sdk/provider-utils").ModelMessage[], (import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage)[]>;
|
|
82
82
|
userContext: z.ZodObject<{
|
|
83
83
|
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
84
84
|
signerWallet: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
@@ -95,23 +95,23 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
95
95
|
type: z.ZodLiteral<"text">;
|
|
96
96
|
text: z.ZodString;
|
|
97
97
|
}, "strict", z.ZodTypeAny, {
|
|
98
|
-
type: "text";
|
|
99
98
|
text: string;
|
|
100
|
-
}, {
|
|
101
99
|
type: "text";
|
|
100
|
+
}, {
|
|
102
101
|
text: string;
|
|
102
|
+
type: "text";
|
|
103
103
|
}>, "many">;
|
|
104
104
|
}, "strict", z.ZodTypeAny, {
|
|
105
105
|
role: "user";
|
|
106
106
|
content: {
|
|
107
|
-
type: "text";
|
|
108
107
|
text: string;
|
|
108
|
+
type: "text";
|
|
109
109
|
}[];
|
|
110
110
|
}, {
|
|
111
111
|
role: "user";
|
|
112
112
|
content: {
|
|
113
|
-
type: "text";
|
|
114
113
|
text: string;
|
|
114
|
+
type: "text";
|
|
115
115
|
}[];
|
|
116
116
|
}>>;
|
|
117
117
|
toolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -147,12 +147,12 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
147
147
|
message: z.ZodString;
|
|
148
148
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
149
149
|
}, "strict", z.ZodTypeAny, {
|
|
150
|
-
message: string;
|
|
151
150
|
type: "execution";
|
|
151
|
+
message: string;
|
|
152
152
|
details?: unknown;
|
|
153
153
|
}, {
|
|
154
|
-
message: string;
|
|
155
154
|
type: "execution";
|
|
155
|
+
message: string;
|
|
156
156
|
details?: unknown;
|
|
157
157
|
}>]>>;
|
|
158
158
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -166,8 +166,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
166
166
|
message: string;
|
|
167
167
|
}[];
|
|
168
168
|
} | {
|
|
169
|
-
message: string;
|
|
170
169
|
type: "execution";
|
|
170
|
+
message: string;
|
|
171
171
|
details?: unknown;
|
|
172
172
|
} | undefined;
|
|
173
173
|
}, {
|
|
@@ -181,8 +181,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
181
181
|
message: string;
|
|
182
182
|
}[];
|
|
183
183
|
} | {
|
|
184
|
-
message: string;
|
|
185
184
|
type: "execution";
|
|
185
|
+
message: string;
|
|
186
186
|
details?: unknown;
|
|
187
187
|
} | undefined;
|
|
188
188
|
}>, "many">>;
|
|
@@ -294,8 +294,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
294
294
|
errorHandling: string;
|
|
295
295
|
constraints?: string[] | undefined;
|
|
296
296
|
};
|
|
297
|
-
result?: unknown;
|
|
298
297
|
toolName?: string | undefined;
|
|
298
|
+
result?: unknown;
|
|
299
299
|
}, {
|
|
300
300
|
status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
|
|
301
301
|
description: string;
|
|
@@ -310,8 +310,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
310
310
|
errorHandling: string;
|
|
311
311
|
constraints?: string[] | undefined;
|
|
312
312
|
};
|
|
313
|
-
result?: unknown;
|
|
314
313
|
toolName?: string | undefined;
|
|
314
|
+
result?: unknown;
|
|
315
315
|
}>, "many">;
|
|
316
316
|
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
317
317
|
recommendedModel: z.ZodString;
|
|
@@ -335,8 +335,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
335
335
|
errorHandling: string;
|
|
336
336
|
constraints?: string[] | undefined;
|
|
337
337
|
};
|
|
338
|
-
result?: unknown;
|
|
339
338
|
toolName?: string | undefined;
|
|
339
|
+
result?: unknown;
|
|
340
340
|
}[];
|
|
341
341
|
complexity: "low" | "medium" | "high";
|
|
342
342
|
recommendedModel: string;
|
|
@@ -360,8 +360,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
360
360
|
errorHandling: string;
|
|
361
361
|
constraints?: string[] | undefined;
|
|
362
362
|
};
|
|
363
|
-
result?: unknown;
|
|
364
363
|
toolName?: string | undefined;
|
|
364
|
+
result?: unknown;
|
|
365
365
|
}[];
|
|
366
366
|
complexity: "low" | "medium" | "high";
|
|
367
367
|
recommendedModel: string;
|
|
@@ -376,12 +376,12 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
376
376
|
message: z.ZodString;
|
|
377
377
|
suggestion: z.ZodOptional<z.ZodString>;
|
|
378
378
|
}, "strip", z.ZodTypeAny, {
|
|
379
|
-
message: string;
|
|
380
379
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
380
|
+
message: string;
|
|
381
381
|
suggestion?: string | undefined;
|
|
382
382
|
}, {
|
|
383
|
-
message: string;
|
|
384
383
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
384
|
+
message: string;
|
|
385
385
|
suggestion?: string | undefined;
|
|
386
386
|
}>, "many">>;
|
|
387
387
|
replanContext: z.ZodOptional<z.ZodObject<{
|
|
@@ -430,8 +430,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
430
430
|
errorHandling: string;
|
|
431
431
|
constraints?: string[] | undefined;
|
|
432
432
|
};
|
|
433
|
-
result?: unknown;
|
|
434
433
|
toolName?: string | undefined;
|
|
434
|
+
result?: unknown;
|
|
435
435
|
}[];
|
|
436
436
|
complexity: "low" | "medium" | "high";
|
|
437
437
|
recommendedModel: string;
|
|
@@ -443,8 +443,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
443
443
|
};
|
|
444
444
|
createdAt: string;
|
|
445
445
|
conflicts?: {
|
|
446
|
-
message: string;
|
|
447
446
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
447
|
+
message: string;
|
|
448
448
|
suggestion?: string | undefined;
|
|
449
449
|
}[] | undefined;
|
|
450
450
|
replanContext?: {
|
|
@@ -484,8 +484,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
484
484
|
errorHandling: string;
|
|
485
485
|
constraints?: string[] | undefined;
|
|
486
486
|
};
|
|
487
|
-
result?: unknown;
|
|
488
487
|
toolName?: string | undefined;
|
|
488
|
+
result?: unknown;
|
|
489
489
|
}[];
|
|
490
490
|
complexity: "low" | "medium" | "high";
|
|
491
491
|
recommendedModel: string;
|
|
@@ -497,8 +497,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
497
497
|
};
|
|
498
498
|
createdAt: string;
|
|
499
499
|
conflicts?: {
|
|
500
|
-
message: string;
|
|
501
500
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
501
|
+
message: string;
|
|
502
502
|
suggestion?: string | undefined;
|
|
503
503
|
}[] | undefined;
|
|
504
504
|
replanContext?: {
|
|
@@ -567,8 +567,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
567
567
|
prompt?: {
|
|
568
568
|
role: "user";
|
|
569
569
|
content: {
|
|
570
|
-
type: "text";
|
|
571
570
|
text: string;
|
|
571
|
+
type: "text";
|
|
572
572
|
}[];
|
|
573
573
|
} | undefined;
|
|
574
574
|
toolResults?: {
|
|
@@ -582,8 +582,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
582
582
|
message: string;
|
|
583
583
|
}[];
|
|
584
584
|
} | {
|
|
585
|
-
message: string;
|
|
586
585
|
type: "execution";
|
|
586
|
+
message: string;
|
|
587
587
|
details?: unknown;
|
|
588
588
|
} | undefined;
|
|
589
589
|
}[] | undefined;
|
|
@@ -622,8 +622,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
622
622
|
errorHandling: string;
|
|
623
623
|
constraints?: string[] | undefined;
|
|
624
624
|
};
|
|
625
|
-
result?: unknown;
|
|
626
625
|
toolName?: string | undefined;
|
|
626
|
+
result?: unknown;
|
|
627
627
|
}[];
|
|
628
628
|
complexity: "low" | "medium" | "high";
|
|
629
629
|
recommendedModel: string;
|
|
@@ -635,8 +635,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
635
635
|
};
|
|
636
636
|
createdAt: string;
|
|
637
637
|
conflicts?: {
|
|
638
|
-
message: string;
|
|
639
638
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
639
|
+
message: string;
|
|
640
640
|
suggestion?: string | undefined;
|
|
641
641
|
}[] | undefined;
|
|
642
642
|
replanContext?: {
|
|
@@ -668,7 +668,7 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
668
668
|
swapOrBridge?: "lifi" | undefined;
|
|
669
669
|
} | undefined;
|
|
670
670
|
};
|
|
671
|
-
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
671
|
+
messages: (import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage)[];
|
|
672
672
|
userContext: {
|
|
673
673
|
address: string;
|
|
674
674
|
signerWallet?: string | undefined;
|
|
@@ -677,8 +677,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
677
677
|
prompt?: {
|
|
678
678
|
role: "user";
|
|
679
679
|
content: {
|
|
680
|
-
type: "text";
|
|
681
680
|
text: string;
|
|
681
|
+
type: "text";
|
|
682
682
|
}[];
|
|
683
683
|
} | undefined;
|
|
684
684
|
toolResults?: {
|
|
@@ -692,8 +692,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
692
692
|
message: string;
|
|
693
693
|
}[];
|
|
694
694
|
} | {
|
|
695
|
-
message: string;
|
|
696
695
|
type: "execution";
|
|
696
|
+
message: string;
|
|
697
697
|
details?: unknown;
|
|
698
698
|
} | undefined;
|
|
699
699
|
}[] | undefined;
|
|
@@ -735,8 +735,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
735
735
|
errorHandling: string;
|
|
736
736
|
constraints?: string[] | undefined;
|
|
737
737
|
};
|
|
738
|
-
result?: unknown;
|
|
739
738
|
toolName?: string | undefined;
|
|
739
|
+
result?: unknown;
|
|
740
740
|
}[];
|
|
741
741
|
complexity: "low" | "medium" | "high";
|
|
742
742
|
recommendedModel: string;
|
|
@@ -748,8 +748,8 @@ export declare const CoreApiChatBodyRequestBaseSchema: z.ZodObject<{
|
|
|
748
748
|
};
|
|
749
749
|
createdAt: string;
|
|
750
750
|
conflicts?: {
|
|
751
|
-
message: string;
|
|
752
751
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
752
|
+
message: string;
|
|
753
753
|
suggestion?: string | undefined;
|
|
754
754
|
}[] | undefined;
|
|
755
755
|
replanContext?: {
|
|
@@ -846,7 +846,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
846
846
|
swapOrBridge?: "lifi" | undefined;
|
|
847
847
|
} | undefined;
|
|
848
848
|
}>;
|
|
849
|
-
messages: z.ZodArray<z.ZodType<import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("@ai-sdk/provider-utils").ModelMessage>, "many">;
|
|
849
|
+
messages: z.ZodEffects<z.ZodArray<z.ZodType<import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage, z.ZodTypeDef, import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage>, "many">, import("@ai-sdk/provider-utils").ModelMessage[], (import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage)[]>;
|
|
850
850
|
userContext: z.ZodObject<{
|
|
851
851
|
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
852
852
|
signerWallet: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
@@ -863,23 +863,23 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
863
863
|
type: z.ZodLiteral<"text">;
|
|
864
864
|
text: z.ZodString;
|
|
865
865
|
}, "strict", z.ZodTypeAny, {
|
|
866
|
-
type: "text";
|
|
867
866
|
text: string;
|
|
868
|
-
}, {
|
|
869
867
|
type: "text";
|
|
868
|
+
}, {
|
|
870
869
|
text: string;
|
|
870
|
+
type: "text";
|
|
871
871
|
}>, "many">;
|
|
872
872
|
}, "strict", z.ZodTypeAny, {
|
|
873
873
|
role: "user";
|
|
874
874
|
content: {
|
|
875
|
-
type: "text";
|
|
876
875
|
text: string;
|
|
876
|
+
type: "text";
|
|
877
877
|
}[];
|
|
878
878
|
}, {
|
|
879
879
|
role: "user";
|
|
880
880
|
content: {
|
|
881
|
-
type: "text";
|
|
882
881
|
text: string;
|
|
882
|
+
type: "text";
|
|
883
883
|
}[];
|
|
884
884
|
}>>;
|
|
885
885
|
toolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -915,12 +915,12 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
915
915
|
message: z.ZodString;
|
|
916
916
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
917
917
|
}, "strict", z.ZodTypeAny, {
|
|
918
|
-
message: string;
|
|
919
918
|
type: "execution";
|
|
919
|
+
message: string;
|
|
920
920
|
details?: unknown;
|
|
921
921
|
}, {
|
|
922
|
-
message: string;
|
|
923
922
|
type: "execution";
|
|
923
|
+
message: string;
|
|
924
924
|
details?: unknown;
|
|
925
925
|
}>]>>;
|
|
926
926
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -934,8 +934,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
934
934
|
message: string;
|
|
935
935
|
}[];
|
|
936
936
|
} | {
|
|
937
|
-
message: string;
|
|
938
937
|
type: "execution";
|
|
938
|
+
message: string;
|
|
939
939
|
details?: unknown;
|
|
940
940
|
} | undefined;
|
|
941
941
|
}, {
|
|
@@ -949,8 +949,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
949
949
|
message: string;
|
|
950
950
|
}[];
|
|
951
951
|
} | {
|
|
952
|
-
message: string;
|
|
953
952
|
type: "execution";
|
|
953
|
+
message: string;
|
|
954
954
|
details?: unknown;
|
|
955
955
|
} | undefined;
|
|
956
956
|
}>, "many">>;
|
|
@@ -1062,8 +1062,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1062
1062
|
errorHandling: string;
|
|
1063
1063
|
constraints?: string[] | undefined;
|
|
1064
1064
|
};
|
|
1065
|
-
result?: unknown;
|
|
1066
1065
|
toolName?: string | undefined;
|
|
1066
|
+
result?: unknown;
|
|
1067
1067
|
}, {
|
|
1068
1068
|
status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
|
|
1069
1069
|
description: string;
|
|
@@ -1078,8 +1078,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1078
1078
|
errorHandling: string;
|
|
1079
1079
|
constraints?: string[] | undefined;
|
|
1080
1080
|
};
|
|
1081
|
-
result?: unknown;
|
|
1082
1081
|
toolName?: string | undefined;
|
|
1082
|
+
result?: unknown;
|
|
1083
1083
|
}>, "many">;
|
|
1084
1084
|
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
1085
1085
|
recommendedModel: z.ZodString;
|
|
@@ -1103,8 +1103,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1103
1103
|
errorHandling: string;
|
|
1104
1104
|
constraints?: string[] | undefined;
|
|
1105
1105
|
};
|
|
1106
|
-
result?: unknown;
|
|
1107
1106
|
toolName?: string | undefined;
|
|
1107
|
+
result?: unknown;
|
|
1108
1108
|
}[];
|
|
1109
1109
|
complexity: "low" | "medium" | "high";
|
|
1110
1110
|
recommendedModel: string;
|
|
@@ -1128,8 +1128,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1128
1128
|
errorHandling: string;
|
|
1129
1129
|
constraints?: string[] | undefined;
|
|
1130
1130
|
};
|
|
1131
|
-
result?: unknown;
|
|
1132
1131
|
toolName?: string | undefined;
|
|
1132
|
+
result?: unknown;
|
|
1133
1133
|
}[];
|
|
1134
1134
|
complexity: "low" | "medium" | "high";
|
|
1135
1135
|
recommendedModel: string;
|
|
@@ -1144,12 +1144,12 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1144
1144
|
message: z.ZodString;
|
|
1145
1145
|
suggestion: z.ZodOptional<z.ZodString>;
|
|
1146
1146
|
}, "strip", z.ZodTypeAny, {
|
|
1147
|
-
message: string;
|
|
1148
1147
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
1148
|
+
message: string;
|
|
1149
1149
|
suggestion?: string | undefined;
|
|
1150
1150
|
}, {
|
|
1151
|
-
message: string;
|
|
1152
1151
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
1152
|
+
message: string;
|
|
1153
1153
|
suggestion?: string | undefined;
|
|
1154
1154
|
}>, "many">>;
|
|
1155
1155
|
replanContext: z.ZodOptional<z.ZodObject<{
|
|
@@ -1198,8 +1198,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1198
1198
|
errorHandling: string;
|
|
1199
1199
|
constraints?: string[] | undefined;
|
|
1200
1200
|
};
|
|
1201
|
-
result?: unknown;
|
|
1202
1201
|
toolName?: string | undefined;
|
|
1202
|
+
result?: unknown;
|
|
1203
1203
|
}[];
|
|
1204
1204
|
complexity: "low" | "medium" | "high";
|
|
1205
1205
|
recommendedModel: string;
|
|
@@ -1211,8 +1211,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1211
1211
|
};
|
|
1212
1212
|
createdAt: string;
|
|
1213
1213
|
conflicts?: {
|
|
1214
|
-
message: string;
|
|
1215
1214
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
1215
|
+
message: string;
|
|
1216
1216
|
suggestion?: string | undefined;
|
|
1217
1217
|
}[] | undefined;
|
|
1218
1218
|
replanContext?: {
|
|
@@ -1252,8 +1252,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1252
1252
|
errorHandling: string;
|
|
1253
1253
|
constraints?: string[] | undefined;
|
|
1254
1254
|
};
|
|
1255
|
-
result?: unknown;
|
|
1256
1255
|
toolName?: string | undefined;
|
|
1256
|
+
result?: unknown;
|
|
1257
1257
|
}[];
|
|
1258
1258
|
complexity: "low" | "medium" | "high";
|
|
1259
1259
|
recommendedModel: string;
|
|
@@ -1265,8 +1265,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1265
1265
|
};
|
|
1266
1266
|
createdAt: string;
|
|
1267
1267
|
conflicts?: {
|
|
1268
|
-
message: string;
|
|
1269
1268
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
1269
|
+
message: string;
|
|
1270
1270
|
suggestion?: string | undefined;
|
|
1271
1271
|
}[] | undefined;
|
|
1272
1272
|
replanContext?: {
|
|
@@ -1335,8 +1335,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1335
1335
|
prompt?: {
|
|
1336
1336
|
role: "user";
|
|
1337
1337
|
content: {
|
|
1338
|
-
type: "text";
|
|
1339
1338
|
text: string;
|
|
1339
|
+
type: "text";
|
|
1340
1340
|
}[];
|
|
1341
1341
|
} | undefined;
|
|
1342
1342
|
toolResults?: {
|
|
@@ -1350,8 +1350,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1350
1350
|
message: string;
|
|
1351
1351
|
}[];
|
|
1352
1352
|
} | {
|
|
1353
|
-
message: string;
|
|
1354
1353
|
type: "execution";
|
|
1354
|
+
message: string;
|
|
1355
1355
|
details?: unknown;
|
|
1356
1356
|
} | undefined;
|
|
1357
1357
|
}[] | undefined;
|
|
@@ -1390,8 +1390,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1390
1390
|
errorHandling: string;
|
|
1391
1391
|
constraints?: string[] | undefined;
|
|
1392
1392
|
};
|
|
1393
|
-
result?: unknown;
|
|
1394
1393
|
toolName?: string | undefined;
|
|
1394
|
+
result?: unknown;
|
|
1395
1395
|
}[];
|
|
1396
1396
|
complexity: "low" | "medium" | "high";
|
|
1397
1397
|
recommendedModel: string;
|
|
@@ -1403,8 +1403,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1403
1403
|
};
|
|
1404
1404
|
createdAt: string;
|
|
1405
1405
|
conflicts?: {
|
|
1406
|
-
message: string;
|
|
1407
1406
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
1407
|
+
message: string;
|
|
1408
1408
|
suggestion?: string | undefined;
|
|
1409
1409
|
}[] | undefined;
|
|
1410
1410
|
replanContext?: {
|
|
@@ -1436,7 +1436,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1436
1436
|
swapOrBridge?: "lifi" | undefined;
|
|
1437
1437
|
} | undefined;
|
|
1438
1438
|
};
|
|
1439
|
-
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
1439
|
+
messages: (import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage)[];
|
|
1440
1440
|
userContext: {
|
|
1441
1441
|
address: string;
|
|
1442
1442
|
signerWallet?: string | undefined;
|
|
@@ -1445,8 +1445,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1445
1445
|
prompt?: {
|
|
1446
1446
|
role: "user";
|
|
1447
1447
|
content: {
|
|
1448
|
-
type: "text";
|
|
1449
1448
|
text: string;
|
|
1449
|
+
type: "text";
|
|
1450
1450
|
}[];
|
|
1451
1451
|
} | undefined;
|
|
1452
1452
|
toolResults?: {
|
|
@@ -1460,8 +1460,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1460
1460
|
message: string;
|
|
1461
1461
|
}[];
|
|
1462
1462
|
} | {
|
|
1463
|
-
message: string;
|
|
1464
1463
|
type: "execution";
|
|
1464
|
+
message: string;
|
|
1465
1465
|
details?: unknown;
|
|
1466
1466
|
} | undefined;
|
|
1467
1467
|
}[] | undefined;
|
|
@@ -1503,8 +1503,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1503
1503
|
errorHandling: string;
|
|
1504
1504
|
constraints?: string[] | undefined;
|
|
1505
1505
|
};
|
|
1506
|
-
result?: unknown;
|
|
1507
1506
|
toolName?: string | undefined;
|
|
1507
|
+
result?: unknown;
|
|
1508
1508
|
}[];
|
|
1509
1509
|
complexity: "low" | "medium" | "high";
|
|
1510
1510
|
recommendedModel: string;
|
|
@@ -1516,8 +1516,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1516
1516
|
};
|
|
1517
1517
|
createdAt: string;
|
|
1518
1518
|
conflicts?: {
|
|
1519
|
-
message: string;
|
|
1520
1519
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
1520
|
+
message: string;
|
|
1521
1521
|
suggestion?: string | undefined;
|
|
1522
1522
|
}[] | undefined;
|
|
1523
1523
|
replanContext?: {
|
|
@@ -1561,8 +1561,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1561
1561
|
prompt?: {
|
|
1562
1562
|
role: "user";
|
|
1563
1563
|
content: {
|
|
1564
|
-
type: "text";
|
|
1565
1564
|
text: string;
|
|
1565
|
+
type: "text";
|
|
1566
1566
|
}[];
|
|
1567
1567
|
} | undefined;
|
|
1568
1568
|
toolResults?: {
|
|
@@ -1576,8 +1576,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1576
1576
|
message: string;
|
|
1577
1577
|
}[];
|
|
1578
1578
|
} | {
|
|
1579
|
-
message: string;
|
|
1580
1579
|
type: "execution";
|
|
1580
|
+
message: string;
|
|
1581
1581
|
details?: unknown;
|
|
1582
1582
|
} | undefined;
|
|
1583
1583
|
}[] | undefined;
|
|
@@ -1616,8 +1616,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1616
1616
|
errorHandling: string;
|
|
1617
1617
|
constraints?: string[] | undefined;
|
|
1618
1618
|
};
|
|
1619
|
-
result?: unknown;
|
|
1620
1619
|
toolName?: string | undefined;
|
|
1620
|
+
result?: unknown;
|
|
1621
1621
|
}[];
|
|
1622
1622
|
complexity: "low" | "medium" | "high";
|
|
1623
1623
|
recommendedModel: string;
|
|
@@ -1629,8 +1629,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1629
1629
|
};
|
|
1630
1630
|
createdAt: string;
|
|
1631
1631
|
conflicts?: {
|
|
1632
|
-
message: string;
|
|
1633
1632
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
1633
|
+
message: string;
|
|
1634
1634
|
suggestion?: string | undefined;
|
|
1635
1635
|
}[] | undefined;
|
|
1636
1636
|
replanContext?: {
|
|
@@ -1662,7 +1662,7 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1662
1662
|
swapOrBridge?: "lifi" | undefined;
|
|
1663
1663
|
} | undefined;
|
|
1664
1664
|
};
|
|
1665
|
-
messages: import("@ai-sdk/provider-utils").ModelMessage[];
|
|
1665
|
+
messages: (import("./uiMessageNormalizer.js").UIMessageLike | import("@ai-sdk/provider-utils").ModelMessage)[];
|
|
1666
1666
|
userContext: {
|
|
1667
1667
|
address: string;
|
|
1668
1668
|
signerWallet?: string | undefined;
|
|
@@ -1671,8 +1671,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1671
1671
|
prompt?: {
|
|
1672
1672
|
role: "user";
|
|
1673
1673
|
content: {
|
|
1674
|
-
type: "text";
|
|
1675
1674
|
text: string;
|
|
1675
|
+
type: "text";
|
|
1676
1676
|
}[];
|
|
1677
1677
|
} | undefined;
|
|
1678
1678
|
toolResults?: {
|
|
@@ -1686,8 +1686,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1686
1686
|
message: string;
|
|
1687
1687
|
}[];
|
|
1688
1688
|
} | {
|
|
1689
|
-
message: string;
|
|
1690
1689
|
type: "execution";
|
|
1690
|
+
message: string;
|
|
1691
1691
|
details?: unknown;
|
|
1692
1692
|
} | undefined;
|
|
1693
1693
|
}[] | undefined;
|
|
@@ -1729,8 +1729,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1729
1729
|
errorHandling: string;
|
|
1730
1730
|
constraints?: string[] | undefined;
|
|
1731
1731
|
};
|
|
1732
|
-
result?: unknown;
|
|
1733
1732
|
toolName?: string | undefined;
|
|
1733
|
+
result?: unknown;
|
|
1734
1734
|
}[];
|
|
1735
1735
|
complexity: "low" | "medium" | "high";
|
|
1736
1736
|
recommendedModel: string;
|
|
@@ -1742,8 +1742,8 @@ export declare const CoreApiChatBodyRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1742
1742
|
};
|
|
1743
1743
|
createdAt: string;
|
|
1744
1744
|
conflicts?: {
|
|
1745
|
-
message: string;
|
|
1746
1745
|
type: "conflicting_intent" | "impossible_task" | "missing_tool" | "unsupported_operation";
|
|
1746
|
+
message: string;
|
|
1747
1747
|
suggestion?: string | undefined;
|
|
1748
1748
|
}[] | undefined;
|
|
1749
1749
|
replanContext?: {
|
|
@@ -48,12 +48,12 @@ export declare const IllaToolExecutionErrorDataSchema: z.ZodObject<{
|
|
|
48
48
|
message: z.ZodString;
|
|
49
49
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
50
50
|
}, "strict", z.ZodTypeAny, {
|
|
51
|
-
message: string;
|
|
52
51
|
type: "execution";
|
|
52
|
+
message: string;
|
|
53
53
|
details?: unknown;
|
|
54
54
|
}, {
|
|
55
|
-
message: string;
|
|
56
55
|
type: "execution";
|
|
56
|
+
message: string;
|
|
57
57
|
details?: unknown;
|
|
58
58
|
}>;
|
|
59
59
|
/**
|
|
@@ -88,12 +88,12 @@ export declare const IllaToolErrorDataSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
88
88
|
message: z.ZodString;
|
|
89
89
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
90
90
|
}, "strict", z.ZodTypeAny, {
|
|
91
|
-
message: string;
|
|
92
91
|
type: "execution";
|
|
92
|
+
message: string;
|
|
93
93
|
details?: unknown;
|
|
94
94
|
}, {
|
|
95
|
-
message: string;
|
|
96
95
|
type: "execution";
|
|
96
|
+
message: string;
|
|
97
97
|
details?: unknown;
|
|
98
98
|
}>]>;
|
|
99
99
|
/**
|
|
@@ -131,17 +131,15 @@ export declare const IllaToolErrorSchema: z.ZodObject<{
|
|
|
131
131
|
message: z.ZodString;
|
|
132
132
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
133
133
|
}, "strict", z.ZodTypeAny, {
|
|
134
|
-
message: string;
|
|
135
134
|
type: "execution";
|
|
135
|
+
message: string;
|
|
136
136
|
details?: unknown;
|
|
137
137
|
}, {
|
|
138
|
-
message: string;
|
|
139
138
|
type: "execution";
|
|
139
|
+
message: string;
|
|
140
140
|
details?: unknown;
|
|
141
141
|
}>]>;
|
|
142
142
|
}, "strict", z.ZodTypeAny, {
|
|
143
|
-
id: string;
|
|
144
|
-
name: string;
|
|
145
143
|
data: {
|
|
146
144
|
type: "input";
|
|
147
145
|
errors: {
|
|
@@ -149,13 +147,13 @@ export declare const IllaToolErrorSchema: z.ZodObject<{
|
|
|
149
147
|
message: string;
|
|
150
148
|
}[];
|
|
151
149
|
} | {
|
|
152
|
-
message: string;
|
|
153
150
|
type: "execution";
|
|
151
|
+
message: string;
|
|
154
152
|
details?: unknown;
|
|
155
153
|
};
|
|
156
|
-
}, {
|
|
157
154
|
id: string;
|
|
158
155
|
name: string;
|
|
156
|
+
}, {
|
|
159
157
|
data: {
|
|
160
158
|
type: "input";
|
|
161
159
|
errors: {
|
|
@@ -163,10 +161,12 @@ export declare const IllaToolErrorSchema: z.ZodObject<{
|
|
|
163
161
|
message: string;
|
|
164
162
|
}[];
|
|
165
163
|
} | {
|
|
166
|
-
message: string;
|
|
167
164
|
type: "execution";
|
|
165
|
+
message: string;
|
|
168
166
|
details?: unknown;
|
|
169
167
|
};
|
|
168
|
+
id: string;
|
|
169
|
+
name: string;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Schema for serialized IllaToolOutcome
|
|
@@ -204,12 +204,12 @@ export declare const IllaToolOutcomeSchema: z.ZodObject<{
|
|
|
204
204
|
message: z.ZodString;
|
|
205
205
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
206
206
|
}, "strict", z.ZodTypeAny, {
|
|
207
|
-
message: string;
|
|
208
207
|
type: "execution";
|
|
208
|
+
message: string;
|
|
209
209
|
details?: unknown;
|
|
210
210
|
}, {
|
|
211
|
-
message: string;
|
|
212
211
|
type: "execution";
|
|
212
|
+
message: string;
|
|
213
213
|
details?: unknown;
|
|
214
214
|
}>]>>;
|
|
215
215
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -223,8 +223,8 @@ export declare const IllaToolOutcomeSchema: z.ZodObject<{
|
|
|
223
223
|
message: string;
|
|
224
224
|
}[];
|
|
225
225
|
} | {
|
|
226
|
-
message: string;
|
|
227
226
|
type: "execution";
|
|
227
|
+
message: string;
|
|
228
228
|
details?: unknown;
|
|
229
229
|
} | undefined;
|
|
230
230
|
}, {
|
|
@@ -238,8 +238,8 @@ export declare const IllaToolOutcomeSchema: z.ZodObject<{
|
|
|
238
238
|
message: string;
|
|
239
239
|
}[];
|
|
240
240
|
} | {
|
|
241
|
-
message: string;
|
|
242
241
|
type: "execution";
|
|
242
|
+
message: string;
|
|
243
243
|
details?: unknown;
|
|
244
244
|
} | undefined;
|
|
245
245
|
}>;
|