@applica-software-guru/persona-sdk 0.1.14 → 0.1.15
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/index.d.ts +20 -2
- package/package.json +1 -1
- package/src/agents/types.ts +28 -1
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare interface Agent {
|
|
|
29
29
|
features?: Feature[];
|
|
30
30
|
toolkit?: ToolkitConfiguration;
|
|
31
31
|
shortTermMemory?: StmConfiguration;
|
|
32
|
+
contextManagement?: ContextManagementConfiguration;
|
|
32
33
|
responseSchema?: Record<string, unknown>;
|
|
33
34
|
verboseErrors?: boolean;
|
|
34
35
|
}
|
|
@@ -61,6 +62,7 @@ export declare interface AgentCreateRequest {
|
|
|
61
62
|
features?: Feature[];
|
|
62
63
|
toolkit?: ToolkitConfiguration;
|
|
63
64
|
shortTermMemory?: StmConfiguration;
|
|
65
|
+
contextManagement?: ContextManagementConfiguration;
|
|
64
66
|
responseSchema?: Record<string, unknown>;
|
|
65
67
|
verboseErrors?: boolean;
|
|
66
68
|
}
|
|
@@ -246,6 +248,19 @@ export declare interface ContentValue {
|
|
|
246
248
|
content?: ContentItem[];
|
|
247
249
|
}
|
|
248
250
|
|
|
251
|
+
declare interface ContextManagementConfiguration {
|
|
252
|
+
enabled?: boolean;
|
|
253
|
+
maxContextTokens?: number;
|
|
254
|
+
maskingThreshold?: number;
|
|
255
|
+
summarizationThreshold?: number;
|
|
256
|
+
keepLastNObservations?: number;
|
|
257
|
+
keepLastNIterations?: number;
|
|
258
|
+
minGrowthToRecompact?: number;
|
|
259
|
+
truncationEnabled?: boolean;
|
|
260
|
+
maxObservationTokens?: number;
|
|
261
|
+
compactionModel?: ModelConfiguration;
|
|
262
|
+
}
|
|
263
|
+
|
|
249
264
|
export declare interface CreateCustomerRequest {
|
|
250
265
|
owner?: string;
|
|
251
266
|
name?: string;
|
|
@@ -651,7 +666,7 @@ export declare interface ModelConfiguration {
|
|
|
651
666
|
openaiCompatibleApiKey?: string;
|
|
652
667
|
}
|
|
653
668
|
|
|
654
|
-
export declare type ModelName = 'gemini-3-pro' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.0-flash' | 'gemini-1.5-flash' | 'gemini-1.5-pro' | 'gemini-2.5-pro-exp-03-25' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-lite-001' | 'gemini-1.5-flash-latest' | 'gemini-1.5-flash-001' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro-latest' | 'gemini-1.5-pro-001' | 'gemini-1.5-pro-002' | 'gpt-5.2' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.5' | 'o1' | 'o1-mini' | 'o3-mini' | 'o4-mini' | 'o4-mini-high' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'accounts/fireworks/models/minimax-m2p5' | 'accounts/fireworks/models/deepseek-v3p2' | 'accounts/fireworks/models/kimi-k2p5' | 'accounts/fireworks/models/glm-5' | 'grok-4-1-fast-reasoning' | 'grok-4-1-fast-non-reasoning' | 'grok-code-fast-1' | 'grok-4-fast-reasoning' | 'grok-4-fast-non-reasoning' | 'grok-4-0709' | 'grok-3-mini' | 'grok-3' | 'grok-2-vision-1212' | 'ollama' | 'openai-compatible';
|
|
669
|
+
export declare type ModelName = 'gemini-3-pro' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-2.5-pro' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.0-flash' | 'gemini-1.5-flash' | 'gemini-1.5-pro' | 'gemini-2.5-pro-exp-03-25' | 'gemini-2.0-flash-001' | 'gemini-2.0-flash-lite' | 'gemini-2.0-flash-lite-001' | 'gemini-1.5-flash-latest' | 'gemini-1.5-flash-001' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro-latest' | 'gemini-1.5-pro-001' | 'gemini-1.5-pro-002' | 'gpt-5.5' | 'gpt-5.4' | 'gpt-5.3' | 'gpt-5.2' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.5' | 'o1' | 'o1-mini' | 'o3-mini' | 'o4-mini' | 'o4-mini-high' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'accounts/fireworks/models/minimax-m2p7' | 'accounts/fireworks/models/minimax-m2p5' | 'accounts/fireworks/models/deepseek-v3p2' | 'accounts/fireworks/models/kimi-k2p5' | 'accounts/fireworks/models/glm-5' | 'accounts/fireworks/models/glm-5.1' | 'accounts/fireworks/models/qwen3p6-plus' | 'grok-4-1-fast-reasoning' | 'grok-4-1-fast-non-reasoning' | 'grok-code-fast-1' | 'grok-4-fast-reasoning' | 'grok-4-fast-non-reasoning' | 'grok-4-0709' | 'grok-3-mini' | 'grok-3' | 'grok-2-vision-1212' | 'ollama' | 'openai-compatible';
|
|
655
670
|
|
|
656
671
|
export declare type ModelProvider = 'google' | 'openai' | 'grok' | 'fireworks' | 'ollama' | 'openai_compatible';
|
|
657
672
|
|
|
@@ -979,9 +994,12 @@ export declare interface StmConfiguration {
|
|
|
979
994
|
includeToolCalls?: boolean;
|
|
980
995
|
model?: ModelConfiguration;
|
|
981
996
|
maxNumberOfWords?: number;
|
|
997
|
+
keepLastNObservations?: number;
|
|
998
|
+
maskingThreshold?: number;
|
|
999
|
+
maxContextTokens?: number;
|
|
982
1000
|
}
|
|
983
1001
|
|
|
984
|
-
export declare type StmType = 'simple' | 'summary';
|
|
1002
|
+
export declare type StmType = 'simple' | 'summary' | 'compact';
|
|
985
1003
|
|
|
986
1004
|
export declare interface Subscription {
|
|
987
1005
|
id?: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@applica-software-guru/persona-sdk",
|
|
3
3
|
"description": "Official TypeScript SDK for the Persona API — manage agents, sessions, projects, knowledge bases, workflows, triggers and more.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.15",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite",
|
package/src/agents/types.ts
CHANGED
|
@@ -6,6 +6,9 @@ export type LanguageCode = 'en-US' | 'it-IT' | 'es-ES' | 'fr-FR' | 'de-DE' | 'pt
|
|
|
6
6
|
|
|
7
7
|
export type ModelName =
|
|
8
8
|
| 'gemini-3-pro'
|
|
9
|
+
| 'gemini-3-flash-preview'
|
|
10
|
+
| 'gemini-3.1-pro-preview'
|
|
11
|
+
| 'gemini-3.1-flash-lite-preview'
|
|
9
12
|
| 'gemini-2.5-pro'
|
|
10
13
|
| 'gemini-2.5-flash'
|
|
11
14
|
| 'gemini-2.5-flash-lite'
|
|
@@ -22,6 +25,9 @@ export type ModelName =
|
|
|
22
25
|
| 'gemini-1.5-pro-latest'
|
|
23
26
|
| 'gemini-1.5-pro-001'
|
|
24
27
|
| 'gemini-1.5-pro-002'
|
|
28
|
+
| 'gpt-5.5'
|
|
29
|
+
| 'gpt-5.4'
|
|
30
|
+
| 'gpt-5.3'
|
|
25
31
|
| 'gpt-5.2'
|
|
26
32
|
| 'gpt-5'
|
|
27
33
|
| 'gpt-5-mini'
|
|
@@ -39,10 +45,13 @@ export type ModelName =
|
|
|
39
45
|
| 'o4-mini-high'
|
|
40
46
|
| 'gpt-3.5-turbo'
|
|
41
47
|
| 'gpt-3.5-turbo-16k'
|
|
48
|
+
| 'accounts/fireworks/models/minimax-m2p7'
|
|
42
49
|
| 'accounts/fireworks/models/minimax-m2p5'
|
|
43
50
|
| 'accounts/fireworks/models/deepseek-v3p2'
|
|
44
51
|
| 'accounts/fireworks/models/kimi-k2p5'
|
|
45
52
|
| 'accounts/fireworks/models/glm-5'
|
|
53
|
+
| 'accounts/fireworks/models/glm-5.1'
|
|
54
|
+
| 'accounts/fireworks/models/qwen3p6-plus'
|
|
46
55
|
| 'grok-4-1-fast-reasoning'
|
|
47
56
|
| 'grok-4-1-fast-non-reasoning'
|
|
48
57
|
| 'grok-code-fast-1'
|
|
@@ -59,7 +68,7 @@ export type SynthesizerName = 'gcloud' | 'elevenlabs' | 'gtts' | 'openai';
|
|
|
59
68
|
|
|
60
69
|
export type TranscriberName = 'gcloud' | 'deepgram' | 'vosk';
|
|
61
70
|
|
|
62
|
-
export type StmType = 'simple' | 'summary';
|
|
71
|
+
export type StmType = 'simple' | 'summary' | 'compact';
|
|
63
72
|
|
|
64
73
|
export type ToolType = 'remote' | 'local';
|
|
65
74
|
|
|
@@ -272,6 +281,22 @@ export interface StmConfiguration {
|
|
|
272
281
|
includeToolCalls?: boolean;
|
|
273
282
|
model?: ModelConfiguration;
|
|
274
283
|
maxNumberOfWords?: number;
|
|
284
|
+
keepLastNObservations?: number;
|
|
285
|
+
maskingThreshold?: number;
|
|
286
|
+
maxContextTokens?: number;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export interface ContextManagementConfiguration {
|
|
290
|
+
enabled?: boolean;
|
|
291
|
+
maxContextTokens?: number;
|
|
292
|
+
maskingThreshold?: number;
|
|
293
|
+
summarizationThreshold?: number;
|
|
294
|
+
keepLastNObservations?: number;
|
|
295
|
+
keepLastNIterations?: number;
|
|
296
|
+
minGrowthToRecompact?: number;
|
|
297
|
+
truncationEnabled?: boolean;
|
|
298
|
+
maxObservationTokens?: number;
|
|
299
|
+
compactionModel?: ModelConfiguration;
|
|
275
300
|
}
|
|
276
301
|
|
|
277
302
|
export interface Revision {
|
|
@@ -310,6 +335,7 @@ export interface Agent {
|
|
|
310
335
|
features?: Feature[];
|
|
311
336
|
toolkit?: ToolkitConfiguration;
|
|
312
337
|
shortTermMemory?: StmConfiguration;
|
|
338
|
+
contextManagement?: ContextManagementConfiguration;
|
|
313
339
|
responseSchema?: Record<string, unknown>;
|
|
314
340
|
verboseErrors?: boolean;
|
|
315
341
|
}
|
|
@@ -339,6 +365,7 @@ export interface AgentCreateRequest {
|
|
|
339
365
|
features?: Feature[];
|
|
340
366
|
toolkit?: ToolkitConfiguration;
|
|
341
367
|
shortTermMemory?: StmConfiguration;
|
|
368
|
+
contextManagement?: ContextManagementConfiguration;
|
|
342
369
|
responseSchema?: Record<string, unknown>;
|
|
343
370
|
verboseErrors?: boolean;
|
|
344
371
|
}
|