@squidcloud/client 1.0.125 → 1.0.126

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/cjs/index.js CHANGED
@@ -32447,11 +32447,12 @@ class AiAssistantProfileReference {
32447
32447
  * Sends a prompt to the current profile.
32448
32448
  *
32449
32449
  * @param prompt - The prompt.
32450
+ * @param options - The chat options.
32450
32451
  * @returns An observable that emits when a new response token is received. The emitted value is the entire response
32451
32452
  * that has been received so far.
32452
32453
  */
32453
- chat(prompt) {
32454
- return this.client.chat(this.profileId, prompt);
32454
+ chat(prompt, options) {
32455
+ return this.client.chat(this.profileId, prompt, options);
32455
32456
  }
32456
32457
  /**
32457
32458
  * Retrieves a context reference for the current profile. A context reference can be used to add a new context entry
@@ -16,4 +16,6 @@ export interface AiAssistantFileContext {
16
16
  export type AiAssistantContext = AiAssistantTextContext | AiAssistantUrlContext | AiAssistantFileContext;
17
17
  export interface AiAssistantChatOptions {
18
18
  maxTokens?: number;
19
+ chatId?: string;
20
+ disableHistory?: boolean;
19
21
  }
@@ -9,4 +9,5 @@ export type EnvironmentId = 'prod' | 'dev';
9
9
  export declare const allEnvironmentIds: Array<EnvironmentId>;
10
10
  /** A type alias for an integration id. */
11
11
  export type IntegrationId = string;
12
+ export type ChatId = string;
12
13
  export type SquidDeveloperId = string;
@@ -1,4 +1,4 @@
1
- import { AiAssistantContext, IntegrationId, AiModelName, AiAssistantChatOptions } from '@squidcloud/common';
1
+ import { AiAssistantChatOptions, AiAssistantContext, AiModelName, IntegrationId } from '@squidcloud/common';
2
2
  import { Observable } from 'rxjs';
3
3
  import { RpcManager } from './rpc.manager';
4
4
  import { SocketManager } from './socket.manager';
@@ -38,10 +38,11 @@ declare class AiAssistantProfileReference {
38
38
  * Sends a prompt to the current profile.
39
39
  *
40
40
  * @param prompt - The prompt.
41
+ * @param options - The chat options.
41
42
  * @returns An observable that emits when a new response token is received. The emitted value is the entire response
42
43
  * that has been received so far.
43
44
  */
44
- chat(prompt: string): Observable<string>;
45
+ chat(prompt: string, options?: AiAssistantChatOptions): Observable<string>;
45
46
  /**
46
47
  * Retrieves a context reference for the current profile. A context reference can be used to add a new context entry
47
48
  * to the profile, or update/delete an existing entry context.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.125",
3
+ "version": "1.0.126",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",