Skip to content

Add rlm tool and auto correction.#9

Open
Gabenoob wants to merge 4 commits intoOpen-Model-Initiative:mainfrom
Gabenoob:json_repair
Open

Add rlm tool and auto correction.#9
Gabenoob wants to merge 4 commits intoOpen-Model-Initiative:mainfrom
Gabenoob:json_repair

Conversation

@Gabenoob
Copy link
Copy Markdown
Contributor

  • Add rlm as a tool, now the model can call rlm by calling a tool.
  • Add json autocorrection. the model will call another model to correct the wrong json format if json parse error.

- add `rlm` tool in registry with grounded long-material reasoning execution
- bump Omni_RLM dependency from v0.1.2 to v0.1.3
- remove unused RLM state/imports from planner
- rename tool index file to `src/tools/TOOLS.md`
- update tool response format from `argument` to `arguments`
- sync README and AGENTS with new tools, paths, and examples
- add `src/tools/docs/rlm.md` and expand tool documentation
Copilot AI review requested due to automatic review settings March 30, 2026 01:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new rlm tool (grounded reasoning over long files) and introduces automatic JSON plan “repair” when the planner receives malformed JSON from the model.

Changes:

  • Register new rlm tool and add its documentation.
  • Add a JSON auto-repair flow in the planner when JSON parsing fails.
  • Update dependency to Omni_RLM v0.1.3 and refresh repo docs to mention rlm + new tool-call JSON shape.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/tools/registry.zig Registers rlm and implements runRlm executor via Omni-RLM runtime.
src/agent/planner.zig Adds JSON repair prompt + retry parsing after model-assisted repair.
src/tools/TOOLS.md Introduces a consolidated tool index including rlm and JSON call format.
src/tools/docs/rlm.md Adds usage docs for the rlm tool.
build.zig.zon Bumps Omni_RLM dependency to v0.1.3.
README.md Documents rlm, updates examples to arguments[] tool-call format.
AGENTS.md Updates agent guide to include rlm and dependency bump.
src/tools/tools.md Removes old tool registry markdown file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Gabenoob and others added 2 commits March 30, 2026 09:42
change the API_referance to API_reference

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants