@applica-software-guru/persona-sdk 0.1.30 → 0.1.31
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 +16 -1
- package/package.json +1 -1
- package/src/agents/types.ts +15 -0
- package/src/index.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare interface Agent {
|
|
|
31
31
|
toolkit?: ToolkitConfiguration;
|
|
32
32
|
shortTermMemory?: StmConfiguration;
|
|
33
33
|
contextManagement?: ContextManagementConfiguration;
|
|
34
|
+
attachmentsPreprocessor?: AttachmentsPreprocessorConfiguration;
|
|
34
35
|
responseSchema?: Record<string, unknown>;
|
|
35
36
|
verboseErrors?: boolean;
|
|
36
37
|
}
|
|
@@ -65,6 +66,7 @@ export declare interface AgentCreateRequest {
|
|
|
65
66
|
toolkit?: ToolkitConfiguration;
|
|
66
67
|
shortTermMemory?: StmConfiguration;
|
|
67
68
|
contextManagement?: ContextManagementConfiguration;
|
|
69
|
+
attachmentsPreprocessor?: AttachmentsPreprocessorConfiguration;
|
|
68
70
|
responseSchema?: Record<string, unknown>;
|
|
69
71
|
verboseErrors?: boolean;
|
|
70
72
|
}
|
|
@@ -114,6 +116,19 @@ export declare class ApiKeyAuthenticationProvider implements AuthenticationProvi
|
|
|
114
116
|
getCredentials(): string;
|
|
115
117
|
}
|
|
116
118
|
|
|
119
|
+
export declare interface AttachmentsPreprocessorConfiguration {
|
|
120
|
+
enabled?: boolean;
|
|
121
|
+
imageHandling?: AttachmentsPreprocessorImageHandling;
|
|
122
|
+
standalonePassthrough?: boolean;
|
|
123
|
+
secondaryModel?: ModelConfiguration;
|
|
124
|
+
llmPrompt?: string;
|
|
125
|
+
pdfImageDpi?: number;
|
|
126
|
+
maxPages?: number;
|
|
127
|
+
failOpen?: boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export declare type AttachmentsPreprocessorImageHandling = 'drop' | 'describe' | 'keep';
|
|
131
|
+
|
|
117
132
|
export declare interface AuthenticationProvider {
|
|
118
133
|
applyHeaders(headers: Headers): void;
|
|
119
134
|
getCredentials(): string;
|
|
@@ -250,7 +265,7 @@ export declare interface ContentValue {
|
|
|
250
265
|
content?: ContentItem[];
|
|
251
266
|
}
|
|
252
267
|
|
|
253
|
-
declare interface ContextManagementConfiguration {
|
|
268
|
+
export declare interface ContextManagementConfiguration {
|
|
254
269
|
enabled?: boolean;
|
|
255
270
|
maxContextTokens?: number;
|
|
256
271
|
summarizationThreshold?: number;
|
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.31",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite",
|
package/src/agents/types.ts
CHANGED
|
@@ -61,6 +61,19 @@ export interface ModelConfiguration {
|
|
|
61
61
|
openrouterModelName?: string;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
export type AttachmentsPreprocessorImageHandling = 'drop' | 'describe' | 'keep';
|
|
65
|
+
|
|
66
|
+
export interface AttachmentsPreprocessorConfiguration {
|
|
67
|
+
enabled?: boolean;
|
|
68
|
+
imageHandling?: AttachmentsPreprocessorImageHandling;
|
|
69
|
+
standalonePassthrough?: boolean;
|
|
70
|
+
secondaryModel?: ModelConfiguration;
|
|
71
|
+
llmPrompt?: string;
|
|
72
|
+
pdfImageDpi?: number;
|
|
73
|
+
maxPages?: number;
|
|
74
|
+
failOpen?: boolean;
|
|
75
|
+
}
|
|
76
|
+
|
|
64
77
|
export interface SynthesizerVoice {
|
|
65
78
|
id?: string;
|
|
66
79
|
name?: string;
|
|
@@ -296,6 +309,7 @@ export interface Agent {
|
|
|
296
309
|
toolkit?: ToolkitConfiguration;
|
|
297
310
|
shortTermMemory?: StmConfiguration;
|
|
298
311
|
contextManagement?: ContextManagementConfiguration;
|
|
312
|
+
attachmentsPreprocessor?: AttachmentsPreprocessorConfiguration;
|
|
299
313
|
responseSchema?: Record<string, unknown>;
|
|
300
314
|
verboseErrors?: boolean;
|
|
301
315
|
}
|
|
@@ -327,6 +341,7 @@ export interface AgentCreateRequest {
|
|
|
327
341
|
toolkit?: ToolkitConfiguration;
|
|
328
342
|
shortTermMemory?: StmConfiguration;
|
|
329
343
|
contextManagement?: ContextManagementConfiguration;
|
|
344
|
+
attachmentsPreprocessor?: AttachmentsPreprocessorConfiguration;
|
|
330
345
|
responseSchema?: Record<string, unknown>;
|
|
331
346
|
verboseErrors?: boolean;
|
|
332
347
|
}
|
package/src/index.ts
CHANGED
|
@@ -54,6 +54,9 @@ export type {
|
|
|
54
54
|
ReasoningEffort,
|
|
55
55
|
ModelProvider,
|
|
56
56
|
CollaborationMode,
|
|
57
|
+
ContextManagementConfiguration,
|
|
58
|
+
AttachmentsPreprocessorConfiguration,
|
|
59
|
+
AttachmentsPreprocessorImageHandling,
|
|
57
60
|
} from './agents/types';
|
|
58
61
|
export { SessionsApi } from './sessions/sessions-api';
|
|
59
62
|
export type {
|