@unblocklabs/unblock-memory 0.12.3 → 0.14.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/README.md +19 -18
- package/defaults.json +162 -0
- package/dist/src/analysis.js +1 -1
- package/dist/src/cluster-review.d.ts +2 -0
- package/dist/src/cluster-review.js +9 -8
- package/dist/src/config.d.ts +9 -6
- package/dist/src/config.js +59 -45
- package/dist/src/curation.d.ts +1 -1
- package/dist/src/decision-client.d.ts +45 -0
- package/dist/src/decision-client.js +87 -0
- package/dist/src/{typesafe.d.ts → decision-ranking.d.ts} +15 -18
- package/dist/src/decision-ranking.js +155 -0
- package/dist/src/{typesafe-review.d.ts → decision-review.d.ts} +13 -9
- package/dist/src/decision-review.js +193 -0
- package/dist/src/defaults.d.ts +8 -0
- package/dist/src/defaults.js +128 -0
- package/dist/src/diagnostics.d.ts +5 -5
- package/dist/src/emotion-baselines.d.ts +28 -3
- package/dist/src/emotion-baselines.js +312 -115
- package/dist/src/evidence-review.d.ts +22 -8
- package/dist/src/evidence-review.js +11 -8
- package/dist/src/extraction-chunk.d.ts +3 -0
- package/dist/src/extraction-chunk.js +25 -6
- package/dist/src/extraction-config.js +4 -2
- package/dist/src/extraction-model.d.ts +25 -17
- package/dist/src/extraction-model.js +232 -104
- package/dist/src/extraction-runtime.d.ts +3 -1
- package/dist/src/extraction-runtime.js +48 -20
- package/dist/src/extraction-source.d.ts +1 -1
- package/dist/src/extraction-source.js +21 -12
- package/dist/src/extraction-store.d.ts +29 -3
- package/dist/src/extraction-store.js +149 -25
- package/dist/src/extraction-worker.d.ts +3 -3
- package/dist/src/extraction-worker.js +250 -95
- package/dist/src/inside-out-runtime.js +43 -30
- package/dist/src/inside-out-sources.js +2 -1
- package/dist/src/inside-out-store.d.ts +2 -2
- package/dist/src/inside-out-store.js +111 -69
- package/dist/src/inside-out.d.ts +10 -9
- package/dist/src/inside-out.js +194 -106
- package/dist/src/manager.d.ts +22 -9
- package/dist/src/manager.js +279 -172
- package/dist/src/memory-database.js +3 -2
- package/dist/src/memory-passage.d.ts +2 -2
- package/dist/src/memory-passage.js +3 -2
- package/dist/src/memory-search.d.ts +4 -2
- package/dist/src/memory-search.js +5 -5
- package/dist/src/memory-whisperer.d.ts +1 -1
- package/dist/src/memory-whisperer.js +195 -129
- package/dist/src/my-turn.d.ts +1 -1
- package/dist/src/my-turn.js +90 -70
- package/dist/src/people-background.d.ts +5 -1
- package/dist/src/people-background.js +31 -7
- package/dist/src/people-dossier-review.d.ts +20 -8
- package/dist/src/people-dossier-review.js +15 -11
- package/dist/src/people-hooks.js +127 -22
- package/dist/src/people-learning-cron.d.ts +1 -1
- package/dist/src/people-learning-cron.js +107 -57
- package/dist/src/people-learning-inventory.d.ts +1 -0
- package/dist/src/people-learning-inventory.js +283 -172
- package/dist/src/people-learning-prompt.js +1 -1
- package/dist/src/people-learning-runtime.d.ts +1 -1
- package/dist/src/people-learning-runtime.js +360 -203
- package/dist/src/people-learning-store.d.ts +27 -4
- package/dist/src/people-learning-store.js +312 -96
- package/dist/src/people-primer-tool.js +13 -10
- package/dist/src/people-primer.d.ts +3 -1
- package/dist/src/people-primer.js +66 -48
- package/dist/src/people-store.d.ts +18 -21
- package/dist/src/people-store.js +188 -64
- package/dist/src/people-tools.js +138 -93
- package/dist/src/plugin.js +19 -18
- package/dist/src/quality-audit.d.ts +2 -0
- package/dist/src/quality-audit.js +11 -9
- package/dist/src/quality-triage.js +4 -3
- package/dist/src/query-generator.js +5 -2
- package/dist/src/response-audit.d.ts +1 -1
- package/dist/src/response-audit.js +78 -44
- package/dist/src/response-config.js +3 -1
- package/dist/src/response-episodes.d.ts +1 -1
- package/dist/src/response-episodes.js +15 -19
- package/dist/src/response-identity.js +2 -1
- package/dist/src/response-judge.d.ts +151 -145
- package/dist/src/response-judge.js +535 -204
- package/dist/src/response-memory.js +2 -1
- package/dist/src/response-outcome.js +9 -8
- package/dist/src/response-reviews.d.ts +29 -1
- package/dist/src/response-reviews.js +113 -15
- package/dist/src/response-runtime.js +10 -9
- package/dist/src/response-stages.d.ts +50 -53
- package/dist/src/response-stages.js +10 -4
- package/dist/src/response-store.d.ts +7 -6
- package/dist/src/response-store.js +335 -212
- package/dist/src/review-tools.d.ts +8 -2
- package/dist/src/review-tools.js +22 -21
- package/dist/src/runtime.d.ts +7 -4
- package/dist/src/runtime.js +625 -98
- package/dist/src/safety-config.js +3 -2
- package/dist/src/safety-whisperer.d.ts +2 -2
- package/dist/src/safety-whisperer.js +90 -73
- package/dist/src/session-sync.d.ts +3 -1
- package/dist/src/session-sync.js +202 -96
- package/dist/src/skill-whisperer.d.ts +2 -2
- package/dist/src/skill-whisperer.js +55 -32
- package/dist/src/slack-directory.js +3 -2
- package/dist/src/training-gate.d.ts +9 -22
- package/dist/src/training-gate.js +34 -36
- package/dist/src/training-input.js +4 -3
- package/dist/src/training-judge.d.ts +9 -16
- package/dist/src/training-judge.js +6 -5
- package/dist/src/training-models.d.ts +1 -1
- package/dist/src/training-models.js +9 -7
- package/dist/src/training-queries.d.ts +14 -9
- package/dist/src/training-queries.js +374 -231
- package/dist/src/training-retrieval.d.ts +17 -27
- package/dist/src/training-retrieval.js +186 -139
- package/dist/src/training-runtime.d.ts +3 -0
- package/dist/src/training-runtime.js +76 -18
- package/dist/src/training-store.d.ts +18 -3
- package/dist/src/training-store.js +141 -52
- package/dist/src/training.js +9 -11
- package/dist/src/whisperer-context.d.ts +13 -0
- package/dist/src/whisperer-context.js +22 -1
- package/docs/configuration.md +83 -64
- package/docs/extraction.md +26 -35
- package/docs/memory-training.md +7 -6
- package/docs/people-learning.md +2 -2
- package/docs/peoplesql.md +6 -6
- package/docs/response-audit.md +10 -8
- package/docs/retrieval.md +43 -47
- package/openclaw.plugin.json +76 -75
- package/package.json +5 -2
- package/skills/memory-curator/SKILL.md +1 -1
- package/skills/people-whisperer/SKILL.md +1 -1
- package/dist/src/typesafe-client.d.ts +0 -30
- package/dist/src/typesafe-client.js +0 -92
- package/dist/src/typesafe-review.js +0 -154
- package/dist/src/typesafe.js +0 -147
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type, type Static } from "typebox";
|
|
2
2
|
import type { ResponseEpisode } from "./response-episodes.js";
|
|
3
|
-
export declare
|
|
3
|
+
export declare function responseRubricVersion(model?: string, endpoint?: string): string;
|
|
4
4
|
export declare const RESPONSE_STAGE_VERSIONS: {
|
|
5
5
|
readonly quality: "quality-v9";
|
|
6
6
|
readonly feedback: "feedback-v9";
|
|
@@ -8,73 +8,78 @@ export declare const RESPONSE_STAGE_VERSIONS: {
|
|
|
8
8
|
readonly retrospective: "retrospective-v9";
|
|
9
9
|
readonly memory: "memory-v2-isolated";
|
|
10
10
|
};
|
|
11
|
+
export type ResponseJudgeParams = {
|
|
12
|
+
apiKey: string;
|
|
13
|
+
endpoint?: string;
|
|
14
|
+
model?: string;
|
|
15
|
+
timeoutMs: number;
|
|
16
|
+
signal: AbortSignal;
|
|
17
|
+
};
|
|
11
18
|
declare const qualitySchema: Type.TObject<{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[k: string]: Type.TNumber;
|
|
19
|
-
}>;
|
|
20
|
-
}>;
|
|
21
|
-
assessability: Type.TObject<{
|
|
22
|
-
type: Type.TLiteral<"choice">;
|
|
23
|
-
choice: Type.TEnum<("assessable" | "not_assessable")[]>;
|
|
24
|
-
confidence: Type.TNumber;
|
|
25
|
-
probabilities: Type.TObject<{
|
|
26
|
-
[k: string]: Type.TNumber;
|
|
27
|
-
}>;
|
|
19
|
+
taskType: Type.TObject<{
|
|
20
|
+
type: Type.TLiteral<"choice">;
|
|
21
|
+
choice: Type.TEnum<("question" | "action" | "other" | "artifact" | "discussion")[]>;
|
|
22
|
+
confidence: Type.TNumber;
|
|
23
|
+
probabilities: Type.TObject<{
|
|
24
|
+
[k: string]: Type.TNumber;
|
|
28
25
|
}>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
}>;
|
|
27
|
+
assessability: Type.TObject<{
|
|
28
|
+
type: Type.TLiteral<"choice">;
|
|
29
|
+
choice: Type.TEnum<("assessable" | "not_assessable")[]>;
|
|
30
|
+
confidence: Type.TNumber;
|
|
31
|
+
probabilities: Type.TObject<{
|
|
32
|
+
[k: string]: Type.TNumber;
|
|
36
33
|
}>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
}>;
|
|
35
|
+
fitAssessability: Type.TObject<{
|
|
36
|
+
type: Type.TLiteral<"choice">;
|
|
37
|
+
choice: Type.TEnum<("assessable" | "not_assessable")[]>;
|
|
38
|
+
confidence: Type.TNumber;
|
|
39
|
+
probabilities: Type.TObject<{
|
|
40
|
+
[k: string]: Type.TNumber;
|
|
40
41
|
}>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
}>;
|
|
43
|
+
underdelivery: Type.TObject<{
|
|
44
|
+
type: Type.TLiteral<"noul">;
|
|
45
|
+
noul: Type.TNumber;
|
|
46
|
+
}>;
|
|
47
|
+
failureReason: Type.TObject<{
|
|
48
|
+
type: Type.TLiteral<"choice">;
|
|
49
|
+
choice: Type.TEnum<("none_or_unclear" | "missing_requested_work" | "wrong_deliverable" | "missed_constraint" | "insufficient_answer_depth" | "unnecessary_deferral")[]>;
|
|
50
|
+
confidence: Type.TNumber;
|
|
51
|
+
probabilities: Type.TObject<{
|
|
52
|
+
[k: string]: Type.TNumber;
|
|
48
53
|
}>;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
}>;
|
|
55
|
+
fulfillment: Type.TObject<{
|
|
56
|
+
type: Type.TLiteral<"score">;
|
|
57
|
+
score: Type.TNumber;
|
|
58
|
+
confidence: Type.TNumber;
|
|
59
|
+
probabilities: Type.TObject<{
|
|
60
|
+
"0": Type.TNumber;
|
|
61
|
+
"1": Type.TNumber;
|
|
62
|
+
"2": Type.TNumber;
|
|
63
|
+
"3": Type.TNumber;
|
|
59
64
|
}>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
}>;
|
|
66
|
+
deliverableFit: Type.TObject<{
|
|
67
|
+
type: Type.TLiteral<"score">;
|
|
68
|
+
score: Type.TNumber;
|
|
69
|
+
confidence: Type.TNumber;
|
|
70
|
+
probabilities: Type.TObject<{
|
|
71
|
+
"0": Type.TNumber;
|
|
72
|
+
"1": Type.TNumber;
|
|
73
|
+
"2": Type.TNumber;
|
|
74
|
+
"3": Type.TNumber;
|
|
70
75
|
}>;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
}>;
|
|
77
|
+
consistency: Type.TObject<{
|
|
78
|
+
type: Type.TLiteral<"choice">;
|
|
79
|
+
choice: Type.TEnum<("contradicted" | "not_assessable" | "consistent")[]>;
|
|
80
|
+
confidence: Type.TNumber;
|
|
81
|
+
probabilities: Type.TObject<{
|
|
82
|
+
[k: string]: Type.TNumber;
|
|
78
83
|
}>;
|
|
79
84
|
}>;
|
|
80
85
|
}>;
|
|
@@ -108,114 +113,115 @@ declare const sentimentSchema: Type.TObject<{
|
|
|
108
113
|
}>;
|
|
109
114
|
}>;
|
|
110
115
|
declare const feedbackSchema: Type.TObject<{
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
[k: string]: Type.TNumber;
|
|
118
|
-
}>;
|
|
119
|
-
}>;
|
|
120
|
-
target: Type.TObject<{
|
|
121
|
-
type: Type.TLiteral<"choice">;
|
|
122
|
-
choice: Type.TEnum<("delivery" | "mixed" | "unclear" | "current_answer" | "earlier_behavior" | "proactive_action" | "external" | "new_work")[]>;
|
|
123
|
-
confidence: Type.TNumber;
|
|
124
|
-
probabilities: Type.TObject<{
|
|
125
|
-
[k: string]: Type.TNumber;
|
|
126
|
-
}>;
|
|
116
|
+
feedbackType: Type.TObject<{
|
|
117
|
+
type: Type.TLiteral<"choice">;
|
|
118
|
+
choice: Type.TEnum<("mixed" | "unrelated" | "unclear" | "acceptance" | "correction" | "continuation")[]>;
|
|
119
|
+
confidence: Type.TNumber;
|
|
120
|
+
probabilities: Type.TObject<{
|
|
121
|
+
[k: string]: Type.TNumber;
|
|
127
122
|
}>;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
123
|
+
}>;
|
|
124
|
+
target: Type.TObject<{
|
|
125
|
+
type: Type.TLiteral<"choice">;
|
|
126
|
+
choice: Type.TEnum<("delivery" | "mixed" | "unclear" | "current_answer" | "earlier_behavior" | "proactive_action" | "external" | "new_work")[]>;
|
|
127
|
+
confidence: Type.TNumber;
|
|
128
|
+
probabilities: Type.TObject<{
|
|
129
|
+
[k: string]: Type.TNumber;
|
|
131
130
|
}>;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
}>;
|
|
132
|
+
avoidableRework: Type.TObject<{
|
|
133
|
+
type: Type.TLiteral<"noul">;
|
|
134
|
+
noul: Type.TNumber;
|
|
135
|
+
}>;
|
|
136
|
+
repeatedConstraint: Type.TObject<{
|
|
137
|
+
type: Type.TLiteral<"noul">;
|
|
138
|
+
noul: Type.TNumber;
|
|
139
|
+
}>;
|
|
140
|
+
memoryGap: Type.TObject<{
|
|
141
|
+
type: Type.TLiteral<"noul">;
|
|
142
|
+
noul: Type.TNumber;
|
|
143
|
+
}>;
|
|
144
|
+
}>;
|
|
145
|
+
declare const retrospectiveSchema: Type.TObject<{
|
|
146
|
+
correction: Type.TObject<{
|
|
147
|
+
type: Type.TLiteral<"noul">;
|
|
148
|
+
noul: Type.TNumber;
|
|
149
|
+
}>;
|
|
150
|
+
deliveryAdmission: Type.TObject<{
|
|
151
|
+
type: Type.TLiteral<"noul">;
|
|
152
|
+
noul: Type.TNumber;
|
|
153
|
+
}>;
|
|
154
|
+
regression: Type.TObject<{
|
|
155
|
+
type: Type.TLiteral<"noul">;
|
|
156
|
+
noul: Type.TNumber;
|
|
157
|
+
}>;
|
|
158
|
+
scopeClarification: Type.TObject<{
|
|
159
|
+
type: Type.TLiteral<"noul">;
|
|
160
|
+
noul: Type.TNumber;
|
|
161
|
+
}>;
|
|
162
|
+
outcome: Type.TObject<{
|
|
163
|
+
type: Type.TLiteral<"choice">;
|
|
164
|
+
choice: Type.TEnum<("unknown" | "reported_shortfall" | "acknowledged_success")[]>;
|
|
165
|
+
confidence: Type.TNumber;
|
|
166
|
+
probabilities: Type.TObject<{
|
|
167
|
+
[k: string]: Type.TNumber;
|
|
135
168
|
}>;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
169
|
+
}>;
|
|
170
|
+
reason: Type.TObject<{
|
|
171
|
+
type: Type.TLiteral<"choice">;
|
|
172
|
+
choice: Type.TEnum<("none_or_unclear" | "missing_requested_work" | "unnecessary_deferral" | "regression" | "incorrect_claim" | "wrong_scope" | "failed_delivery")[]>;
|
|
173
|
+
confidence: Type.TNumber;
|
|
174
|
+
probabilities: Type.TObject<{
|
|
175
|
+
[k: string]: Type.TNumber;
|
|
139
176
|
}>;
|
|
140
177
|
}>;
|
|
141
178
|
}>;
|
|
142
|
-
type ResponseQuality = Static<typeof qualitySchema
|
|
143
|
-
type
|
|
179
|
+
type ResponseQuality = Static<typeof qualitySchema>;
|
|
180
|
+
type ResponseFeedbackBase = Static<typeof feedbackSchema>;
|
|
181
|
+
type ResponseSentiment = Static<typeof sentimentSchema>;
|
|
182
|
+
type ResponseFeedback = ResponseFeedbackBase & Partial<ResponseSentiment>;
|
|
183
|
+
type ResponseRetrospective = Static<typeof retrospectiveSchema>;
|
|
144
184
|
export type ResponseJudgment = {
|
|
145
185
|
quality: ResponseQuality;
|
|
146
186
|
feedback: ResponseFeedback;
|
|
147
187
|
};
|
|
148
188
|
export type ResponseStages = {
|
|
149
189
|
quality: ResponseQuality;
|
|
150
|
-
feedback:
|
|
151
|
-
sentiment:
|
|
190
|
+
feedback: ResponseFeedbackBase;
|
|
191
|
+
sentiment: ResponseSentiment;
|
|
152
192
|
retrospective: Awaited<ReturnType<typeof judgeResponseFollowup>>;
|
|
153
193
|
memory: Awaited<ReturnType<typeof judgeMemoryOpportunity>>;
|
|
154
194
|
};
|
|
155
|
-
type
|
|
156
|
-
|
|
157
|
-
|
|
195
|
+
export type ResponseStageContracts = {
|
|
196
|
+
quality?: undefined;
|
|
197
|
+
feedback?: undefined;
|
|
198
|
+
sentiment?: undefined;
|
|
199
|
+
retrospective?: {
|
|
200
|
+
status: ResponseEpisode["followup"]["status"];
|
|
201
|
+
};
|
|
202
|
+
memory?: readonly {
|
|
203
|
+
path: string;
|
|
204
|
+
hash: string;
|
|
205
|
+
}[];
|
|
158
206
|
};
|
|
207
|
+
type JudgeStage = "quality" | "feedback" | "sentiment";
|
|
208
|
+
type StageCache = Partial<Pick<ResponseStages, JudgeStage>> & {
|
|
209
|
+
begin: (stages: JudgeStage[]) => void;
|
|
210
|
+
save: <K extends JudgeStage>(stage: K, result: ResponseStages[K]) => void;
|
|
211
|
+
};
|
|
212
|
+
export declare function validateCachedStage<K extends keyof ResponseStages>(stage: K, value: unknown, contract?: ResponseStageContracts[K]): ResponseStages[K];
|
|
159
213
|
/** Separate requests are deliberate: later feedback must not leak into the original quality grade. */
|
|
160
|
-
export declare function judgeResponse(episode: ResponseEpisode, params:
|
|
161
|
-
apiKey: string;
|
|
162
|
-
timeoutMs: number;
|
|
163
|
-
signal: AbortSignal;
|
|
164
|
-
}, sentimentEnabled?: boolean, cache?: StageCache): Promise<ResponseJudgment>;
|
|
165
|
-
declare const retrospectiveSchema: Type.TObject<{
|
|
166
|
-
answers: Type.TObject<{
|
|
167
|
-
correction: Type.TObject<{
|
|
168
|
-
type: Type.TLiteral<"noul">;
|
|
169
|
-
noul: Type.TNumber;
|
|
170
|
-
}>;
|
|
171
|
-
deliveryAdmission: Type.TObject<{
|
|
172
|
-
type: Type.TLiteral<"noul">;
|
|
173
|
-
noul: Type.TNumber;
|
|
174
|
-
}>;
|
|
175
|
-
regression: Type.TObject<{
|
|
176
|
-
type: Type.TLiteral<"noul">;
|
|
177
|
-
noul: Type.TNumber;
|
|
178
|
-
}>;
|
|
179
|
-
scopeClarification: Type.TObject<{
|
|
180
|
-
type: Type.TLiteral<"noul">;
|
|
181
|
-
noul: Type.TNumber;
|
|
182
|
-
}>;
|
|
183
|
-
outcome: Type.TObject<{
|
|
184
|
-
type: Type.TLiteral<"choice">;
|
|
185
|
-
choice: Type.TEnum<("unknown" | "reported_shortfall" | "acknowledged_success")[]>;
|
|
186
|
-
confidence: Type.TNumber;
|
|
187
|
-
probabilities: Type.TObject<{
|
|
188
|
-
[k: string]: Type.TNumber;
|
|
189
|
-
}>;
|
|
190
|
-
}>;
|
|
191
|
-
reason: Type.TObject<{
|
|
192
|
-
type: Type.TLiteral<"choice">;
|
|
193
|
-
choice: Type.TEnum<("none_or_unclear" | "missing_requested_work" | "unnecessary_deferral" | "regression" | "incorrect_claim" | "wrong_scope" | "failed_delivery")[]>;
|
|
194
|
-
confidence: Type.TNumber;
|
|
195
|
-
probabilities: Type.TObject<{
|
|
196
|
-
[k: string]: Type.TNumber;
|
|
197
|
-
}>;
|
|
198
|
-
}>;
|
|
199
|
-
}>;
|
|
200
|
-
}>;
|
|
214
|
+
export declare function judgeResponse(episode: ResponseEpisode, params: ResponseJudgeParams, sentimentEnabled?: boolean, cache?: StageCache): Promise<ResponseJudgment>;
|
|
201
215
|
/** Later evidence is kept in a third request and never changes the original grade. */
|
|
202
|
-
export declare function judgeResponseFollowup(episode: ResponseEpisode, params: {
|
|
203
|
-
apiKey: string;
|
|
204
|
-
timeoutMs: number;
|
|
205
|
-
signal: AbortSignal;
|
|
206
|
-
}): Promise<{
|
|
216
|
+
export declare function judgeResponseFollowup(episode: ResponseEpisode, params: ResponseJudgeParams): Promise<{
|
|
207
217
|
status: ResponseEpisode["followup"]["status"];
|
|
208
|
-
judgment:
|
|
218
|
+
judgment: ResponseRetrospective | null;
|
|
209
219
|
}>;
|
|
210
220
|
export declare function judgeMemoryOpportunity(episode: ResponseEpisode, candidates: readonly {
|
|
211
221
|
path: string;
|
|
212
222
|
text: string;
|
|
213
223
|
hash: string;
|
|
214
|
-
}[], params: {
|
|
215
|
-
apiKey: string;
|
|
216
|
-
timeoutMs: number;
|
|
217
|
-
signal: AbortSignal;
|
|
218
|
-
}): Promise<{
|
|
224
|
+
}[], params: ResponseJudgeParams): Promise<{
|
|
219
225
|
path: string;
|
|
220
226
|
hash: string;
|
|
221
227
|
usefulness: number;
|