Update README.md
Browse files123# Table of Contents* [SaveCodeAtomicFlow](#SaveCodeAtomicFlow)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596### Structure of ExtendLibraryFlow```goal, memory_files (dict)|v+-------------------+| MemoryReading | Reads in the content of the memory files| Flow |+-------------------+|| (memory_content)|v+-------------------+| PlanWriter | Writes a step-by-step plan to achieve the goal+-------------------+|| (plan)|v+-------------------+| CtrlExMemFlow | Illustrated below. Carries out the plan in an controller-executor fashion,| | with memory management mechanisms.+-------------------+|(summary, result)```Here is the structure of the `CtrlExMemFlow`:```plan, memory_files, memory_content, goal|v+---------------+| Controller | --------<<<<-----------++---------------+ || || (command, command args) || |v |+------------------+ || Executor | Each branch is an || (Tree Structure) | executor |+------------------+ || ^| (execution results) ^| ^v ^+---------------+ ^| MemWriteFlow | Updates memory files ^+---------------+ ^| ^| (summary) || |v |+---------------+ || MemReadFlow | Reads updated memory |+---------------+ || || (updated memory content) || |+-> goes back to the Controller>-+```Structure of the Executors:```+-------------------+| Branching || Executor |+-------------------+/ | | | \/ | | | \/ | | | \/ | | | \write_code ask_user re_plan update_plan save_code```Memory files of ExtendLibraryFlow:- plan_extlib.txt- logs_extlib.txt- library.pyAbout the branches:- [write_code](https://huggingface.co/Tachi67/CodeWriterFlowModule): Generates code in an interactive way, the user is able to edit or provide feedback during the process of writing code.- [ask_user](https://huggingface.co/Tachi67/ExtendLibraryFlowModule/blob/main/ExtLibAskUserFlow.py): Ask user for info / confirmation, etc.- [re_plan](https://huggingface.co/Tachi67/ReplanningFlowModule): One branch of the executors, when something goes wrong, re-draft the plan.- [update_plan](https://huggingface.co/Tachi67/JarvisFlowModule/blob/main/UpdatePlanAtomicFlow.py): One branch of the executors, when the controller realizes that one (or some, depending on the LLM's response) step of the plan is (are) done, it generates a new plan that marks the step(s) as done.- [save_code](https://huggingface.co/Tachi67/ExtendLibraryFlowModule/blob/main/SaveCodeAtomicFlow.py): Writes the wriiten & tested code to the code library.# Table of Contents* [SaveCodeAtomicFlow](#SaveCodeAtomicFlow)
README.md+93