Skip to content

Interface: LessonsNode<TIn> ​

Defined in: ast/lessons-node.ts:84

Passive AST node representing an empirical lesson memory subsystem (P.lessons(id)).

Combines a backing LessonStoreASTNode with query extraction, contrastive distillation, sliding-window outcome scoring, automatic retirement, and promotion signal triggers.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownInput payload type of actors querying this lesson store.

Properties ​

PropertyModifierTypeDescriptionDefined in
distillation?readonlyLessonDistillationConfigOptional contrastive distillation configuration.ast/lessons-node.ts:96
emitSignalTriggersreadonlyreadonly LessonEmitSignalTrigger<unknown>[]Registered promotion signal triggers evaluated when lesson outcomes are recorded.ast/lessons-node.ts:102
idreadonlystringUnique identifier of the lessons subsystem.ast/lessons-node.ts:88
queryMapper?readonlyBivariantCallback<[input: TIn], string>Optional synchronous query extractor mapping actor input TIn to a search query string.ast/lessons-node.ts:94
querySchema?readonlyZodType<TIn, unknown, $ZodTypeInternals<TIn, unknown>>Optional Zod schema validating the input passed to queryMapper.ast/lessons-node.ts:92
retireAfter?readonlyLessonRetirementConfigOptional automatic retirement thresholds.ast/lessons-node.ts:100
scoringreadonlyLessonScoringConfigScoring and recall parameters.ast/lessons-node.ts:98
storereadonlyLessonStoreASTNodePassive backing store AST node (FsJsonlLessonStoreNode, SqliteLessonsNode, or PostgresLessonsNode).ast/lessons-node.ts:90
typereadonly"harness:lessons"Discriminant identifying a lessons subsystem AST node.ast/lessons-node.ts:86

Released under the MIT License.