@illalabs/interfaces 0.10.4-canary-beta-3a22fc81 → 0.10.4
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/interfaces/chat/response.d.ts +5 -5
- package/dist/interfaces/chat/response.d.ts.map +1 -1
- package/dist/schemas/chatContext.d.ts +23 -23
- package/dist/schemas/chatRequestBody.d.ts +76 -76
- package/dist/schemas/executionCheckerQueryParams.d.ts +2 -2
- package/dist/schemas/illaTools.d.ts +8 -8
- package/dist/schemas/illaTools.d.ts.map +1 -1
- package/dist/schemas/illaTools.js +2 -3
- package/dist/schemas/illaTools.js.map +1 -1
- package/dist/schemas/messages.d.ts +10 -10
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +1 -2
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/planning.d.ts +36 -36
- package/dist/schemas/planningRuntime.d.ts +26 -26
- package/dist/schemas/telemetryEvents.d.ts +443 -221
- package/dist/schemas/telemetryEvents.d.ts.map +1 -1
- package/dist/schemas/telemetryEvents.js +40 -2
- package/dist/schemas/telemetryEvents.js.map +1 -1
- package/dist/schemas/uiMessageNormalizer.d.ts.map +1 -1
- package/dist/schemas/uiMessageNormalizer.js +80 -11
- package/dist/schemas/uiMessageNormalizer.js.map +1 -1
- package/dist/tools/IllaToolError.d.ts +5 -6
- package/dist/tools/IllaToolError.d.ts.map +1 -1
- package/dist/tools/IllaToolError.js.map +1 -1
- package/dist/tools/IllaToolOutcome.d.ts +3 -4
- package/dist/tools/IllaToolOutcome.d.ts.map +1 -1
- package/dist/tools/IllaToolOutcome.js.map +1 -1
- package/dist/types/actions/index.d.ts +0 -1
- package/dist/types/actions/index.d.ts.map +1 -1
- package/dist/types/actions/index.js +0 -1
- package/dist/types/actions/index.js.map +1 -1
- package/dist/types/actions/outputs.d.ts +0 -42
- package/dist/types/actions/outputs.d.ts.map +1 -1
- package/dist/types/actions/tools/defiPositionsAction.d.ts +11 -9
- package/dist/types/actions/tools/defiPositionsAction.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/telemetry.d.ts +31 -28
- 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
- package/dist/types/actions/outputs/defi.output.d.ts +0 -13
- package/dist/types/actions/outputs/defi.output.d.ts.map +0 -1
- package/dist/types/actions/outputs/defi.output.js +0 -2
- package/dist/types/actions/outputs/defi.output.js.map +0 -1
- package/dist/types/actions/outputs/exchangeRate.output.d.ts +0 -17
- package/dist/types/actions/outputs/exchangeRate.output.d.ts.map +0 -1
- package/dist/types/actions/outputs/exchangeRate.output.js +0 -2
- package/dist/types/actions/outputs/exchangeRate.output.js.map +0 -1
- package/dist/types/actions/outputs/index.d.ts +0 -7
- package/dist/types/actions/outputs/index.d.ts.map +0 -1
- package/dist/types/actions/outputs/index.js +0 -6
- package/dist/types/actions/outputs/index.js.map +0 -1
- package/dist/types/actions/outputs/polymarket.output.d.ts +0 -37
- package/dist/types/actions/outputs/polymarket.output.d.ts.map +0 -1
- package/dist/types/actions/outputs/polymarket.output.js +0 -2
- package/dist/types/actions/outputs/polymarket.output.js.map +0 -1
- package/dist/types/actions/outputs/predictionMarket.output.d.ts +0 -69
- package/dist/types/actions/outputs/predictionMarket.output.d.ts.map +0 -1
- package/dist/types/actions/outputs/predictionMarket.output.js +0 -2
- package/dist/types/actions/outputs/predictionMarket.output.js.map +0 -1
- package/dist/types/actions/outputs/walletBalance.output.d.ts +0 -19
- package/dist/types/actions/outputs/walletBalance.output.d.ts.map +0 -1
- package/dist/types/actions/outputs/walletBalance.output.js +0 -2
- package/dist/types/actions/outputs/walletBalance.output.js.map +0 -1
- package/dist/types/illaMessage.d.ts +0 -57
- package/dist/types/illaMessage.d.ts.map +0 -1
- package/dist/types/illaMessage.js +0 -2
- package/dist/types/illaMessage.js.map +0 -1
- package/dist/types/typedToolTypes.d.ts +0 -65
- package/dist/types/typedToolTypes.d.ts.map +0 -1
- package/dist/types/typedToolTypes.js +0 -2
- package/dist/types/typedToolTypes.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { ChatError } from "../../errors/endpoints/chat/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { IllaToolErrorJSON } from "../../internal.js";
|
|
3
|
+
import type { MessageHistoryType, PendingToolCallType } from "../../types/messages.js";
|
|
4
4
|
import type { BaseApiSuccessResponse } from "../base.js";
|
|
5
5
|
import type { PlanningResponseFields } from "../planning/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* Success response for chat endpoint
|
|
8
8
|
*/
|
|
9
9
|
export interface CoreApiChatSuccessResponse extends BaseApiSuccessResponse, PlanningResponseFields {
|
|
10
|
-
readonly messages:
|
|
10
|
+
readonly messages: MessageHistoryType;
|
|
11
11
|
readonly text: string;
|
|
12
|
-
readonly pendingTools?: ReadonlyArray<
|
|
13
|
-
readonly toolErrors?: ReadonlyArray<
|
|
12
|
+
readonly pendingTools?: ReadonlyArray<PendingToolCallType>;
|
|
13
|
+
readonly toolErrors?: ReadonlyArray<IllaToolErrorJSON>;
|
|
14
14
|
/** Request ID for subscribing to telemetry events */
|
|
15
15
|
readonly requestId?: string;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/interfaces/chat/response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/interfaces/chat/response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB,EAAE,sBAAsB;IAC9F,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvD,qDAAqD;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,GAAG,wBAAwB,CAAC"}
|
|
@@ -116,7 +116,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
116
116
|
}>>;
|
|
117
117
|
toolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
118
|
id: z.ZodString;
|
|
119
|
-
name: z.
|
|
119
|
+
name: z.ZodString;
|
|
120
120
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
121
121
|
error: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
122
122
|
type: z.ZodLiteral<"input">;
|
|
@@ -157,8 +157,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
157
157
|
}>]>>;
|
|
158
158
|
}, "strict", z.ZodTypeAny, {
|
|
159
159
|
id: string;
|
|
160
|
-
name:
|
|
161
|
-
result?: unknown;
|
|
160
|
+
name: string;
|
|
162
161
|
error?: {
|
|
163
162
|
type: "input";
|
|
164
163
|
errors: {
|
|
@@ -170,10 +169,10 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
170
169
|
message: string;
|
|
171
170
|
details?: unknown;
|
|
172
171
|
} | undefined;
|
|
172
|
+
result?: unknown;
|
|
173
173
|
}, {
|
|
174
174
|
id: string;
|
|
175
|
-
name:
|
|
176
|
-
result?: unknown;
|
|
175
|
+
name: string;
|
|
177
176
|
error?: {
|
|
178
177
|
type: "input";
|
|
179
178
|
errors: {
|
|
@@ -185,6 +184,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
185
184
|
message: string;
|
|
186
185
|
details?: unknown;
|
|
187
186
|
} | undefined;
|
|
187
|
+
result?: unknown;
|
|
188
188
|
}>, "many">>;
|
|
189
189
|
languageModel: z.ZodString;
|
|
190
190
|
personalityContext: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
@@ -217,12 +217,12 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
217
217
|
requiresApproval: z.ZodBoolean;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
219
|
number: number;
|
|
220
|
-
status: "
|
|
220
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
221
221
|
description: string;
|
|
222
222
|
requiresApproval: boolean;
|
|
223
223
|
}, {
|
|
224
224
|
number: number;
|
|
225
|
-
status: "
|
|
225
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
226
226
|
description: string;
|
|
227
227
|
requiresApproval: boolean;
|
|
228
228
|
}>, "many">;
|
|
@@ -232,7 +232,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
232
232
|
title: string;
|
|
233
233
|
steps: {
|
|
234
234
|
number: number;
|
|
235
|
-
status: "
|
|
235
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
236
236
|
description: string;
|
|
237
237
|
requiresApproval: boolean;
|
|
238
238
|
}[];
|
|
@@ -242,7 +242,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
242
242
|
title: string;
|
|
243
243
|
steps: {
|
|
244
244
|
number: number;
|
|
245
|
-
status: "
|
|
245
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
246
246
|
description: string;
|
|
247
247
|
requiresApproval: boolean;
|
|
248
248
|
}[];
|
|
@@ -278,7 +278,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
278
278
|
constraints?: string[] | undefined;
|
|
279
279
|
}>;
|
|
280
280
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
-
status: "
|
|
281
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
282
282
|
description: string;
|
|
283
283
|
stepNumber: number;
|
|
284
284
|
operationType: "read" | "write";
|
|
@@ -291,10 +291,10 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
291
291
|
errorHandling: string;
|
|
292
292
|
constraints?: string[] | undefined;
|
|
293
293
|
};
|
|
294
|
-
toolName?: string | undefined;
|
|
295
294
|
result?: unknown;
|
|
295
|
+
toolName?: string | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
status: "
|
|
297
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
298
298
|
description: string;
|
|
299
299
|
stepNumber: number;
|
|
300
300
|
operationType: "read" | "write";
|
|
@@ -307,8 +307,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
307
307
|
errorHandling: string;
|
|
308
308
|
constraints?: string[] | undefined;
|
|
309
309
|
};
|
|
310
|
-
toolName?: string | undefined;
|
|
311
310
|
result?: unknown;
|
|
311
|
+
toolName?: string | undefined;
|
|
312
312
|
}>, "many">;
|
|
313
313
|
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
314
314
|
recommendedModel: z.ZodString;
|
|
@@ -319,7 +319,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
319
319
|
availableTools: z.ZodArray<z.ZodString, "many">;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
321
|
steps: {
|
|
322
|
-
status: "
|
|
322
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
323
323
|
description: string;
|
|
324
324
|
stepNumber: number;
|
|
325
325
|
operationType: "read" | "write";
|
|
@@ -332,8 +332,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
332
332
|
errorHandling: string;
|
|
333
333
|
constraints?: string[] | undefined;
|
|
334
334
|
};
|
|
335
|
-
toolName?: string | undefined;
|
|
336
335
|
result?: unknown;
|
|
336
|
+
toolName?: string | undefined;
|
|
337
337
|
}[];
|
|
338
338
|
complexity: "low" | "medium" | "high";
|
|
339
339
|
recommendedModel: string;
|
|
@@ -344,7 +344,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
344
344
|
availableTools: string[];
|
|
345
345
|
}, {
|
|
346
346
|
steps: {
|
|
347
|
-
status: "
|
|
347
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
348
348
|
description: string;
|
|
349
349
|
stepNumber: number;
|
|
350
350
|
operationType: "read" | "write";
|
|
@@ -357,8 +357,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
357
357
|
errorHandling: string;
|
|
358
358
|
constraints?: string[] | undefined;
|
|
359
359
|
};
|
|
360
|
-
toolName?: string | undefined;
|
|
361
360
|
result?: unknown;
|
|
361
|
+
toolName?: string | undefined;
|
|
362
362
|
}[];
|
|
363
363
|
complexity: "low" | "medium" | "high";
|
|
364
364
|
recommendedModel: string;
|
|
@@ -406,7 +406,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
406
406
|
title: string;
|
|
407
407
|
steps: {
|
|
408
408
|
number: number;
|
|
409
|
-
status: "
|
|
409
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
410
410
|
description: string;
|
|
411
411
|
requiresApproval: boolean;
|
|
412
412
|
}[];
|
|
@@ -414,7 +414,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
414
414
|
};
|
|
415
415
|
executionSchema: {
|
|
416
416
|
steps: {
|
|
417
|
-
status: "
|
|
417
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
418
418
|
description: string;
|
|
419
419
|
stepNumber: number;
|
|
420
420
|
operationType: "read" | "write";
|
|
@@ -427,8 +427,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
427
427
|
errorHandling: string;
|
|
428
428
|
constraints?: string[] | undefined;
|
|
429
429
|
};
|
|
430
|
-
toolName?: string | undefined;
|
|
431
430
|
result?: unknown;
|
|
431
|
+
toolName?: string | undefined;
|
|
432
432
|
}[];
|
|
433
433
|
complexity: "low" | "medium" | "high";
|
|
434
434
|
recommendedModel: string;
|
|
@@ -460,7 +460,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
460
460
|
title: string;
|
|
461
461
|
steps: {
|
|
462
462
|
number: number;
|
|
463
|
-
status: "
|
|
463
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
464
464
|
description: string;
|
|
465
465
|
requiresApproval: boolean;
|
|
466
466
|
}[];
|
|
@@ -468,7 +468,7 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
468
468
|
};
|
|
469
469
|
executionSchema: {
|
|
470
470
|
steps: {
|
|
471
|
-
status: "
|
|
471
|
+
status: "skipped" | "pending" | "in_progress" | "completed" | "failed";
|
|
472
472
|
description: string;
|
|
473
473
|
stepNumber: number;
|
|
474
474
|
operationType: "read" | "write";
|
|
@@ -481,8 +481,8 @@ export declare const ChatContextSchema: z.ZodObject<Pick<{
|
|
|
481
481
|
errorHandling: string;
|
|
482
482
|
constraints?: string[] | undefined;
|
|
483
483
|
};
|
|
484
|
-
toolName?: string | undefined;
|
|
485
484
|
result?: unknown;
|
|
485
|
+
toolName?: string | undefined;
|
|
486
486
|
}[];
|
|
487
487
|
complexity: "low" | "medium" | "high";
|
|
488
488
|
recommendedModel: string;
|