feat(memory): add optional Mem0 backend for skill iteration and reflection tracking#118
Open
jrauch713-svg wants to merge 1 commit into
Open
feat(memory): add optional Mem0 backend for skill iteration and reflection tracking#118jrauch713-svg wants to merge 1 commit into
jrauch713-svg wants to merge 1 commit into
Conversation
…ction tracking Wires SkillMemory into ReflACTTrainer via non-breaking hooks: records each step's skill/score after the evaluation gate and each step's reflection patches after the accumulation loop. Degrades to a no-op when MEM0_API_KEY is unset. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
|
@jrauch713-svg please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skillopt/memorybackend that persists skill iterations and reflection patches to Mem0 during training.ReflACTTrainervia non-breaking hooks (maybe_init_mem0,hook_post_evaluate,hook_post_reflect) that no-op whenMEM0_API_KEYis unset.Details
maybe_init_mem0(cfg)is called once before the training loop starts.hook_post_reflectruns after each step's accumulation loop, recording raw patches and aggregate hard/soft scores.hook_post_evaluateruns after the evaluation gate updates the current skill/score.Test plan
python3 -m py_compile skillopt/engine/trainer.pypassesMEM0_API_KEYset to confirm skill iterations land in Mem0