@squidcloud/client 1.0.229 → 1.0.230

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.
@@ -1,3 +1,4 @@
1
+ import { FunctionName } from './bundle-data.public-types';
1
2
  /** The supported OpenAI models */
2
3
  export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "gpt-4-turbo-preview", "gpt-4o", "gpt-4-turbo"];
3
4
  export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-pro"];
@@ -65,6 +66,8 @@ export interface AiChatbotChatOptions {
65
66
  overrideModel?: AiChatModelName;
66
67
  /** File URLs (only images supported at the moment) */
67
68
  fileUrls?: Array<AiFileUrl>;
69
+ /** Functions to expose to the AI */
70
+ functions?: Array<FunctionName>;
68
71
  }
69
72
  export type AiChatbotMutationType = 'insert' | 'update' | 'delete';
70
73
  export type AiChatbotResourceType = 'instruction' | 'context' | 'profile';
@@ -1,4 +1,5 @@
1
1
  import { AiFileUrl } from '../public-types/ai-chatbot.public-types';
2
+ import { FunctionName } from '../public-types/bundle-data.public-types';
2
3
  export type AiChatResponseFormat = 'text' | 'json_object';
3
4
  export interface AiChatOptions {
4
5
  maxTokens: number;
@@ -7,4 +8,5 @@ export interface AiChatOptions {
7
8
  instructions: string;
8
9
  clientId: string;
9
10
  fileUrls: Array<AiFileUrl>;
11
+ functions?: Array<FunctionName>;
10
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.229",
3
+ "version": "1.0.230",
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",