Skip to content

v1.7LEMA2.0

Latest

Choose a tag to compare

@NaosaikaDevelopment NaosaikaDevelopment released this 10 Oct 08:10
· 7 commits to main since this release
ff32853

1.Runtime agent separated

New file: MainCore/MainRuntime.py
Most of the run_agent_turn() functionality has been moved from statecore.py to a separate file. The new runtime manages tool invocation, mandatory tool status, retries, fallbacks, and model invocation for the final response.

2.Recovery system when a tool fails

New files: core/DynamicCallingToolFallback.py and core/mfallcom.py
When the main model fails to execute a mandatory tool, the new version can instruct the SUM model to generate JSON arguments, validate those arguments, and then attempt to run the tool. If this fails, the runtime attempts another listed fallback.

3.Memory system restructured

The direction of the changes is clear: active memory management, archiving and memory retrieval have been made more fault-tolerant and better controlled.

New Update

Active memory: Scans a subset of the most recent memory within a scan limit

Archive: Archiving takes place once the summary has been successfully saved

Token budget: Selects memory to retain based on relevance and token budget

Long-term retrieval: Combines lexical search, FAISS, confidence, support count, and recency

FTS5 index: Repairs missing index rows and cleans up orphaned references

FAISS: Retrieval failures are handled so that the SQLite path remains usable

Dynamic Calling Tool: Fixing and adding fallback to any tool using @require_each_turn (usage for json type data to process) by using sum model for fallback to completion the answer (Note: using same model can decrease the Latency, by write sum and main with same model in "conf.json")

When use @require_each_turn:

make sure it end with:

# If succeeded
return{"success": True,}

and make sure to make "success": False when it failed as exception. if error or false, or either model wont call it, then it will fallback automatically to sum model to process it. and if there any error, the runtime should be not take down or crash, it will keep it alive.

and this update scored regression memory test with 49/50 then with test 2 141/150, around 98%~94% success recall

Warning

More @require_each_turn tools usage, can increase the latency.