@illalabs/sdk 0.3.3-canary.b7f69a88 → 0.4.0-canary.56299752

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 (45) hide show
  1. package/dist/src/chat/Chat.d.ts +6 -3
  2. package/dist/src/chat/Chat.d.ts.map +1 -1
  3. package/dist/src/chat/Chat.js +73 -22
  4. package/dist/src/chat/Chat.js.map +1 -1
  5. package/dist/src/chat/errors/ChatInvalidMultiplePromptsKind.d.ts +22 -0
  6. package/dist/src/chat/errors/ChatInvalidMultiplePromptsKind.d.ts.map +1 -0
  7. package/dist/src/chat/errors/ChatInvalidMultiplePromptsKind.js +31 -0
  8. package/dist/src/chat/errors/ChatInvalidMultiplePromptsKind.js.map +1 -0
  9. package/dist/src/chat/errors/ChatInvalidPromptSnapshot.d.ts +19 -0
  10. package/dist/src/chat/errors/ChatInvalidPromptSnapshot.d.ts.map +1 -0
  11. package/dist/src/chat/errors/ChatInvalidPromptSnapshot.js +28 -0
  12. package/dist/src/chat/errors/ChatInvalidPromptSnapshot.js.map +1 -0
  13. package/dist/src/chat/errors/ChatInvalidSinglePromptKind.d.ts +22 -0
  14. package/dist/src/chat/errors/ChatInvalidSinglePromptKind.d.ts.map +1 -0
  15. package/dist/src/chat/errors/ChatInvalidSinglePromptKind.js +31 -0
  16. package/dist/src/chat/errors/ChatInvalidSinglePromptKind.js.map +1 -0
  17. package/dist/src/chat/errors/index.d.ts +3 -0
  18. package/dist/src/chat/errors/index.d.ts.map +1 -1
  19. package/dist/src/chat/errors/index.js +3 -0
  20. package/dist/src/chat/errors/index.js.map +1 -1
  21. package/dist/src/chat/utils/prompt.d.ts +3 -0
  22. package/dist/src/chat/utils/prompt.d.ts.map +1 -0
  23. package/dist/src/chat/utils/prompt.js +5 -0
  24. package/dist/src/chat/utils/prompt.js.map +1 -0
  25. package/dist/src/context/ContextManager.d.ts +2 -0
  26. package/dist/src/context/ContextManager.d.ts.map +1 -1
  27. package/dist/src/context/ContextManager.js +7 -0
  28. package/dist/src/context/ContextManager.js.map +1 -1
  29. package/dist/src/errors/SdkEmptyToolsResultsError.d.ts +19 -0
  30. package/dist/src/errors/SdkEmptyToolsResultsError.d.ts.map +1 -0
  31. package/dist/src/errors/SdkEmptyToolsResultsError.js +28 -0
  32. package/dist/src/errors/SdkEmptyToolsResultsError.js.map +1 -0
  33. package/dist/src/interfaces/chat.interface.d.ts +3 -2
  34. package/dist/src/interfaces/chat.interface.d.ts.map +1 -1
  35. package/dist/src/interfaces/contextManager.interface.d.ts +7 -1
  36. package/dist/src/interfaces/contextManager.interface.d.ts.map +1 -1
  37. package/dist/src/sdk.d.ts +226 -13
  38. package/dist/src/sdk.d.ts.map +1 -1
  39. package/dist/src/sdk.js +288 -15
  40. package/dist/src/sdk.js.map +1 -1
  41. package/package.json +2 -2
  42. package/dist/src/chat/errors/ChatInvalidModelContext.d.ts +0 -15
  43. package/dist/src/chat/errors/ChatInvalidModelContext.d.ts.map +0 -1
  44. package/dist/src/chat/errors/ChatInvalidModelContext.js +0 -24
  45. package/dist/src/chat/errors/ChatInvalidModelContext.js.map +0 -1
package/dist/src/sdk.d.ts CHANGED
@@ -1,15 +1,23 @@
1
- import type { MessageHistoryType, PersonalityContext, ToolResultType, UserContext } from "@illalabs/interfaces";
2
- import type { CacheEntryOptions, ChatContextSnapshot, ContextManagerOptions, ICache, IContextManager, SendMessageResult } from "./internal.js";
3
- import { Chat, ContextManager } from "./internal.js";
1
+ import type { CoreApiChatErrorResponse, MessageHistoryType, ModelContext, PendingToolCallType, PersonalityContext, ToolErrorPartType, ToolIncompletePartType, ToolResultType, UserContext } from "@illalabs/interfaces";
2
+ import type { AsyncCheckerEvents, AsyncToolCheckerCheckParams, AwaitableActionDescriptor, AwaitActionResult, CacheEntryOptions, ChatContextSnapshot, ContextManagerOptions, CoreApiProviderConfig, CoreApiProviderRoutes, EventSubscription, HttpClientFactory, ICache, IContextManager, PollingConfig, SendMessageResult } from "./internal.js";
3
+ import { Chat, ContextManager, Prompt } from "./internal.js";
4
4
  /**
5
5
  * Configuration options for initializing the IllaSDK.
6
6
  *
7
7
  * @property apiKey - Your ILLA API key for authentication
8
8
  * @property baseURL - Optional custom base URL for the ILLA API (defaults to production API)
9
+ * @property timeout - Optional request timeout in milliseconds
10
+ * @property headers - Optional additional headers to send with requests
11
+ * @property httpClientFactory - Optional custom HTTP client factory
12
+ * @property routes - Optional custom routes configuration
9
13
  */
10
14
  type illaSDKConfig = {
11
15
  apiKey: string;
12
16
  baseURL?: string;
17
+ timeout?: number;
18
+ headers?: Record<string, string>;
19
+ httpClientFactory?: HttpClientFactory;
20
+ routes?: CoreApiProviderRoutes;
13
21
  };
14
22
  /**
15
23
  * Optional configuration for the IllaSDK instance.
@@ -39,6 +47,7 @@ type ChatOptions = {
39
47
  userContext: UserContext;
40
48
  id?: string;
41
49
  personalityContext?: PersonalityContext;
50
+ modelContext?: ModelContext;
42
51
  };
43
52
  /**
44
53
  * Context for sending a message. Requires either a chatId (to use an existing chat)
@@ -54,6 +63,19 @@ type SendMessageContext = {
54
63
  chatId?: never;
55
64
  userContext: UserContext;
56
65
  };
66
+ /**
67
+ * Metadata extracted from a SendMessageResult response.
68
+ * Provides detailed information about the response including errors, pending tools, and incomplete tools.
69
+ */
70
+ type ResponseMetadata = {
71
+ isError: boolean;
72
+ text?: string;
73
+ messages?: MessageHistoryType;
74
+ pendingTools?: ReadonlyArray<PendingToolCallType>;
75
+ incompleteTools?: ReadonlyArray<ToolIncompletePartType>;
76
+ toolErrors?: ReadonlyArray<ToolErrorPartType>;
77
+ error?: CoreApiChatErrorResponse;
78
+ };
57
79
  /**
58
80
  * Error raised when attempting to interact with a chat that doesn't exist.
59
81
  *
@@ -194,15 +216,16 @@ declare class IllaSDK {
194
216
  * If a chatId is provided, the message will be sent to the existing chat.
195
217
  * If a chatId is not provided, a new chat will be created with the provided userContext.
196
218
  *
197
- * @param msg - The message text to send
219
+ * @param msg - The message to send (can be a string or Prompt object)
198
220
  * @param context - Context containing either chatId for existing chat or userContext for new chat
221
+ * @param chatOptions - Optional chat configuration when creating a new chat
199
222
  * @returns {Promise<SendMessageResult>} The AI's response including chat ID, response text, and any pending tools
200
223
  *
201
224
  * @example
202
225
  * ```typescript
203
226
  * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
204
227
  *
205
- * // Start a new conversation
228
+ * // Start a new conversation with a string
206
229
  * const result1 = await sdk.sendMessage(
207
230
  * "What can you help me with?",
208
231
  * { userContext: { address: "0x1234..." } }
@@ -210,11 +233,9 @@ declare class IllaSDK {
210
233
  * console.log(result1.response.text);
211
234
  * console.log("Chat ID:", result1.chatId);
212
235
  *
213
- * // Continue the conversation using the chat ID
214
- * const result2 = await sdk.sendMessage(
215
- * "I want to swap 1 ETH for USDC on Base",
216
- * { chatId: result1.chatId }
217
- * );
236
+ * // Continue the conversation with a Prompt object
237
+ * const prompt = new Prompt({ text: "I want to swap 1 ETH for USDC on Base" });
238
+ * const result2 = await sdk.sendMessage(prompt, { chatId: result1.chatId });
218
239
  *
219
240
  * // Check if there are tools to execute
220
241
  * if (result2.response.pendingTools && result2.response.pendingTools.length > 0) {
@@ -222,7 +243,15 @@ declare class IllaSDK {
222
243
  * }
223
244
  * ```
224
245
  */
225
- sendMessage(msg: string, context: SendMessageContext): Promise<SendMessageResult>;
246
+ sendMessage(msg: string | Prompt, context: SendMessageContext, chatOptions?: Omit<ChatOptions, "userContext">): Promise<SendMessageResult>;
247
+ /**
248
+ * Gets an existing chat or creates a new one if it doesn't exist.
249
+ *
250
+ * @param context - Context containing either chatId for existing chat or userContext for new chat
251
+ * @param chatOptions - Optional chat configuration when creating a new chat
252
+ * @returns {Chat} The chat instance
253
+ */
254
+ private getOrCreateChat;
226
255
  /**
227
256
  * Sends the result of a tool execution back to the AI. This method is used to complete
228
257
  * the tool execution loop when the AI requests a tool to be executed.
@@ -230,7 +259,7 @@ declare class IllaSDK {
230
259
  * @param chatId - The ID of the chat to send the tool result to
231
260
  * @param toolResult - The result of the tool execution
232
261
  * @returns {Promise<SendMessageResult>} The AI's response after processing the tool result
233
- * @throws {Error} If the chat with the specified chatId is not found
262
+ * @throws {ChatNotFound} If the chat with the specified chatId is not found
234
263
  *
235
264
  * @example
236
265
  * ```typescript
@@ -271,6 +300,189 @@ declare class IllaSDK {
271
300
  * @throws {ChatNotFound} If the chat with the specified chatId is not found
272
301
  */
273
302
  getMessages(chatId: string): Promise<MessageHistoryType>;
303
+ /**
304
+ * Appends messages to an existing chat's message history.
305
+ *
306
+ * @param chatId - The ID of the chat to append messages to
307
+ * @param messages - The messages to append to the chat history
308
+ * @throws {ChatNotFound} If the chat with the specified chatId is not found
309
+ *
310
+ * @example
311
+ * ```typescript
312
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
313
+ *
314
+ * // Append synthetic messages for testing or prompting
315
+ * await sdk.appendMessages(chatId, [
316
+ * { role: "user", content: "Previous context..." },
317
+ * { role: "assistant", content: "Understood..." }
318
+ * ]);
319
+ * ```
320
+ */
321
+ appendMessages(chatId: string, messages: MessageHistoryType): Promise<void>;
322
+ /**
323
+ * Clears the message history for a chat while keeping the chat instance.
324
+ *
325
+ * @param chatId - The ID of the chat to clear
326
+ * @throws {ChatNotFound} If the chat with the specified chatId is not found
327
+ *
328
+ * @example
329
+ * ```typescript
330
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
331
+ *
332
+ * // Clear chat history to start fresh
333
+ * await sdk.clearContext(chatId);
334
+ * ```
335
+ */
336
+ clearContext(chatId: string): Promise<void>;
337
+ /**
338
+ * Deletes a chat and removes all associated data.
339
+ *
340
+ * @param chatId - The ID of the chat to delete
341
+ * @throws {ChatNotFound} If the chat with the specified chatId is not found
342
+ *
343
+ * @example
344
+ * ```typescript
345
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
346
+ *
347
+ * // Clean up chat when done
348
+ * await sdk.deleteChat(chatId);
349
+ * ```
350
+ */
351
+ deleteChat(chatId: string): Promise<void>;
352
+ /**
353
+ * Sends multiple tool results back to the AI in a single request.
354
+ * This method is used when multiple tools need to be executed and their results
355
+ * sent back together.
356
+ *
357
+ * @param chatId - The ID of the chat to send the tool results to
358
+ * @param toolResults - Array of tool execution results
359
+ * @param options - Optional parameters including AbortSignal
360
+ * @returns {Promise<SendMessageResult>} The AI's response after processing all tool results
361
+ * @throws {ChatNotFound} If the chat with the specified chatId is not found
362
+ *
363
+ * @example
364
+ * ```typescript
365
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
366
+ *
367
+ * // Execute multiple tools and send results together
368
+ * const toolResults: ToolResultType[] = pendingTools.map(tool => ({
369
+ * toolCallId: tool.toolCallId,
370
+ * toolName: tool.toolName,
371
+ * result: executeToolSync(tool),
372
+ * }));
373
+ *
374
+ * const response = await sdk.sendToolResults(chatId, toolResults);
375
+ * ```
376
+ */
377
+ sendToolResults(chatId: string, toolResults: ToolResultType[]): Promise<SendMessageResult>;
378
+ /**
379
+ * Subscribes to status updates for a long-running tool execution.
380
+ *
381
+ * @param params - Parameters identifying the tool execution to monitor
382
+ * @param callbacks - Event handlers for status changes and errors
383
+ * @param config - Optional polling configuration
384
+ * @returns {EventSubscription} Subscription handle to cancel monitoring
385
+ *
386
+ * @example
387
+ * ```typescript
388
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
389
+ *
390
+ * const subscription = sdk.subscribeToToolStatus(
391
+ * { toolName: "swap", protocol: "li.fi", args: txHash },
392
+ * {
393
+ * onStatusChange: (event) => console.log("Status:", event.status),
394
+ * onError: (error) => console.error("Error:", error)
395
+ * },
396
+ * { interval: 2000, maxDuration: 300, maxRetries: 3 }
397
+ * );
398
+ *
399
+ * // Later, cancel the subscription
400
+ * subscription.unsubscribe();
401
+ * ```
402
+ */
403
+ subscribeToToolStatus<TPayload = unknown, TError = unknown>(params: AsyncToolCheckerCheckParams, callbacks: AsyncCheckerEvents<TPayload, TError>, config?: Partial<PollingConfig>): EventSubscription;
404
+ /**
405
+ * Awaits the completion of a long-running action triggered by a chat.
406
+ *
407
+ * @param chatId - The ID of the chat that triggered the action
408
+ * @param descriptor - Descriptor identifying the action to track
409
+ * @returns {Promise<AwaitActionResult>} The final status of the action
410
+ * @throws {ChatNotFound} If the chat with the specified chatId is not found
411
+ *
412
+ * @example
413
+ * ```typescript
414
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
415
+ *
416
+ * const result = await sdk.awaitAction(chatId, {
417
+ * toolName: "swap",
418
+ * protocol: "li.fi",
419
+ * args: { txHash: "0x..." }
420
+ * });
421
+ *
422
+ * if (result.isError) {
423
+ * console.error("Action failed:", result.error);
424
+ * } else {
425
+ * console.log("Action completed:", result.response);
426
+ * }
427
+ * ```
428
+ */
429
+ awaitAction(chatId: string, descriptor: AwaitableActionDescriptor): Promise<AwaitActionResult>;
430
+ /**
431
+ * Gets the underlying Chat instance for advanced operations.
432
+ *
433
+ * @param chatId - The ID of the chat to retrieve
434
+ * @returns {Chat} The Chat instance
435
+ * @throws {ChatNotFound} If the chat with the specified chatId is not found
436
+ *
437
+ * @example
438
+ * ```typescript
439
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
440
+ *
441
+ * const chat = sdk.getChat(chatId);
442
+ * // Now you can use advanced Chat methods directly
443
+ * const context = await chat.getContext();
444
+ * ```
445
+ */
446
+ getChat(chatId: string): Chat;
447
+ /**
448
+ * Gets all active chat IDs as an array.
449
+ * Alias for the chatIds getter property.
450
+ *
451
+ * @returns {string[]} Array of active chat IDs
452
+ *
453
+ * @example
454
+ * ```typescript
455
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
456
+ *
457
+ * const ids = sdk.getChatIds();
458
+ * console.log("Active chats:", ids);
459
+ * ```
460
+ */
461
+ getChatIds(): string[];
462
+ /**
463
+ * Helper method to extract detailed response metadata from a SendMessageResult.
464
+ * Provides access to incompleteTools, toolErrors, and other response details.
465
+ *
466
+ * @param result - The SendMessageResult to extract metadata from
467
+ * @returns {ResponseMetadata} Extracted response metadata
468
+ *
469
+ * @example
470
+ * ```typescript
471
+ * const sdk = new IllaSDK({ apiKey: 'your-api-key' });
472
+ *
473
+ * const result = await sdk.sendMessage("Hello", { chatId });
474
+ * const metadata = sdk.getResponseMetadata(result);
475
+ *
476
+ * if (metadata.incompleteTools?.length > 0) {
477
+ * console.log("Incomplete tools:", metadata.incompleteTools);
478
+ * }
479
+ * if (metadata.toolErrors?.length > 0) {
480
+ * console.log("Tool errors:", metadata.toolErrors);
481
+ * }
482
+ * ```
483
+ */
484
+ getResponseMetadata(result: SendMessageResult): ResponseMetadata;
485
+ private isSuccessResponse;
274
486
  }
275
487
  /**
276
488
  * Exports the public API of the SDK.
@@ -285,5 +497,6 @@ export { ContextManager } from "./context/index.js";
285
497
  export { AsyncToolChecker } from "./asyncToolChecker/index.js";
286
498
  export { CoreApiProvider } from "./providers/index.js";
287
499
  export { UserContextMissing } from "./chat/errors/index.js";
288
- export type { illaSDKConfig, ChatContextSnapshot, CacheEntryOptions, ICache, IContextManager, SendMessageContext, };
500
+ export type { illaSDKConfig, illaSDKOptions, ChatOptions, ChatContextSnapshot, CacheEntryOptions, ICache, IContextManager, SendMessageContext, SendMessageResult, ResponseMetadata, AsyncCheckerEvents, AsyncToolCheckerCheckParams, AwaitableActionDescriptor, AwaitActionResult, CoreApiProviderConfig, CoreApiProviderRoutes, EventSubscription, HttpClientFactory, PollingConfig, ContextManagerOptions, };
501
+ export type { MessageHistoryType, ToolResultType, UserContext, ModelContext, PersonalityContext, CoreApiChatErrorResponse, CoreApiChatSuccessResponse, PendingToolCallType, ToolIncompletePartType, ToolErrorPartType, } from "@illalabs/interfaces";
289
502
  //# sourceMappingURL=sdk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,WAAW,EACd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,E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