@applica-software-guru/persona-sdk 0.1.112 → 0.1.113
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 +18 -0
- package/package.json +1 -1
- package/src/agents/types.ts +18 -0
- package/src/index.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare interface Agent {
|
|
|
32
32
|
features?: Feature[];
|
|
33
33
|
toolkit?: ToolkitConfiguration;
|
|
34
34
|
compaction?: CompactionConfiguration;
|
|
35
|
+
loopRecovery?: LoopRecoveryConfiguration;
|
|
35
36
|
attachmentsPreprocessor?: AttachmentsPreprocessorConfiguration;
|
|
36
37
|
responseSchema?: Record<string, unknown>;
|
|
37
38
|
verboseErrors?: boolean;
|
|
@@ -68,6 +69,7 @@ export declare interface AgentCreateRequest {
|
|
|
68
69
|
features?: Feature[];
|
|
69
70
|
toolkit?: ToolkitConfiguration;
|
|
70
71
|
compaction?: CompactionConfiguration;
|
|
72
|
+
loopRecovery?: LoopRecoveryConfiguration;
|
|
71
73
|
attachmentsPreprocessor?: AttachmentsPreprocessorConfiguration;
|
|
72
74
|
responseSchema?: Record<string, unknown>;
|
|
73
75
|
verboseErrors?: boolean;
|
|
@@ -708,6 +710,22 @@ export declare interface LineItem {
|
|
|
708
710
|
periodEnd?: string;
|
|
709
711
|
}
|
|
710
712
|
|
|
713
|
+
export declare interface LoopRecoveryConfiguration {
|
|
714
|
+
/**
|
|
715
|
+
* Enable the completion check at the end of the turn: when the model's final
|
|
716
|
+
* response arrives (finish_reason stop, no tool call; tool-call iterations are
|
|
717
|
+
* never checked), a checker model decides whether the task is
|
|
718
|
+
* really finished and resumes the loop if not. Default: false.
|
|
719
|
+
*/
|
|
720
|
+
enabled?: boolean;
|
|
721
|
+
/** Model used for the check (pick a small, fast one). Defaults to the agent's main model. */
|
|
722
|
+
model?: ModelConfiguration;
|
|
723
|
+
/** Maximum number of recoveries within a single turn. Default: 2. */
|
|
724
|
+
maxAttempts?: number;
|
|
725
|
+
/** Allow restarting the turn from the user's request; otherwise a restart is handled as a continue. Default: false. */
|
|
726
|
+
allowRestart?: boolean;
|
|
727
|
+
}
|
|
728
|
+
|
|
711
729
|
export declare interface MarkupRule {
|
|
712
730
|
id?: string;
|
|
713
731
|
pattern?: 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.113",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite",
|
package/src/agents/types.ts
CHANGED
|
@@ -349,6 +349,22 @@ export interface CompactionConfiguration {
|
|
|
349
349
|
model?: ModelConfiguration;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
+
export interface LoopRecoveryConfiguration {
|
|
353
|
+
/**
|
|
354
|
+
* Enable the completion check at the end of the turn: when the model's final
|
|
355
|
+
* response arrives (finish_reason stop, no tool call; tool-call iterations are
|
|
356
|
+
* never checked), a checker model decides whether the task is
|
|
357
|
+
* really finished and resumes the loop if not. Default: false.
|
|
358
|
+
*/
|
|
359
|
+
enabled?: boolean;
|
|
360
|
+
/** Model used for the check (pick a small, fast one). Defaults to the agent's main model. */
|
|
361
|
+
model?: ModelConfiguration;
|
|
362
|
+
/** Maximum number of recoveries within a single turn. Default: 2. */
|
|
363
|
+
maxAttempts?: number;
|
|
364
|
+
/** Allow restarting the turn from the user's request; otherwise a restart is handled as a continue. Default: false. */
|
|
365
|
+
allowRestart?: boolean;
|
|
366
|
+
}
|
|
367
|
+
|
|
352
368
|
export interface Revision {
|
|
353
369
|
id?: string;
|
|
354
370
|
entityId?: string;
|
|
@@ -388,6 +404,7 @@ export interface Agent {
|
|
|
388
404
|
features?: Feature[];
|
|
389
405
|
toolkit?: ToolkitConfiguration;
|
|
390
406
|
compaction?: CompactionConfiguration;
|
|
407
|
+
loopRecovery?: LoopRecoveryConfiguration;
|
|
391
408
|
attachmentsPreprocessor?: AttachmentsPreprocessorConfiguration;
|
|
392
409
|
responseSchema?: Record<string, unknown>;
|
|
393
410
|
verboseErrors?: boolean;
|
|
@@ -421,6 +438,7 @@ export interface AgentCreateRequest {
|
|
|
421
438
|
features?: Feature[];
|
|
422
439
|
toolkit?: ToolkitConfiguration;
|
|
423
440
|
compaction?: CompactionConfiguration;
|
|
441
|
+
loopRecovery?: LoopRecoveryConfiguration;
|
|
424
442
|
attachmentsPreprocessor?: AttachmentsPreprocessorConfiguration;
|
|
425
443
|
responseSchema?: Record<string, unknown>;
|
|
426
444
|
verboseErrors?: boolean;
|