@squidcloud/client 1.0.297 → 1.0.299
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/internal-common/src/public-types/ai-chatbot.public-types.d.ts +5 -5
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +1 -0
- package/dist/typescript-client/src/ai-agent-client.d.ts +7 -7
- package/dist/typescript-client/src/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FunctionName, FunctionNameWithContext } from './bundle-data.public-types';
|
|
2
2
|
import { IntegrationId } from './communication.public-types';
|
|
3
3
|
/** The supported OpenAI models */
|
|
4
|
-
export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-
|
|
5
|
-
export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-
|
|
6
|
-
export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-
|
|
4
|
+
export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1-preview", "o1-mini"];
|
|
5
|
+
export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-1.5-pro", "gemini-1.5-flash"];
|
|
6
|
+
export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-5-haiku-latest", "claude-3-5-sonnet-latest"];
|
|
7
7
|
/** The supported AI model names. */
|
|
8
|
-
export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-
|
|
8
|
+
export declare const AI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1-preview", "o1-mini", "claude-3-5-haiku-latest", "claude-3-5-sonnet-latest", "gemini-1.5-pro", "gemini-1.5-flash"];
|
|
9
9
|
export declare const OPENAI_EMBEDDINGS_MODEL_NAMES: readonly ["text-embedding-3-small", "text-embedding-3-large", "text-embedding-ada-002"];
|
|
10
10
|
export declare const AI_EMBEDDINGS_MODEL_NAMES: readonly ["text-embedding-3-small", "text-embedding-3-large", "text-embedding-ada-002"];
|
|
11
11
|
/** The supported AI image generation model names. */
|
|
@@ -180,7 +180,7 @@ export interface AiSearchRequest {
|
|
|
180
180
|
profileId: string;
|
|
181
181
|
integrationId: IntegrationId;
|
|
182
182
|
}
|
|
183
|
-
export type AiChatbotMutationType = 'insert' | 'update' | 'delete' | 'append';
|
|
183
|
+
export type AiChatbotMutationType = 'insert' | 'update' | 'delete' | 'append' | 'feedback';
|
|
184
184
|
export type AiChatbotResourceType = 'instruction' | 'context' | 'profile';
|
|
185
185
|
export type AiChatbotContextType = 'text' | 'url' | 'file';
|
|
186
186
|
export interface AiChatbotContextBase {
|
|
@@ -8,6 +8,7 @@ export type AiChatbotProfileMetadata = {
|
|
|
8
8
|
isPublic: boolean;
|
|
9
9
|
strictContext?: boolean;
|
|
10
10
|
instructions: Record<string, string>;
|
|
11
|
+
feedbackInstructions?: string;
|
|
11
12
|
/** 'text-embedding-ada-002' if undefined. */
|
|
12
13
|
embeddingModelName?: AiEmbeddingsModelName;
|
|
13
14
|
/** 'pinecone' if undefined. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiChatbotChatOptions, AiChatbotContext, AiChatModelName, AiProfileId, AiSearchOptions, AiSearchResponse, AiTranscribeAndAskResponse, AiTranscribeAndChatResponse } from './public-types';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BlobAndFilename } from './types';
|
|
4
4
|
export interface TranscribeAndChatResponse {
|
|
@@ -120,9 +120,8 @@ export declare class AiAgentReference {
|
|
|
120
120
|
* Adds a new profile to the chatbot. This will result in an error if a profile already exists with the same id.
|
|
121
121
|
*
|
|
122
122
|
* @param data An object containing options for creating the profile.
|
|
123
|
-
* @param data.modelName - The name of the AI model (`gpt-3.5, `gpt-4`, `claude-3-
|
|
124
|
-
* `claude-3-
|
|
125
|
-
* `gemini-1.5-pro` `gemini-1.5-flash`).
|
|
123
|
+
* @param data.modelName - The name of the AI model (`gpt-3.5, `gpt-4`, `claude-3-5-sonnet-latest` or
|
|
124
|
+
* `claude-3-5-haiku-latest`, `gemini-1.5-pro` `gemini-1.5-flash`).
|
|
126
125
|
* @param data.isPublic - Whether the chat functionality of the profile can be accessed without security rules.
|
|
127
126
|
* @returns A promise that resolves when the profile is successfully created.
|
|
128
127
|
*/
|
|
@@ -132,9 +131,8 @@ export declare class AiAgentReference {
|
|
|
132
131
|
* current profile id.
|
|
133
132
|
*
|
|
134
133
|
* @param data An object containing options for updating the profile.
|
|
135
|
-
* @param data.modelName - The name of the OpenAI model (`gpt-3.5, `gpt-4`, `claude-3-
|
|
136
|
-
* `claude-3-
|
|
137
|
-
* `gemini-1.5-pro` `gemini-1.5-flash`).
|
|
134
|
+
* @param data.modelName - The name of the OpenAI model (`gpt-3.5, `gpt-4`, `claude-3-5-sonnet-latest` or
|
|
135
|
+
* `claude-3-5-haiku-latest`, `gemini-1.5-pro` `gemini-1.5-flash`).
|
|
138
136
|
* @param data.isPublic - Whether the chat functionality of the profile can be accessed without security rules.
|
|
139
137
|
* @returns A promise that resolves when the profile is successfully updated.
|
|
140
138
|
*/
|
|
@@ -146,6 +144,8 @@ export declare class AiAgentReference {
|
|
|
146
144
|
* @returns A promise that resolves when the profile is successfully deleted.
|
|
147
145
|
*/
|
|
148
146
|
delete(): Promise<void>;
|
|
147
|
+
feedback(feedback: string): Promise<void>;
|
|
148
|
+
resetFeedback(): Promise<void>;
|
|
149
149
|
}
|
|
150
150
|
export declare class AiAgentContextReference {
|
|
151
151
|
private readonly client;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.299";
|