@squidcloud/client 1.0.366 → 1.0.368

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.
@@ -405,6 +405,33 @@ export interface AiChatPromptQuotas {
405
405
  */
406
406
  maxAiCallStackSize: number;
407
407
  }
408
+ /**
409
+ * Options for AI agent research, allowing the agent to perform research before invoking connected agents, connected
410
+ * integrations, or functions.
411
+ */
412
+ export interface AiAgentResearchOptions {
413
+ /** Whether to enable research for the agent. If false, no research will be performed. */
414
+ enabled: boolean;
415
+ /** The model to use for the research - defaults Claude Opus 4. */
416
+ researchModel?: AiChatModelName;
417
+ /** In case the model supports reasoning, this will control the level of effort - defaults to `high`. */
418
+ reasoningEffort?: AiReasoningEffort;
419
+ }
420
+ /**
421
+ * Options for AI agent memory management.
422
+ * @category AI
423
+ */
424
+ export interface AiAgentMemoryOptions {
425
+ /**
426
+ * The memory mode:
427
+ * - 'none': No memory is used, the agent does not remember past interactions.
428
+ * - 'read-only': The agent can read from memory but cannot write to it.
429
+ * - 'read-write': The agent can both read from and write to memory.
430
+ */
431
+ memoryMode: 'none' | 'read-only' | 'read-write';
432
+ /** A unique id for managing the memory */
433
+ memoryId?: string;
434
+ }
408
435
  /**
409
436
  * The base AI agent chat options, should not be used directly.
410
437
  * @category AI
@@ -412,14 +439,20 @@ export interface AiChatPromptQuotas {
412
439
  export interface BaseAiChatOptions {
413
440
  /** The maximum number of tokens to use when making the request to the AI model. Defaults to the max tokens the model can accept. */
414
441
  maxTokens?: number;
415
- /** A unique chat ID, if the same chat ID is used again and history is not disabled, it will continue the conversation. */
442
+ /**
443
+ * A unique chat ID, if the same chat ID is used again and history is not disabled, it will continue the conversation.
444
+ * @deprecated use 'memoryOptions` instead.
445
+ */
416
446
  chatId?: string;
417
447
  /**
418
448
  * Disables history for the agent, so each question is answered as
419
449
  * if it were the first question in the conversation.
420
450
  * Default to false.
451
+ * @deprecated use 'memoryOptions` instead.
421
452
  */
422
453
  disableHistory?: boolean;
454
+ /** The context ID to use for the request. If not provided, the agent's default context will be used. */
455
+ memoryOptions?: AiAgentMemoryOptions;
423
456
  /** Whether to disable the whole context for the request. Default to false. */
424
457
  disableContext?: boolean;
425
458
  /** Whether to include references from the source context in the response. Default to false. */
@@ -459,6 +492,11 @@ export interface BaseAiChatOptions {
459
492
  model?: AiChatModelName;
460
493
  /** Which provider's reranker to use for reranking the context. Defaults to 'cohere'. */
461
494
  rerankProvider?: AiRerankProvider;
495
+ /**
496
+ * Options for AI agent research, allowing the agent to perform research before invoking connected agents, connected
497
+ * integrations, or functions.
498
+ */
499
+ researchOptions?: AiAgentResearchOptions;
462
500
  }
463
501
  /**
464
502
  * Chat options specific to Gemini models, extending base options.
@@ -572,6 +610,8 @@ export interface AiObserveStatusOptions {
572
610
  * @category AI
573
611
  */
574
612
  export interface AiStatusMessage {
613
+ /** ID of the status update message. */
614
+ messageId: string;
575
615
  /** The ID of the agent generating the status message. */
576
616
  agentId: string;
577
617
  /** An optional chat ID associated with the status message. */
@@ -2,4 +2,4 @@
2
2
  * The current version of the SquidCloud client package.
3
3
  * @category Platform
4
4
  */
5
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.366";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.368";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.366",
3
+ "version": "1.0.368",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",