Skip to main content

Module learning

Module learning 

Source
Expand description

Lesson contract between a lesson store and the nodes that learn.

A lesson is one short statement an agent learned from earlier work: a preference, a fact, a procedure or a correction. This module holds only the contract. A host registers a Lessons service (for example the store of the graphrt-learn crate) and the agent node asks it for the notes of one LessonScope when a run starts.

A source returns only lessons that were approved, and only those of the scope it is asked for: the lessons of the agent as a whole plus the lessons of the one user the run is for. Nothing here writes a lesson. Learning happens outside the run.

Structs§

LearningError
The lessons of a scope could not be read.
LessonNotes
The approved lessons of one scope, ready for a system prompt.
LessonScope
Whose lessons a run reads.
Lessons
Service registered in crate::node::Services: where nodes find lessons.

Traits§

LessonSource
A source of approved lessons.