@squidcloud/backend 1.0.408 → 1.0.410
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,8 +1,7 @@
|
|
|
1
|
-
import { AiConnectedIntegrationMetadata, AllAiAgentChatOptions } from '@squidcloud/client';
|
|
1
|
+
import { AiConnectedIntegrationMetadata, AiSessionContext, AllAiAgentChatOptions } from '@squidcloud/client';
|
|
2
2
|
import { AiFunctionId } from '@squidcloud/client';
|
|
3
3
|
import { AiAgentId, IntegrationId } from '@squidcloud/client';
|
|
4
4
|
import { IntegrationType } from '@squidcloud/client';
|
|
5
|
-
import { JobId } from '@squidcloud/client';
|
|
6
5
|
/**
|
|
7
6
|
* Context object passed as a second parameter to every AI function call,
|
|
8
7
|
* providing both agent-specific and function-specific context.
|
|
@@ -23,7 +22,7 @@ export interface AiFunctionCallContext<FunctionContextType = unknown, AgentConte
|
|
|
23
22
|
*/
|
|
24
23
|
functionContext: FunctionContextType;
|
|
25
24
|
/** The session associated with this AI function call. */
|
|
26
|
-
|
|
25
|
+
sessionContext: AiSessionContext;
|
|
27
26
|
}
|
|
28
27
|
/** AiFunctionContext for the connected integration function. Contains predefined integration data. */
|
|
29
28
|
export interface AiFunctionCallContextWithIntegration<AiConnectedIntegrationOptionsType = unknown, FunctionContextType = unknown, AgentContextType = unknown> extends AiFunctionCallContext<FunctionContextType, AgentContextType>, AiConnectedIntegrationMetadata<AiConnectedIntegrationOptionsType> {
|
|
@@ -70,18 +69,3 @@ export interface AiFunctionOverrideDetails {
|
|
|
70
69
|
/** Set of parameters to fill with a predefined values. */
|
|
71
70
|
predefinedParameters: Record<string, unknown>;
|
|
72
71
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Optional settings for an AI session, allowing partial specification of identifiers.
|
|
75
|
-
*/
|
|
76
|
-
export type AiSessionOptions = {
|
|
77
|
-
/** A unique identifier for tracing the session, if provided. */
|
|
78
|
-
traceId: string | undefined;
|
|
79
|
-
/** The ID of the client initiating the session, if specified. */
|
|
80
|
-
clientId: string;
|
|
81
|
-
/** The ID of the AI agent involved in the session, if specified. */
|
|
82
|
-
agentId: string | undefined;
|
|
83
|
-
/** The ID of the AI agent involved in starting the session, if specified. */
|
|
84
|
-
rootAgentId: string | undefined;
|
|
85
|
-
/** The ID of the job associated with the session, if specified. */
|
|
86
|
-
jobId: JobId;
|
|
87
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squidcloud/backend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.410",
|
|
4
4
|
"description": "Squid Cloud's backend SDK",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typedoc-plugin-markdown": "^4.8.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@squidcloud/client": "^1.0.
|
|
37
|
+
"@squidcloud/client": "^1.0.410"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=20.0.0"
|