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§
- Learning
Error - The lessons of a scope could not be read.
- Lesson
Notes - The approved lessons of one scope, ready for a system prompt.
- Lesson
Scope - Whose lessons a run reads.
- Lessons
- Service registered in
crate::node::Services: where nodes find lessons.
Traits§
- Lesson
Source - A source of approved lessons.