@crossworks/client-types 0.232.225 → 0.232.228
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/package.json +1 -1
- package/src/dto/agents.ts +3 -0
- package/src/dto/rows.ts +37 -0
package/package.json
CHANGED
package/src/dto/agents.ts
CHANGED
|
@@ -52,6 +52,9 @@ export interface AgentMemoryConfigDTO {
|
|
|
52
52
|
chunk_limit?: number;
|
|
53
53
|
inject_journal?: boolean;
|
|
54
54
|
inject_working_notes?: boolean;
|
|
55
|
+
journal_tiers?: 'off' | 'shadow' | 'live';
|
|
56
|
+
journal_relevance_min?: number;
|
|
57
|
+
journal_relevant_chars?: number;
|
|
55
58
|
summarize_threshold?: number;
|
|
56
59
|
summarize_batch?: number;
|
|
57
60
|
extract_types?: string[];
|
package/src/dto/rows.ts
CHANGED
|
@@ -715,6 +715,43 @@ export type ContextSnapshot = {
|
|
|
715
715
|
ms: number;
|
|
716
716
|
cached: boolean;
|
|
717
717
|
};
|
|
718
|
+
/** The decider's `history_recall` use, when it ran on this turn: every
|
|
719
|
+
* exchange older than history_limit (up to 50 messages back) with its
|
|
720
|
+
* score. `shadow`: `wouldAdd` says how many WOULD have rejoined the
|
|
721
|
+
* history; `live`: they did, before the recent part. */
|
|
722
|
+
historyRecall?: {
|
|
723
|
+
mode: 'shadow' | 'live';
|
|
724
|
+
threshold: number;
|
|
725
|
+
/** `back` = messages back from the newest; `score` null = unscored. */
|
|
726
|
+
exchanges: Array<{ back: number; score: number | null; chars: number }>;
|
|
727
|
+
wouldAdd: number;
|
|
728
|
+
chars: number;
|
|
729
|
+
calls: number;
|
|
730
|
+
failed: number;
|
|
731
|
+
ms: number;
|
|
732
|
+
cached: boolean;
|
|
733
|
+
};
|
|
734
|
+
/** Journal tiers 2 and 3 (memory_config.journal_tiers), when the lookup
|
|
735
|
+
* ran. `shadow`: what WOULD have joined the prompt; `live`: what did.
|
|
736
|
+
* Absent when the tiers are off, both lanes are off, or no embedding. */
|
|
737
|
+
journal?: {
|
|
738
|
+
mode: 'shadow' | 'live';
|
|
739
|
+
cutoff: number;
|
|
740
|
+
/** Set when the lookup was skipped on purpose (greetings, thanks). */
|
|
741
|
+
skipped: 'small_talk' | null;
|
|
742
|
+
picked: Array<{
|
|
743
|
+
nodeId: string;
|
|
744
|
+
kind: string;
|
|
745
|
+
similarity: number;
|
|
746
|
+
chars: number;
|
|
747
|
+
passage: boolean;
|
|
748
|
+
}>;
|
|
749
|
+
gap: { nodeId: string; similarity: number } | null;
|
|
750
|
+
nearMisses: Array<{ nodeId: string; kind: string; similarity: number }>;
|
|
751
|
+
chars: number;
|
|
752
|
+
/** Facts and passages the block made redundant (dropped in `live`). */
|
|
753
|
+
dedupe: { facts: number; chunkHits: number };
|
|
754
|
+
};
|
|
718
755
|
};
|
|
719
756
|
|
|
720
757
|
export type BackupFrequency = 'daily' | 'weekly';
|