Repository navigation
Run the agent loop as a LangGraph graph - #9
Merged
Merged
Conversation
… approval agent/graph.py runs harness.py's loop as a LangGraph graph, using LangChain's ChatOllama and tool binding. Goal, tools, limit checks and log format are harness.py's; harness.py is unchanged. - The run is saved after every node to a SQLite file, so --resume carries on a stopped run. A cut-off training reruns and counts once, after its leftover MACE checkpoints are deleted. - Earlier reasoning is left out of the history sent to the LLM, as in harness.py (ChatOllama would send it back). - --approve pauses before each training; a refusal goes back to the LLM. agent/test_graph.py covers each path with a scripted LLM and fake tools. environment.yml pins the LangChain/LangGraph packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Page 5 of the agent module walks through agent/graph.py: the graph, the state, resume after a crash, the approval pause, and how the graph run compares with the harness run. Page 4's Next now points to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The opening now argues that a run without errors is not necessarily correct, and that realistic systems need more than default options. The detail on the engine, the topics in this release and the choice of C++ moves below the learning-approach cards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "simple loop" links to the loop figure on the homepage. - The Simulator panel section explains the table as averages over many configurations. - "Behind the buttons" drops the unit-conversion details. - History and the AI usage statement are rewritten. - Long C++ names in the Programming column wrap inside their box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Documentation build overview
|
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.
agent/graph.pyruns the MLIP training agent's loop as a LangGraph graph, with resume after a crash and an approval pause;agent/test_graph.pycovers it with a scripted LLM and fake tools (6 tests pass locally in themlip-agentenv).website/agent/05_the_graph.md), marked Draft; page 4's Next points to it.agent/README.mdupdated; a preview config for theweb-editsworktree in.claude/launch.json.🤖 Generated with Claude Code