@linnlabs/linnkit 0.32.2 → 0.33.0
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/CHANGELOG.md +31 -0
- package/dist/cli.cjs +312 -50
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +312 -50
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +1 -0
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +1 -0
- package/dist/context-manager.js.map +1 -1
- package/dist/contracts/agentSpec.d.cts +30 -30
- package/dist/contracts/agentSpec.d.ts +30 -30
- package/dist/contracts/audit.d.cts +32 -32
- package/dist/contracts/audit.d.ts +32 -32
- package/dist/contracts/contextPolicy.d.cts +36 -36
- package/dist/contracts/contextPolicy.d.ts +36 -36
- package/dist/contracts/events.d.cts +968 -968
- package/dist/contracts/events.d.ts +968 -968
- package/dist/contracts/execution.d.cts +8 -8
- package/dist/contracts/execution.d.ts +8 -8
- package/dist/contracts/messages.d.cts +204 -204
- package/dist/contracts/messages.d.ts +204 -204
- package/dist/contracts/sse.d.cts +891 -891
- package/dist/contracts/sse.d.ts +891 -891
- package/dist/contracts/sub-run-trace-payload.d.cts +26 -26
- package/dist/contracts/sub-run-trace-payload.d.ts +26 -26
- package/dist/contracts/token-accounting.d.cts +28 -28
- package/dist/contracts/token-accounting.d.ts +28 -28
- package/dist/index.cjs +383 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +383 -66
- package/dist/index.js.map +1 -1
- package/dist/quickstart/toolRuntime.d.cts +1 -1
- package/dist/quickstart/toolRuntime.d.ts +1 -1
- package/dist/quickstart/types.d.cts +1 -1
- package/dist/quickstart/types.d.ts +1 -1
- package/dist/quickstart.cjs +312 -50
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +312 -50
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/child-runs/childRunInvoker.d.cts +11 -0
- package/dist/runtime-kernel/child-runs/childRunInvoker.d.ts +11 -0
- package/dist/runtime-kernel/events/agentEvents.d.cts +98 -98
- package/dist/runtime-kernel/events/agentEvents.d.ts +98 -98
- package/dist/runtime-kernel/execution/eventBusEventPersistence.d.cts +15 -1
- package/dist/runtime-kernel/execution/eventBusEventPersistence.d.ts +15 -1
- package/dist/runtime-kernel/graph-engine/definitions/runContinuation.d.cts +34 -0
- package/dist/runtime-kernel/graph-engine/definitions/runContinuation.d.ts +34 -0
- package/dist/runtime-kernel/graph-engine/engine.d.cts +13 -2
- package/dist/runtime-kernel/graph-engine/engine.d.ts +13 -2
- package/dist/runtime-kernel/graph-engine/index.d.cts +2 -1
- package/dist/runtime-kernel/graph-engine/index.d.ts +2 -1
- package/dist/runtime-kernel/graph-engine/types.d.cts +8 -0
- package/dist/runtime-kernel/graph-engine/types.d.ts +8 -0
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.cts +14 -2
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.ts +14 -2
- package/dist/runtime-kernel/run-supervisor/memoryRunRegistryStore.d.cts +1 -0
- package/dist/runtime-kernel/run-supervisor/memoryRunRegistryStore.d.ts +1 -0
- package/dist/runtime-kernel/run-supervisor/runHandle.d.cts +9 -5
- package/dist/runtime-kernel/run-supervisor/runHandle.d.ts +9 -5
- package/dist/runtime-kernel/run-supervisor/runRegistryStorePort.d.cts +2 -0
- package/dist/runtime-kernel/run-supervisor/runRegistryStorePort.d.ts +2 -0
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.cts +7 -1
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.ts +7 -1
- package/dist/runtime-kernel.cjs +383 -66
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +2 -1
- package/dist/runtime-kernel.d.ts +2 -1
- package/dist/runtime-kernel.js +381 -67
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +383 -66
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +383 -66
- package/dist/testkit.js.map +1 -1
- package/docs/integration/01-installation.md +1 -1
- package/docs/integration/child-runs.md +12 -0
- package/docs/integration/persistence.md +23 -0
- package/docs/integration/run-supervisor.md +12 -2
- package/package.json +4 -4
|
@@ -27,10 +27,10 @@ declare const AgentSpecAuditConfig: z.ZodObject<{
|
|
|
27
27
|
redactionLevel: z.ZodOptional<z.ZodEnum<["none", "standard", "strict"]>>;
|
|
28
28
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
redactionLevel?: "
|
|
30
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
31
31
|
pii?: boolean | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
redactionLevel?: "
|
|
33
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
34
34
|
pii?: boolean | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
type AgentSpecAuditConfig = z.infer<typeof AgentSpecAuditConfig>;
|
|
@@ -82,14 +82,14 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
82
82
|
maxInteractionGroups: z.ZodOptional<z.ZodNumber>;
|
|
83
83
|
overflowStrategy: z.ZodOptional<z.ZodEnum<["keep-latest", "fail-fast"]>>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
strategy?: "
|
|
85
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
86
86
|
retentionMode?: "drop" | "compress" | undefined;
|
|
87
87
|
keepLatestToolPairs?: number | undefined;
|
|
88
88
|
keepLatestRuns?: number | undefined;
|
|
89
89
|
maxInteractionGroups?: number | undefined;
|
|
90
90
|
overflowStrategy?: "keep-latest" | "fail-fast" | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
strategy?: "
|
|
92
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
93
93
|
retentionMode?: "drop" | "compress" | undefined;
|
|
94
94
|
keepLatestToolPairs?: number | undefined;
|
|
95
95
|
keepLatestRuns?: number | undefined;
|
|
@@ -176,7 +176,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
176
176
|
strategyName: string;
|
|
177
177
|
}>, "many">>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
alwaysKeepTypes?: ("
|
|
179
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
180
180
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
181
181
|
truncationRules?: {
|
|
182
182
|
fenceKind: string;
|
|
@@ -184,7 +184,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
184
184
|
strategyName: string;
|
|
185
185
|
}[] | undefined;
|
|
186
186
|
}, {
|
|
187
|
-
alwaysKeepTypes?: ("
|
|
187
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
188
188
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
189
189
|
truncationRules?: {
|
|
190
190
|
fenceKind: string;
|
|
@@ -297,18 +297,18 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
298
|
kind: string;
|
|
299
299
|
value?: string | number | boolean | undefined;
|
|
300
|
+
toolName?: string | undefined;
|
|
300
301
|
threshold?: number | undefined;
|
|
301
302
|
moduloStep?: boolean | undefined;
|
|
302
|
-
toolName?: string | undefined;
|
|
303
303
|
period?: number | undefined;
|
|
304
304
|
minStep?: number | undefined;
|
|
305
305
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
306
306
|
}, {
|
|
307
307
|
kind: string;
|
|
308
308
|
value?: string | number | boolean | undefined;
|
|
309
|
+
toolName?: string | undefined;
|
|
309
310
|
threshold?: number | undefined;
|
|
310
311
|
moduloStep?: boolean | undefined;
|
|
311
|
-
toolName?: string | undefined;
|
|
312
312
|
period?: number | undefined;
|
|
313
313
|
minStep?: number | undefined;
|
|
314
314
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -320,9 +320,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
320
320
|
trigger: {
|
|
321
321
|
kind: string;
|
|
322
322
|
value?: string | number | boolean | undefined;
|
|
323
|
+
toolName?: string | undefined;
|
|
323
324
|
threshold?: number | undefined;
|
|
324
325
|
moduloStep?: boolean | undefined;
|
|
325
|
-
toolName?: string | undefined;
|
|
326
326
|
period?: number | undefined;
|
|
327
327
|
minStep?: number | undefined;
|
|
328
328
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -334,9 +334,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
334
334
|
trigger: {
|
|
335
335
|
kind: string;
|
|
336
336
|
value?: string | number | boolean | undefined;
|
|
337
|
+
toolName?: string | undefined;
|
|
337
338
|
threshold?: number | undefined;
|
|
338
339
|
moduloStep?: boolean | undefined;
|
|
339
|
-
toolName?: string | undefined;
|
|
340
340
|
period?: number | undefined;
|
|
341
341
|
minStep?: number | undefined;
|
|
342
342
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -357,9 +357,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
357
357
|
trigger: {
|
|
358
358
|
kind: string;
|
|
359
359
|
value?: string | number | boolean | undefined;
|
|
360
|
+
toolName?: string | undefined;
|
|
360
361
|
threshold?: number | undefined;
|
|
361
362
|
moduloStep?: boolean | undefined;
|
|
362
|
-
toolName?: string | undefined;
|
|
363
363
|
period?: number | undefined;
|
|
364
364
|
minStep?: number | undefined;
|
|
365
365
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -380,9 +380,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
380
380
|
trigger: {
|
|
381
381
|
kind: string;
|
|
382
382
|
value?: string | number | boolean | undefined;
|
|
383
|
+
toolName?: string | undefined;
|
|
383
384
|
threshold?: number | undefined;
|
|
384
385
|
moduloStep?: boolean | undefined;
|
|
385
|
-
toolName?: string | undefined;
|
|
386
386
|
period?: number | undefined;
|
|
387
387
|
minStep?: number | undefined;
|
|
388
388
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -403,9 +403,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
403
403
|
trigger: {
|
|
404
404
|
kind: string;
|
|
405
405
|
value?: string | number | boolean | undefined;
|
|
406
|
+
toolName?: string | undefined;
|
|
406
407
|
threshold?: number | undefined;
|
|
407
408
|
moduloStep?: boolean | undefined;
|
|
408
|
-
toolName?: string | undefined;
|
|
409
409
|
period?: number | undefined;
|
|
410
410
|
minStep?: number | undefined;
|
|
411
411
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -426,9 +426,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
426
426
|
trigger: {
|
|
427
427
|
kind: string;
|
|
428
428
|
value?: string | number | boolean | undefined;
|
|
429
|
+
toolName?: string | undefined;
|
|
429
430
|
threshold?: number | undefined;
|
|
430
431
|
moduloStep?: boolean | undefined;
|
|
431
|
-
toolName?: string | undefined;
|
|
432
432
|
period?: number | undefined;
|
|
433
433
|
minStep?: number | undefined;
|
|
434
434
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -461,7 +461,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
461
461
|
workingMemoryBudgetPercentage?: number | undefined;
|
|
462
462
|
} | undefined;
|
|
463
463
|
toolHistory?: {
|
|
464
|
-
strategy?: "
|
|
464
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
465
465
|
retentionMode?: "drop" | "compress" | undefined;
|
|
466
466
|
keepLatestToolPairs?: number | undefined;
|
|
467
467
|
keepLatestRuns?: number | undefined;
|
|
@@ -484,7 +484,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
484
484
|
maxCompactionsPerRun?: number | undefined;
|
|
485
485
|
} | undefined;
|
|
486
486
|
mustKeep?: {
|
|
487
|
-
alwaysKeepTypes?: ("
|
|
487
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
488
488
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
489
489
|
truncationRules?: {
|
|
490
490
|
fenceKind: string;
|
|
@@ -526,9 +526,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
526
526
|
trigger: {
|
|
527
527
|
kind: string;
|
|
528
528
|
value?: string | number | boolean | undefined;
|
|
529
|
+
toolName?: string | undefined;
|
|
529
530
|
threshold?: number | undefined;
|
|
530
531
|
moduloStep?: boolean | undefined;
|
|
531
|
-
toolName?: string | undefined;
|
|
532
532
|
period?: number | undefined;
|
|
533
533
|
minStep?: number | undefined;
|
|
534
534
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -551,7 +551,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
551
551
|
workingMemoryBudgetPercentage?: number | undefined;
|
|
552
552
|
} | undefined;
|
|
553
553
|
toolHistory?: {
|
|
554
|
-
strategy?: "
|
|
554
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
555
555
|
retentionMode?: "drop" | "compress" | undefined;
|
|
556
556
|
keepLatestToolPairs?: number | undefined;
|
|
557
557
|
keepLatestRuns?: number | undefined;
|
|
@@ -574,7 +574,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
574
574
|
maxCompactionsPerRun?: number | undefined;
|
|
575
575
|
} | undefined;
|
|
576
576
|
mustKeep?: {
|
|
577
|
-
alwaysKeepTypes?: ("
|
|
577
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
578
578
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
579
579
|
truncationRules?: {
|
|
580
580
|
fenceKind: string;
|
|
@@ -616,9 +616,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
616
616
|
trigger: {
|
|
617
617
|
kind: string;
|
|
618
618
|
value?: string | number | boolean | undefined;
|
|
619
|
+
toolName?: string | undefined;
|
|
619
620
|
threshold?: number | undefined;
|
|
620
621
|
moduloStep?: boolean | undefined;
|
|
621
|
-
toolName?: string | undefined;
|
|
622
622
|
period?: number | undefined;
|
|
623
623
|
minStep?: number | undefined;
|
|
624
624
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -638,10 +638,10 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
638
638
|
redactionLevel: z.ZodOptional<z.ZodEnum<["none", "standard", "strict"]>>;
|
|
639
639
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
640
640
|
}, "strip", z.ZodTypeAny, {
|
|
641
|
-
redactionLevel?: "
|
|
641
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
642
642
|
pii?: boolean | undefined;
|
|
643
643
|
}, {
|
|
644
|
-
redactionLevel?: "
|
|
644
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
645
645
|
pii?: boolean | undefined;
|
|
646
646
|
}>>;
|
|
647
647
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -664,7 +664,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
664
664
|
workingMemoryBudgetPercentage?: number | undefined;
|
|
665
665
|
} | undefined;
|
|
666
666
|
toolHistory?: {
|
|
667
|
-
strategy?: "
|
|
667
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
668
668
|
retentionMode?: "drop" | "compress" | undefined;
|
|
669
669
|
keepLatestToolPairs?: number | undefined;
|
|
670
670
|
keepLatestRuns?: number | undefined;
|
|
@@ -687,7 +687,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
687
687
|
maxCompactionsPerRun?: number | undefined;
|
|
688
688
|
} | undefined;
|
|
689
689
|
mustKeep?: {
|
|
690
|
-
alwaysKeepTypes?: ("
|
|
690
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
691
691
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
692
692
|
truncationRules?: {
|
|
693
693
|
fenceKind: string;
|
|
@@ -729,9 +729,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
729
729
|
trigger: {
|
|
730
730
|
kind: string;
|
|
731
731
|
value?: string | number | boolean | undefined;
|
|
732
|
+
toolName?: string | undefined;
|
|
732
733
|
threshold?: number | undefined;
|
|
733
734
|
moduloStep?: boolean | undefined;
|
|
734
|
-
toolName?: string | undefined;
|
|
735
735
|
period?: number | undefined;
|
|
736
736
|
minStep?: number | undefined;
|
|
737
737
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -751,7 +751,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
751
751
|
role?: string | undefined;
|
|
752
752
|
description?: string | undefined;
|
|
753
753
|
audit?: {
|
|
754
|
-
redactionLevel?: "
|
|
754
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
755
755
|
pii?: boolean | undefined;
|
|
756
756
|
} | undefined;
|
|
757
757
|
}, {
|
|
@@ -773,7 +773,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
773
773
|
workingMemoryBudgetPercentage?: number | undefined;
|
|
774
774
|
} | undefined;
|
|
775
775
|
toolHistory?: {
|
|
776
|
-
strategy?: "
|
|
776
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
777
777
|
retentionMode?: "drop" | "compress" | undefined;
|
|
778
778
|
keepLatestToolPairs?: number | undefined;
|
|
779
779
|
keepLatestRuns?: number | undefined;
|
|
@@ -796,7 +796,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
796
796
|
maxCompactionsPerRun?: number | undefined;
|
|
797
797
|
} | undefined;
|
|
798
798
|
mustKeep?: {
|
|
799
|
-
alwaysKeepTypes?: ("
|
|
799
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
800
800
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
801
801
|
truncationRules?: {
|
|
802
802
|
fenceKind: string;
|
|
@@ -838,9 +838,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
838
838
|
trigger: {
|
|
839
839
|
kind: string;
|
|
840
840
|
value?: string | number | boolean | undefined;
|
|
841
|
+
toolName?: string | undefined;
|
|
841
842
|
threshold?: number | undefined;
|
|
842
843
|
moduloStep?: boolean | undefined;
|
|
843
|
-
toolName?: string | undefined;
|
|
844
844
|
period?: number | undefined;
|
|
845
845
|
minStep?: number | undefined;
|
|
846
846
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -860,7 +860,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
860
860
|
role?: string | undefined;
|
|
861
861
|
description?: string | undefined;
|
|
862
862
|
audit?: {
|
|
863
|
-
redactionLevel?: "
|
|
863
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
864
864
|
pii?: boolean | undefined;
|
|
865
865
|
} | undefined;
|
|
866
866
|
}>;
|
|
@@ -27,10 +27,10 @@ declare const AgentSpecAuditConfig: z.ZodObject<{
|
|
|
27
27
|
redactionLevel: z.ZodOptional<z.ZodEnum<["none", "standard", "strict"]>>;
|
|
28
28
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
redactionLevel?: "
|
|
30
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
31
31
|
pii?: boolean | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
redactionLevel?: "
|
|
33
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
34
34
|
pii?: boolean | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
type AgentSpecAuditConfig = z.infer<typeof AgentSpecAuditConfig>;
|
|
@@ -82,14 +82,14 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
82
82
|
maxInteractionGroups: z.ZodOptional<z.ZodNumber>;
|
|
83
83
|
overflowStrategy: z.ZodOptional<z.ZodEnum<["keep-latest", "fail-fast"]>>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
strategy?: "
|
|
85
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
86
86
|
retentionMode?: "drop" | "compress" | undefined;
|
|
87
87
|
keepLatestToolPairs?: number | undefined;
|
|
88
88
|
keepLatestRuns?: number | undefined;
|
|
89
89
|
maxInteractionGroups?: number | undefined;
|
|
90
90
|
overflowStrategy?: "keep-latest" | "fail-fast" | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
strategy?: "
|
|
92
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
93
93
|
retentionMode?: "drop" | "compress" | undefined;
|
|
94
94
|
keepLatestToolPairs?: number | undefined;
|
|
95
95
|
keepLatestRuns?: number | undefined;
|
|
@@ -176,7 +176,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
176
176
|
strategyName: string;
|
|
177
177
|
}>, "many">>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
alwaysKeepTypes?: ("
|
|
179
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
180
180
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
181
181
|
truncationRules?: {
|
|
182
182
|
fenceKind: string;
|
|
@@ -184,7 +184,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
184
184
|
strategyName: string;
|
|
185
185
|
}[] | undefined;
|
|
186
186
|
}, {
|
|
187
|
-
alwaysKeepTypes?: ("
|
|
187
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
188
188
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
189
189
|
truncationRules?: {
|
|
190
190
|
fenceKind: string;
|
|
@@ -297,18 +297,18 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
298
|
kind: string;
|
|
299
299
|
value?: string | number | boolean | undefined;
|
|
300
|
+
toolName?: string | undefined;
|
|
300
301
|
threshold?: number | undefined;
|
|
301
302
|
moduloStep?: boolean | undefined;
|
|
302
|
-
toolName?: string | undefined;
|
|
303
303
|
period?: number | undefined;
|
|
304
304
|
minStep?: number | undefined;
|
|
305
305
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
306
306
|
}, {
|
|
307
307
|
kind: string;
|
|
308
308
|
value?: string | number | boolean | undefined;
|
|
309
|
+
toolName?: string | undefined;
|
|
309
310
|
threshold?: number | undefined;
|
|
310
311
|
moduloStep?: boolean | undefined;
|
|
311
|
-
toolName?: string | undefined;
|
|
312
312
|
period?: number | undefined;
|
|
313
313
|
minStep?: number | undefined;
|
|
314
314
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -320,9 +320,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
320
320
|
trigger: {
|
|
321
321
|
kind: string;
|
|
322
322
|
value?: string | number | boolean | undefined;
|
|
323
|
+
toolName?: string | undefined;
|
|
323
324
|
threshold?: number | undefined;
|
|
324
325
|
moduloStep?: boolean | undefined;
|
|
325
|
-
toolName?: string | undefined;
|
|
326
326
|
period?: number | undefined;
|
|
327
327
|
minStep?: number | undefined;
|
|
328
328
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -334,9 +334,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
334
334
|
trigger: {
|
|
335
335
|
kind: string;
|
|
336
336
|
value?: string | number | boolean | undefined;
|
|
337
|
+
toolName?: string | undefined;
|
|
337
338
|
threshold?: number | undefined;
|
|
338
339
|
moduloStep?: boolean | undefined;
|
|
339
|
-
toolName?: string | undefined;
|
|
340
340
|
period?: number | undefined;
|
|
341
341
|
minStep?: number | undefined;
|
|
342
342
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -357,9 +357,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
357
357
|
trigger: {
|
|
358
358
|
kind: string;
|
|
359
359
|
value?: string | number | boolean | undefined;
|
|
360
|
+
toolName?: string | undefined;
|
|
360
361
|
threshold?: number | undefined;
|
|
361
362
|
moduloStep?: boolean | undefined;
|
|
362
|
-
toolName?: string | undefined;
|
|
363
363
|
period?: number | undefined;
|
|
364
364
|
minStep?: number | undefined;
|
|
365
365
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -380,9 +380,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
380
380
|
trigger: {
|
|
381
381
|
kind: string;
|
|
382
382
|
value?: string | number | boolean | undefined;
|
|
383
|
+
toolName?: string | undefined;
|
|
383
384
|
threshold?: number | undefined;
|
|
384
385
|
moduloStep?: boolean | undefined;
|
|
385
|
-
toolName?: string | undefined;
|
|
386
386
|
period?: number | undefined;
|
|
387
387
|
minStep?: number | undefined;
|
|
388
388
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -403,9 +403,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
403
403
|
trigger: {
|
|
404
404
|
kind: string;
|
|
405
405
|
value?: string | number | boolean | undefined;
|
|
406
|
+
toolName?: string | undefined;
|
|
406
407
|
threshold?: number | undefined;
|
|
407
408
|
moduloStep?: boolean | undefined;
|
|
408
|
-
toolName?: string | undefined;
|
|
409
409
|
period?: number | undefined;
|
|
410
410
|
minStep?: number | undefined;
|
|
411
411
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -426,9 +426,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
426
426
|
trigger: {
|
|
427
427
|
kind: string;
|
|
428
428
|
value?: string | number | boolean | undefined;
|
|
429
|
+
toolName?: string | undefined;
|
|
429
430
|
threshold?: number | undefined;
|
|
430
431
|
moduloStep?: boolean | undefined;
|
|
431
|
-
toolName?: string | undefined;
|
|
432
432
|
period?: number | undefined;
|
|
433
433
|
minStep?: number | undefined;
|
|
434
434
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -461,7 +461,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
461
461
|
workingMemoryBudgetPercentage?: number | undefined;
|
|
462
462
|
} | undefined;
|
|
463
463
|
toolHistory?: {
|
|
464
|
-
strategy?: "
|
|
464
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
465
465
|
retentionMode?: "drop" | "compress" | undefined;
|
|
466
466
|
keepLatestToolPairs?: number | undefined;
|
|
467
467
|
keepLatestRuns?: number | undefined;
|
|
@@ -484,7 +484,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
484
484
|
maxCompactionsPerRun?: number | undefined;
|
|
485
485
|
} | undefined;
|
|
486
486
|
mustKeep?: {
|
|
487
|
-
alwaysKeepTypes?: ("
|
|
487
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
488
488
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
489
489
|
truncationRules?: {
|
|
490
490
|
fenceKind: string;
|
|
@@ -526,9 +526,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
526
526
|
trigger: {
|
|
527
527
|
kind: string;
|
|
528
528
|
value?: string | number | boolean | undefined;
|
|
529
|
+
toolName?: string | undefined;
|
|
529
530
|
threshold?: number | undefined;
|
|
530
531
|
moduloStep?: boolean | undefined;
|
|
531
|
-
toolName?: string | undefined;
|
|
532
532
|
period?: number | undefined;
|
|
533
533
|
minStep?: number | undefined;
|
|
534
534
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -551,7 +551,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
551
551
|
workingMemoryBudgetPercentage?: number | undefined;
|
|
552
552
|
} | undefined;
|
|
553
553
|
toolHistory?: {
|
|
554
|
-
strategy?: "
|
|
554
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
555
555
|
retentionMode?: "drop" | "compress" | undefined;
|
|
556
556
|
keepLatestToolPairs?: number | undefined;
|
|
557
557
|
keepLatestRuns?: number | undefined;
|
|
@@ -574,7 +574,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
574
574
|
maxCompactionsPerRun?: number | undefined;
|
|
575
575
|
} | undefined;
|
|
576
576
|
mustKeep?: {
|
|
577
|
-
alwaysKeepTypes?: ("
|
|
577
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
578
578
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
579
579
|
truncationRules?: {
|
|
580
580
|
fenceKind: string;
|
|
@@ -616,9 +616,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
616
616
|
trigger: {
|
|
617
617
|
kind: string;
|
|
618
618
|
value?: string | number | boolean | undefined;
|
|
619
|
+
toolName?: string | undefined;
|
|
619
620
|
threshold?: number | undefined;
|
|
620
621
|
moduloStep?: boolean | undefined;
|
|
621
|
-
toolName?: string | undefined;
|
|
622
622
|
period?: number | undefined;
|
|
623
623
|
minStep?: number | undefined;
|
|
624
624
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -638,10 +638,10 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
638
638
|
redactionLevel: z.ZodOptional<z.ZodEnum<["none", "standard", "strict"]>>;
|
|
639
639
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
640
640
|
}, "strip", z.ZodTypeAny, {
|
|
641
|
-
redactionLevel?: "
|
|
641
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
642
642
|
pii?: boolean | undefined;
|
|
643
643
|
}, {
|
|
644
|
-
redactionLevel?: "
|
|
644
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
645
645
|
pii?: boolean | undefined;
|
|
646
646
|
}>>;
|
|
647
647
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -664,7 +664,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
664
664
|
workingMemoryBudgetPercentage?: number | undefined;
|
|
665
665
|
} | undefined;
|
|
666
666
|
toolHistory?: {
|
|
667
|
-
strategy?: "
|
|
667
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
668
668
|
retentionMode?: "drop" | "compress" | undefined;
|
|
669
669
|
keepLatestToolPairs?: number | undefined;
|
|
670
670
|
keepLatestRuns?: number | undefined;
|
|
@@ -687,7 +687,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
687
687
|
maxCompactionsPerRun?: number | undefined;
|
|
688
688
|
} | undefined;
|
|
689
689
|
mustKeep?: {
|
|
690
|
-
alwaysKeepTypes?: ("
|
|
690
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
691
691
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
692
692
|
truncationRules?: {
|
|
693
693
|
fenceKind: string;
|
|
@@ -729,9 +729,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
729
729
|
trigger: {
|
|
730
730
|
kind: string;
|
|
731
731
|
value?: string | number | boolean | undefined;
|
|
732
|
+
toolName?: string | undefined;
|
|
732
733
|
threshold?: number | undefined;
|
|
733
734
|
moduloStep?: boolean | undefined;
|
|
734
|
-
toolName?: string | undefined;
|
|
735
735
|
period?: number | undefined;
|
|
736
736
|
minStep?: number | undefined;
|
|
737
737
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -751,7 +751,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
751
751
|
role?: string | undefined;
|
|
752
752
|
description?: string | undefined;
|
|
753
753
|
audit?: {
|
|
754
|
-
redactionLevel?: "
|
|
754
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
755
755
|
pii?: boolean | undefined;
|
|
756
756
|
} | undefined;
|
|
757
757
|
}, {
|
|
@@ -773,7 +773,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
773
773
|
workingMemoryBudgetPercentage?: number | undefined;
|
|
774
774
|
} | undefined;
|
|
775
775
|
toolHistory?: {
|
|
776
|
-
strategy?: "
|
|
776
|
+
strategy?: "none" | "per-pair" | "per-run" | undefined;
|
|
777
777
|
retentionMode?: "drop" | "compress" | undefined;
|
|
778
778
|
keepLatestToolPairs?: number | undefined;
|
|
779
779
|
keepLatestRuns?: number | undefined;
|
|
@@ -796,7 +796,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
796
796
|
maxCompactionsPerRun?: number | undefined;
|
|
797
797
|
} | undefined;
|
|
798
798
|
mustKeep?: {
|
|
799
|
-
alwaysKeepTypes?: ("
|
|
799
|
+
alwaysKeepTypes?: ("user_input" | "tool_calls" | "tool_output" | "final_answer" | "history_summary" | "system_prompt" | "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request" | "tool_code" | "task_completion")[] | undefined;
|
|
800
800
|
alwaysKeepFenceKinds?: string[] | undefined;
|
|
801
801
|
truncationRules?: {
|
|
802
802
|
fenceKind: string;
|
|
@@ -838,9 +838,9 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
838
838
|
trigger: {
|
|
839
839
|
kind: string;
|
|
840
840
|
value?: string | number | boolean | undefined;
|
|
841
|
+
toolName?: string | undefined;
|
|
841
842
|
threshold?: number | undefined;
|
|
842
843
|
moduloStep?: boolean | undefined;
|
|
843
|
-
toolName?: string | undefined;
|
|
844
844
|
period?: number | undefined;
|
|
845
845
|
minStep?: number | undefined;
|
|
846
846
|
config?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -860,7 +860,7 @@ declare const AgentSpec: z.ZodObject<{
|
|
|
860
860
|
role?: string | undefined;
|
|
861
861
|
description?: string | undefined;
|
|
862
862
|
audit?: {
|
|
863
|
-
redactionLevel?: "
|
|
863
|
+
redactionLevel?: "none" | "strict" | "standard" | undefined;
|
|
864
864
|
pii?: boolean | undefined;
|
|
865
865
|
} | undefined;
|
|
866
866
|
}>;
|