@applica-software-guru/persona-sdk 0.1.29 → 0.1.30
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 -9
- package/package.json +1 -1
- package/src/agents/types.ts +4 -70
- package/src/index.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -678,13 +678,8 @@ export declare class MissionsApi extends HttpApi {
|
|
|
678
678
|
export declare type MissionStatus = 'draft' | 'planned' | 'active' | 'review' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
679
679
|
|
|
680
680
|
export declare interface ModelConfiguration {
|
|
681
|
-
/**
|
|
682
|
-
|
|
683
|
-
* names (e.g. "gpt-5", "accounts/fireworks/models/x", "ollama") are still
|
|
684
|
-
* accepted; the provider is derived server-side. The `ModelName` union keeps
|
|
685
|
-
* autocomplete for known models while `string` allows any litellm identifier.
|
|
686
|
-
*/
|
|
687
|
-
modelName?: ModelName | (string & {});
|
|
681
|
+
/** litellm-style "<provider>/<model>" string (e.g. "fireworks/accounts/fireworks/models/minimax-m3"). Use the known-models API for the current list. */
|
|
682
|
+
modelName?: string;
|
|
688
683
|
temperature?: number;
|
|
689
684
|
reasoningEffort?: ReasoningEffort;
|
|
690
685
|
/** Maximum number of output tokens to generate. Undefined = provider default. */
|
|
@@ -693,6 +688,8 @@ export declare interface ModelConfiguration {
|
|
|
693
688
|
apiKey?: string;
|
|
694
689
|
/** Override the per-provider default base URL when set. */
|
|
695
690
|
baseUrl?: string;
|
|
691
|
+
/** Passed verbatim as extra_body to the underlying LLM request (e.g. { service_tier: "priority" }). */
|
|
692
|
+
extraBody?: Record<string, unknown>;
|
|
696
693
|
/** @deprecated use `baseUrl`. Kept for backward compatibility. */
|
|
697
694
|
url?: string;
|
|
698
695
|
/** @deprecated use litellm `modelName` (e.g. "ollama/llama3.1"). */
|
|
@@ -705,8 +702,6 @@ export declare interface ModelConfiguration {
|
|
|
705
702
|
openrouterModelName?: string;
|
|
706
703
|
}
|
|
707
704
|
|
|
708
|
-
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' | 'openrouter';
|
|
709
|
-
|
|
710
705
|
export declare type ModelProvider = 'google' | 'openai' | 'grok' | 'fireworks' | 'together' | 'ollama' | 'openai_compatible' | 'openrouter';
|
|
711
706
|
|
|
712
707
|
export declare interface NetworkConfiguration {
|
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.30",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite",
|
package/src/agents/types.ts
CHANGED
|
@@ -4,69 +4,6 @@ export type KnowledgeType = 'multi_hop' | 'simple';
|
|
|
4
4
|
|
|
5
5
|
export type LanguageCode = 'en-US' | 'it-IT' | 'es-ES' | 'fr-FR' | 'de-DE' | 'pt-BR';
|
|
6
6
|
|
|
7
|
-
export type ModelName =
|
|
8
|
-
| 'gemini-3.5-flash'
|
|
9
|
-
| 'gemini-3-pro'
|
|
10
|
-
| 'gemini-3-flash-preview'
|
|
11
|
-
| 'gemini-3.1-pro-preview'
|
|
12
|
-
| 'gemini-3.1-flash-lite'
|
|
13
|
-
| 'gemini-2.5-pro'
|
|
14
|
-
| 'gemini-2.5-flash'
|
|
15
|
-
| 'gemini-2.5-flash-lite'
|
|
16
|
-
| 'gemini-2.0-flash'
|
|
17
|
-
| 'gemini-1.5-flash'
|
|
18
|
-
| 'gemini-1.5-pro'
|
|
19
|
-
| 'gemini-2.5-pro-exp-03-25'
|
|
20
|
-
| 'gemini-2.0-flash-001'
|
|
21
|
-
| 'gemini-2.0-flash-lite'
|
|
22
|
-
| 'gemini-2.0-flash-lite-001'
|
|
23
|
-
| 'gemini-1.5-flash-latest'
|
|
24
|
-
| 'gemini-1.5-flash-001'
|
|
25
|
-
| 'gemini-1.5-flash-002'
|
|
26
|
-
| 'gemini-1.5-pro-latest'
|
|
27
|
-
| 'gemini-1.5-pro-001'
|
|
28
|
-
| 'gemini-1.5-pro-002'
|
|
29
|
-
| 'gpt-5.5'
|
|
30
|
-
| 'gpt-5.4'
|
|
31
|
-
| 'gpt-5.3'
|
|
32
|
-
| 'gpt-5.2'
|
|
33
|
-
| 'gpt-5'
|
|
34
|
-
| 'gpt-5-mini'
|
|
35
|
-
| 'gpt-5-nano'
|
|
36
|
-
| 'gpt-4.1'
|
|
37
|
-
| 'gpt-4.1-mini'
|
|
38
|
-
| 'gpt-4.1-nano'
|
|
39
|
-
| 'gpt-4o'
|
|
40
|
-
| 'gpt-4o-mini'
|
|
41
|
-
| 'gpt-4.5'
|
|
42
|
-
| 'o1'
|
|
43
|
-
| 'o1-mini'
|
|
44
|
-
| 'o3-mini'
|
|
45
|
-
| 'o4-mini'
|
|
46
|
-
| 'o4-mini-high'
|
|
47
|
-
| 'gpt-3.5-turbo'
|
|
48
|
-
| 'gpt-3.5-turbo-16k'
|
|
49
|
-
| 'accounts/fireworks/models/minimax-m2p7'
|
|
50
|
-
| 'accounts/fireworks/models/minimax-m2p5'
|
|
51
|
-
| 'accounts/fireworks/models/deepseek-v3p2'
|
|
52
|
-
| 'accounts/fireworks/models/kimi-k2p5'
|
|
53
|
-
| 'accounts/fireworks/models/glm-5'
|
|
54
|
-
| 'accounts/fireworks/models/glm-5p1'
|
|
55
|
-
| 'accounts/fireworks/models/deepseek-v4-pro'
|
|
56
|
-
| 'accounts/fireworks/models/qwen3p6-plus'
|
|
57
|
-
| 'grok-4.3'
|
|
58
|
-
| 'grok-4-1-fast-reasoning'
|
|
59
|
-
| 'grok-4-1-fast-non-reasoning'
|
|
60
|
-
| 'grok-code-fast-1'
|
|
61
|
-
| 'grok-4-fast-reasoning'
|
|
62
|
-
| 'grok-4-fast-non-reasoning'
|
|
63
|
-
| 'grok-4-0709'
|
|
64
|
-
| 'grok-3-mini'
|
|
65
|
-
| 'grok-3'
|
|
66
|
-
| 'grok-2-vision-1212'
|
|
67
|
-
| 'ollama'
|
|
68
|
-
| 'openai-compatible'
|
|
69
|
-
| 'openrouter';
|
|
70
7
|
|
|
71
8
|
export type SynthesizerName = 'gcloud' | 'elevenlabs' | 'gtts' | 'openai';
|
|
72
9
|
|
|
@@ -100,13 +37,8 @@ export interface Variable {
|
|
|
100
37
|
}
|
|
101
38
|
|
|
102
39
|
export interface ModelConfiguration {
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
* names (e.g. "gpt-5", "accounts/fireworks/models/x", "ollama") are still
|
|
106
|
-
* accepted; the provider is derived server-side. The `ModelName` union keeps
|
|
107
|
-
* autocomplete for known models while `string` allows any litellm identifier.
|
|
108
|
-
*/
|
|
109
|
-
modelName?: ModelName | (string & {});
|
|
40
|
+
/** litellm-style "<provider>/<model>" string (e.g. "fireworks/accounts/fireworks/models/minimax-m3"). Use the known-models API for the current list. */
|
|
41
|
+
modelName?: string;
|
|
110
42
|
temperature?: number;
|
|
111
43
|
reasoningEffort?: ReasoningEffort;
|
|
112
44
|
/** Maximum number of output tokens to generate. Undefined = provider default. */
|
|
@@ -115,6 +47,8 @@ export interface ModelConfiguration {
|
|
|
115
47
|
apiKey?: string;
|
|
116
48
|
/** Override the per-provider default base URL when set. */
|
|
117
49
|
baseUrl?: string;
|
|
50
|
+
/** Passed verbatim as extra_body to the underlying LLM request (e.g. { service_tier: "priority" }). */
|
|
51
|
+
extraBody?: Record<string, unknown>;
|
|
118
52
|
/** @deprecated use `baseUrl`. Kept for backward compatibility. */
|
|
119
53
|
url?: string;
|
|
120
54
|
/** @deprecated use litellm `modelName` (e.g. "ollama/llama3.1"). */
|