@squidcloud/client 1.0.327 → 1.0.328
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.
|
@@ -102,7 +102,7 @@ export interface StableDiffusionCoreOptions extends BaseAiGenerateImageOptions {
|
|
|
102
102
|
}
|
|
103
103
|
/** The possible sources for the LLM provider API key. */
|
|
104
104
|
export type ApiKeySource = 'user' | 'system';
|
|
105
|
-
export type
|
|
105
|
+
export type AiAgentResponseFormat = 'text' | 'json_object';
|
|
106
106
|
export type AiFileUrlType = 'image';
|
|
107
107
|
export interface AiFileUrl {
|
|
108
108
|
type: AiFileUrlType;
|
|
@@ -154,7 +154,7 @@ interface BaseAiAgentChatOptions {
|
|
|
154
154
|
/** Whether to include references from the source context in the response. Default to false. */
|
|
155
155
|
includeReference?: boolean;
|
|
156
156
|
/** The format of the response from the AI model. Note that not all models support JSON format. Default to 'text'. */
|
|
157
|
-
responseFormat?:
|
|
157
|
+
responseFormat?: AiAgentResponseFormat;
|
|
158
158
|
/** Whether to response in a "smooth typing" way, beneficial when the chat result is displayed in a UI. Default to true. */
|
|
159
159
|
smoothTyping?: boolean;
|
|
160
160
|
/** Global context passed to the agent and all AI functions of the agent. */
|
|
@@ -192,9 +192,10 @@ export interface OpenAiChatOptions extends BaseAiAgentChatOptions {
|
|
|
192
192
|
model?: OpenAiChatModelName;
|
|
193
193
|
fileUrls?: Array<AiFileUrl>;
|
|
194
194
|
}
|
|
195
|
+
export type OpenAiReasoningEffort = 'low' | 'medium' | 'high';
|
|
195
196
|
export interface OpenAiReasoningChatOptions extends OpenAiChatOptions {
|
|
196
197
|
model?: OpenAiReasoningChatModelName;
|
|
197
|
-
reasoningEffort?:
|
|
198
|
+
reasoningEffort?: OpenAiReasoningEffort;
|
|
198
199
|
}
|
|
199
200
|
export interface AnthropicChatOptions extends BaseAiAgentChatOptions {
|
|
200
201
|
model?: AnthropicChatModelName;
|
|
@@ -261,8 +262,6 @@ export interface AiSearchRequest {
|
|
|
261
262
|
options: AiSearchOptions;
|
|
262
263
|
agentId: AiAgentId;
|
|
263
264
|
}
|
|
264
|
-
export type AiMutationType = 'insert' | 'update' | 'delete' | 'append' | 'feedback';
|
|
265
|
-
export type AiResourceType = 'instruction' | 'profile' | 'context' | 'contexts';
|
|
266
265
|
export interface AiSearchResponse {
|
|
267
266
|
chunks: Array<AiSearchResultChunk>;
|
|
268
267
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OpenAiChatModelName, OpenAiReasoningEffort, AiAgentResponseFormat } from './ai-agent.public-types';
|
|
2
2
|
import { FunctionName } from './bundle-data.public-types';
|
|
3
3
|
export type AssistantToolType = 'code_interpreter' | 'file_search';
|
|
4
4
|
/** The options for the AI assistant. */
|
|
@@ -8,5 +8,8 @@ export interface QueryAssistantOptions {
|
|
|
8
8
|
/** Extra context per AI function.*/
|
|
9
9
|
functionContexts?: Record<FunctionName, Record<string, unknown>>;
|
|
10
10
|
/** The format of the response from the AI model. Defaults to 'text' */
|
|
11
|
-
responseFormat?:
|
|
11
|
+
responseFormat?: AiAgentResponseFormat;
|
|
12
|
+
model?: OpenAiChatModelName;
|
|
13
|
+
reasoningEffort?: OpenAiReasoningEffort;
|
|
14
|
+
instructions?: string;
|
|
12
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.328";
|