@squidcloud/client 1.0.374 → 1.0.375
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 +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +2 -0
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +4 -0
- package/dist/internal-common/src/types/ai-agent.types.d.ts +1 -7
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -459,6 +459,8 @@ export interface BaseAiChatOptions {
|
|
|
459
459
|
memoryOptions?: AiAgentMemoryOptions;
|
|
460
460
|
/** Whether to disable the whole context for the request. Default to false. */
|
|
461
461
|
disableContext?: boolean;
|
|
462
|
+
/** Rewrite prompt for RAG - defaults to false */
|
|
463
|
+
enablePromptRewriteForRag?: boolean;
|
|
462
464
|
/** Whether to include references from the source context in the response. Default to false. */
|
|
463
465
|
includeReference?: boolean;
|
|
464
466
|
/** The format of the response from the AI model. Note that not all models support JSON format. Default to 'text'. */
|
|
@@ -45,3 +45,7 @@ export interface IntegrationInfo<ConfigurationType = Record<string, any> | undef
|
|
|
45
45
|
/** The configuration object for the integration, if any. */
|
|
46
46
|
configuration: ConfigurationType;
|
|
47
47
|
}
|
|
48
|
+
/** Integration IDs used for built-in integrations by Squid. */
|
|
49
|
+
export declare const SQUID_BUILT_IN_INTEGRATION_IDS: readonly [string, string, string];
|
|
50
|
+
/** Returns true if ID is a built-in integration ID in Squid. */
|
|
51
|
+
export declare function isBuiltInIntegrationId(id: unknown): id is (typeof SQUID_BUILT_IN_INTEGRATION_IDS)[number];
|
|
@@ -138,7 +138,7 @@ export declare const METADATA_SERVICE_FUNCTION_NAME = "default:metadata";
|
|
|
138
138
|
* A dictionary model contains either direct prompt-to-answer pairs or prompt-to-function/call-agent instructions.
|
|
139
139
|
* Keys within this dictionary model are treated as case-insensitive by the Squid system.
|
|
140
140
|
*/
|
|
141
|
-
export type AiDictionaryModel = Record<string, string | AiDictionaryFunctionCall
|
|
141
|
+
export type AiDictionaryModel = Record<string, string | AiDictionaryFunctionCall>;
|
|
142
142
|
export interface AiDictionaryFunctionCall {
|
|
143
143
|
type: 'function';
|
|
144
144
|
/** ID (name) of the AI function to call. */
|
|
@@ -146,12 +146,6 @@ export interface AiDictionaryFunctionCall {
|
|
|
146
146
|
/** Args to pass to the AI function. */
|
|
147
147
|
args: Record<string, unknown>;
|
|
148
148
|
}
|
|
149
|
-
export interface AiDictionaryAgentCall {
|
|
150
|
-
type: 'agent';
|
|
151
|
-
id: AiAgentId;
|
|
152
|
-
/** Prompt to send to the connected agent. */
|
|
153
|
-
prompt: string;
|
|
154
|
-
}
|
|
155
149
|
export interface UpdateApplicationAiSettingsWebhookPayload {
|
|
156
150
|
appId: AppId;
|
|
157
151
|
aiSettings: ApplicationAiSettings;
|