@squidcloud/client 1.0.316 → 1.0.318

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.316",
3
+ "version": "1.0.318",
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",
@@ -1,60 +0,0 @@
1
- import { AiFileUrl } from '../public-types/ai-chatbot.public-types';
2
- import { AiAgentId, IntegrationId } from '../public-types/communication.public-types';
3
- import { FunctionName, FunctionNameWithContext } from '../public-types/bundle-data.public-types';
4
- import { IntegrationType } from '../public-types/integration.public-types';
5
- export type AiChatResponseFormat = 'text' | 'json_object';
6
- export interface AiChatOptions {
7
- maxTokens: number;
8
- responseFormat: AiChatResponseFormat;
9
- temperature: number;
10
- topP: number;
11
- instructions: Array<string>;
12
- clientId: string;
13
- fileUrls: Array<AiFileUrl>;
14
- /** Constrains effort on reasoning for reasoning models. o1 models only. */
15
- reasoningEffort?: 'low' | 'medium' | 'high';
16
- /** Current AI profile ID (AI agent ID). */
17
- agentId?: AiAgentId;
18
- /** A unique chat ID for the conversation. */
19
- chatId?: string;
20
- /** Global per-agent context passed to all AI functions. Must be a serializable JSON. */
21
- agentContext?: Record<string, unknown>;
22
- /** List of AI functions available for the chatbot. Overrides the stored list.*/
23
- functions?: Array<FunctionName | FunctionNameWithContext>;
24
- /** List of connected AI agents can be called by the current agent. Overrides the stored list.*/
25
- connectedAgents?: Array<AiConnectedAgentMetadata>;
26
- /** List of connected integrations. Overrides the stored list. */
27
- connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
28
- /** Current budget for nested or recursive AI chat calls per single prompt. */
29
- quotas?: AiChatPromptQuotas;
30
- }
31
- export interface AiConnectedAgentMetadata {
32
- agentId: AiAgentId;
33
- /**
34
- * Description of the connected agent for the parent agent context.
35
- * Works as AI function description.
36
- */
37
- description: string;
38
- }
39
- export interface AiConnectedIntegrationMetadata {
40
- integrationId: IntegrationId;
41
- /** Type of the connected integration. */
42
- integrationType: IntegrationType;
43
- /**
44
- * Description of the connected integration for the parent agent context.
45
- * Works as AI function description.
46
- * If not provided the default one is used.
47
- */
48
- description?: string;
49
- }
50
- /** Quotas for a single AI chat prompt (`ask()` method call). */
51
- export interface AiChatPromptQuotas {
52
- /**
53
- * Maximum depth of AI call recursion allowed.
54
- * Recursion occurs when one AI agent calls another.
55
- * Note that, for simplicity of implementation, this option guarantees only the maximum recursion depth,
56
- * not the total number of nested AI calls.
57
- * Default: 5.
58
- */
59
- maxAiCallStackSize: number;
60
- }