@applica-software-guru/persona-sdk 0.1.24 → 0.1.26
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 +4 -2
- package/package.json +1 -1
- package/src/agents/types.ts +1 -0
- package/src/sessions/types.ts +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -400,7 +400,7 @@ export declare interface FunctionCall {
|
|
|
400
400
|
|
|
401
401
|
export declare interface FunctionResponse {
|
|
402
402
|
name?: string;
|
|
403
|
-
result?:
|
|
403
|
+
result?: ToolResultItem | ToolResultItem[] | null;
|
|
404
404
|
functionCallId?: string;
|
|
405
405
|
}
|
|
406
406
|
|
|
@@ -668,7 +668,7 @@ export declare interface ModelConfiguration {
|
|
|
668
668
|
openaiCompatibleApiKey?: string;
|
|
669
669
|
}
|
|
670
670
|
|
|
671
|
-
export declare type ModelName = 'gemini-3.5-flash' | 'gemini-3-pro' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-lite' | '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-5p1' | 'accounts/fireworks/models/deepseek-v4-pro' | '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';
|
|
671
|
+
export declare type ModelName = 'gemini-3.5-flash' | 'gemini-3-pro' | 'gemini-3-flash-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-lite' | '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-5p1' | 'accounts/fireworks/models/deepseek-v4-pro' | 'accounts/fireworks/models/qwen3p6-plus' | 'grok-4.3' | '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';
|
|
672
672
|
|
|
673
673
|
export declare type ModelProvider = 'google' | 'openai' | 'grok' | 'fireworks' | 'ollama' | 'openai_compatible';
|
|
674
674
|
|
|
@@ -1092,6 +1092,8 @@ export declare interface ToolRemoteConfig {
|
|
|
1092
1092
|
timeout?: number;
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
|
+
declare type ToolResultItem = string | SessionFile | Image_2 | Record<string, unknown>;
|
|
1096
|
+
|
|
1095
1097
|
export declare type ToolType = 'remote' | 'local';
|
|
1096
1098
|
|
|
1097
1099
|
export declare interface TranscriberConfiguration {
|
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.26",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite",
|
package/src/agents/types.ts
CHANGED
|
@@ -54,6 +54,7 @@ export type ModelName =
|
|
|
54
54
|
| 'accounts/fireworks/models/glm-5p1'
|
|
55
55
|
| 'accounts/fireworks/models/deepseek-v4-pro'
|
|
56
56
|
| 'accounts/fireworks/models/qwen3p6-plus'
|
|
57
|
+
| 'grok-4.3'
|
|
57
58
|
| 'grok-4-1-fast-reasoning'
|
|
58
59
|
| 'grok-4-1-fast-non-reasoning'
|
|
59
60
|
| 'grok-code-fast-1'
|
package/src/sessions/types.ts
CHANGED
|
@@ -16,9 +16,11 @@ export interface FunctionCall {
|
|
|
16
16
|
id?: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export type ToolResultItem = string | SessionFile | Image | Record<string, unknown>;
|
|
20
|
+
|
|
19
21
|
export interface FunctionResponse {
|
|
20
22
|
name?: string;
|
|
21
|
-
result?:
|
|
23
|
+
result?: ToolResultItem | ToolResultItem[] | null;
|
|
22
24
|
functionCallId?: string;
|
|
23
25
|
}
|
|
24
26
|
|